Changeset 30486


Ignore:
Timestamp:
2012-02-12T21:25:47+01:00 (6 years ago)
Author:
nbd
Message:

gcc 4.6: port over the missing patch 850-use_shared_libgcc.patch to prevent libgcc crap from leaking into every single binary

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/toolchain/gcc/patches/4.6-linaro/850-use_shared_libgcc.patch

    r30485 r30486  
    11--- a/gcc/config/arm/linux-eabi.h 
    22+++ b/gcc/config/arm/linux-eabi.h 
    3 @@ -95,10 +95,6 @@ 
     3@@ -96,10 +96,6 @@ 
    44 #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) 
    66  
    77-/* Use the default LIBGCC_SPEC, not the version in linux-elf.h, as we 
     
    2222 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" 
    2323  
    24  #define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \ 
     24 #define LINUX_TARGET_LINK_SPEC  "%{h*} \ 
    2525--- a/gcc/config/linux.h 
    2626+++ b/gcc/config/linux.h 
    27 @@ -116,6 +116,10 @@ see the files COPYING3 and COPYING.RUNTI 
    28  #define USE_LD_AS_NEEDED 1 
    29  #endif 
     27@@ -50,6 +50,10 @@ see the files COPYING3 and COPYING.RUNTI 
     28        builtin_assert ("system=posix");                        \ 
     29     } while (0) 
    3030  
    3131+#ifndef LIBGCC_SPEC 
     
    3636    uClibc or Bionic is the default C library and whether 
    3737    -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  
    3849--- a/gcc/mkmap-symver.awk 
    3950+++ b/gcc/mkmap-symver.awk 
     
    4758--- a/libgcc/Makefile.in 
    4859+++ b/libgcc/Makefile.in 
    49 @@ -265,7 +265,7 @@ ifeq ($(enable_shared),yes) 
     60@@ -272,7 +272,7 @@ ifeq ($(enable_shared),yes) 
    5061 # For -fvisibility=hidden.  We need both a -fvisibility=hidden on 
    5162 # the command line, and a #define to prevent libgcc2.h etc from 
     
    5667 ifneq (,$(vis_hide)) 
    5768  
    58 --- a/gcc/config/rs6000/linux.h 
    59 +++ b/gcc/config/rs6000/linux.h 
    60 @@ -85,6 +85,8 @@ 
    61  #define USE_LD_AS_NEEDED 1 
    62  #endif 
    63   
    64 +#define LIBGCC_SPEC "%{!static:%{!static-libgcc:-lgcc_s}} -lgcc" 
    65 + 
    66  #undef  TARGET_VERSION 
    67  #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)"); 
    68   
Note: See TracChangeset for help on using the changeset viewer.