source: trunk/toolchain/gcc/patches/linaro/850-use_shared_libgcc.patch @ 25801

Last change on this file since 25801 was 25801, checked in by nbd, 5 years ago

gcc-linaro: fix the libgcc spec to default to using the shared libgcc

File size: 1.2 KB
  • gcc/config/arm/linux-eabi.h

    a b  
    7272#undef  LINK_SPEC 
    7373#define LINK_SPEC LINUX_TARGET_LINK_SPEC BE8_LINK_SPEC TARGET_FIX_V4BX_SPEC 
    7474 
    75 /* Use the default LIBGCC_SPEC, not the version in linux-elf.h, as we 
    76    do not use -lfloat.  */ 
    77 #undef LIBGCC_SPEC 
    78  
    7975/* Clear the instruction cache from `beg' to `end'.  This is 
    8076   implemented in lib1funcs.asm, so ensure an error if this definition 
    8177   is used.  */ 
  • gcc/config/arm/linux-elf.h

    a b  
    6060   %{shared:-lc} \ 
    6161   %{!shared:%{profile:-lc_p}%{!profile:-lc}}" 
    6262 
    63 #define LIBGCC_SPEC "-lgcc" 
    64  
    6563#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" 
    6664 
    6765#define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \ 
  • gcc/config/linux.h

    a b see the files COPYING3 and COPYING.RUNTI 
    104104#define USE_LD_AS_NEEDED 1 
    105105#endif 
    106106 
     107#ifndef LIBGCC_SPEC 
     108#define LIBGCC_SPEC "%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:-lgcc_s}}" 
     109#endif 
     110 
    107111/* Determine which dynamic linker to use depending on whether GLIBC or 
    108112   uClibc is the default C library and whether -muclibc or -mglibc has 
    109113   been passed to change the default.  */ 
Note: See TracBrowser for help on using the repository browser.