Changeset 30486
- Timestamp:
- 2012-02-12T21:25:47+01:00 (6 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/toolchain/gcc/patches/4.6-linaro/850-use_shared_libgcc.patch
r30485 r30486 1 1 --- a/gcc/config/arm/linux-eabi.h 2 2 +++ b/gcc/config/arm/linux-eabi.h 3 @@ -9 5,10 +95,6 @@3 @@ -96,10 +96,6 @@ 4 4 #define ENDFILE_SPEC \ 5 LINUX_OR_ANDROID_LD ( LINUX_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC)5 LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC) 6 6 7 7 -/* Use the default LIBGCC_SPEC, not the version in linux-elf.h, as we … … 22 22 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" 23 23 24 #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v}\24 #define LINUX_TARGET_LINK_SPEC "%{h*} \ 25 25 --- a/gcc/config/linux.h 26 26 +++ b/gcc/config/linux.h 27 @@ - 116,6 +116,10 @@ see the files COPYING3 and COPYING.RUNTI28 #define USE_LD_AS_NEEDED 129 #endif27 @@ -50,6 +50,10 @@ see the files COPYING3 and COPYING.RUNTI 28 builtin_assert ("system=posix"); \ 29 } while (0) 30 30 31 31 +#ifndef LIBGCC_SPEC … … 36 36 uClibc or Bionic is the default C library and whether 37 37 -muclibc or -mglibc or -mbionic has been passed to change the default. */ 38 --- a/gcc/config/rs6000/linux.h 39 +++ b/gcc/config/rs6000/linux.h 40 @@ -88,6 +88,8 @@ 41 #define USE_LD_AS_NEEDED 1 42 #endif 43 44 +#define LIBGCC_SPEC "%{!static:%{!static-libgcc:-lgcc_s}} -lgcc" 45 + 46 #undef TARGET_VERSION 47 #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)"); 48 38 49 --- a/gcc/mkmap-symver.awk 39 50 +++ b/gcc/mkmap-symver.awk … … 47 58 --- a/libgcc/Makefile.in 48 59 +++ b/libgcc/Makefile.in 49 @@ -2 65,7 +265,7 @@ ifeq ($(enable_shared),yes)60 @@ -272,7 +272,7 @@ ifeq ($(enable_shared),yes) 50 61 # For -fvisibility=hidden. We need both a -fvisibility=hidden on 51 62 # the command line, and a #define to prevent libgcc2.h etc from … … 56 67 ifneq (,$(vis_hide)) 57 68 58 --- a/gcc/config/rs6000/linux.h59 +++ b/gcc/config/rs6000/linux.h60 @@ -85,6 +85,8 @@61 #define USE_LD_AS_NEEDED 162 #endif63 64 +#define LIBGCC_SPEC "%{!static:%{!static-libgcc:-lgcc_s}} -lgcc"65 +66 #undef TARGET_VERSION67 #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");68
Note: See TracChangeset
for help on using the changeset viewer.