patches/eglibc/ports-2_16/001-Avoid-use-of-libgcc_s-and-libgcc_eh-when-building-gl.patch
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/eglibc/ports-2_16/001-Avoid-use-of-libgcc_s-and-libgcc_eh-when-building-gl.patch Sun May 11 23:55:16 2014 +0200
1.3 @@ -0,0 +1,40 @@
1.4 +Upstream-Status: Backport
1.5 +Signed-off-by: Khem Raj <raj.khem@gmail.com>
1.6 +
1.7 +From 95f5a9a866695da4e038aa4e6ccbbfd5d9cf63b7 Mon Sep 17 00:00:00 2001
1.8 +From: Joseph Myers <joseph@codesourcery.com>
1.9 +Date: Tue, 3 Jul 2012 19:14:59 +0000
1.10 +Subject: [PATCH] Avoid use of libgcc_s and libgcc_eh when building glibc.
1.11 +
1.12 +---
1.13 + ChangeLog | 47 ++++++++++++++++++++++++++++++
1.14 + Makeconfig | 68 ++++++++++++++++++++++++++++++++++++++------
1.15 + Rules | 45 ++++++++++++++++++++++-------
1.16 + elf/Makefile | 6 +++-
1.17 + elf/static-stubs.c | 46 ++++++++++++++++++++++++++++++
1.18 + ports/ChangeLog.arm | 7 +++++
1.19 + ports/sysdeps/arm/Makefile | 8 ++++++
1.20 + 7 files changed, 206 insertions(+), 21 deletions(-)
1.21 + create mode 100644 elf/static-stubs.c
1.22 +
1.23 +-Index: a/ports/sysdeps/arm/Makefile
1.24 +===================================================================
1.25 +--- a/ports/sysdeps/arm/Makefile 2012-07-04 18:25:41.000000000 -0700
1.26 ++++ b/ports/sysdeps/arm/Makefile 2012-08-14 20:16:10.201093638 -0700
1.27 +@@ -1,8 +1,16 @@
1.28 ++gnulib-arch = $(elfobjdir)/libgcc-stubs.a
1.29 ++static-gnulib-arch = $(elfobjdir)/libgcc-stubs.a
1.30 ++
1.31 + ifeq ($(subdir),elf)
1.32 + sysdep-dl-routines += tlsdesc dl-tlsdesc
1.33 + sysdep_routines += aeabi_unwind_cpp_pr1 find_exidx tlsdesc dl-tlsdesc
1.34 + sysdep-rtld-routines += aeabi_unwind_cpp_pr1 tlsdesc dl-tlsdesc
1.35 + shared-only-routines += aeabi_unwind_cpp_pr1
1.36 ++
1.37 ++$(objpfx)libgcc-stubs.a: $(objpfx)aeabi_unwind_cpp_pr1.os
1.38 ++ $(build-extra-lib)
1.39 ++
1.40 ++lib-noranlib: $(objpfx)libgcc-stubs.a
1.41 + endif
1.42 +
1.43 + ifeq ($(subdir),csu)