source: patches/gcc-4.2.2-specs-1.patch@ d4bb6ba

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d4bb6ba was 5a90148, checked in by Jim Gifford <clfs@…>, 17 years ago

Added: gcc 4.2.2 patches

  • Property mode set to 100644
File size: 16.5 KB
  • gcc/config/alpha/gnu.h

    Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes)
    Date: 2007-02-14
    Initial Package Version: 4.1.2
    Upstream Status: Not Sent - LFS Specific
    Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
            the Pure LFS project.
            More architectures added by Zack Winkles.
            Further fine tunings by Greg Schafer.
            Rediffed against gcc 4.0.0 by Robert Connolly.
            Rediffed against gcc 4.1.0 by Chris Staub
            Rediffed against gcc 4.1.2 by Jim Gifford
            Rediffed against gcc 4.2.0 by Joe Ciccone
    Description: This patch modifies the location of the dynamic linker for
            the GCC Pass 2 build in LFS Chapter 5.
    
    diff -Naur gcc-4.2.0.orig/gcc/config/alpha/gnu.h gcc-4.2.0/gcc/config/alpha/gnu.h
    old new  
    1111    } while (0)
    1212
    1313#undef ELF_DYNAMIC_LINKER
    14 #define ELF_DYNAMIC_LINKER      "/lib/ld.so"
     14#define ELF_DYNAMIC_LINKER      "/tools/lib/ld.so"
    1515
    1616#undef  STARTFILE_SPEC
    1717#define STARTFILE_SPEC \
  • gcc/config/alpha/linux-elf.h

    diff -Naur gcc-4.2.0.orig/gcc/config/alpha/linux-elf.h gcc-4.2.0/gcc/config/alpha/linux-elf.h
    old new  
    2828#define SUBTARGET_EXTRA_SPECS \
    2929{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
    3030
    31 #define GLIBC_DYNAMIC_LINKER    "/lib/ld-linux.so.2"
    32 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
     31#define GLIBC_DYNAMIC_LINKER    "/tools/lib/ld-linux.so.2"
     32#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    3333#if UCLIBC_DEFAULT
    3434#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    3535#else
  • gcc/config/arm/linux-eabi.h

    diff -Naur gcc-4.2.0.orig/gcc/config/arm/linux-eabi.h gcc-4.2.0/gcc/config/arm/linux-eabi.h
    old new  
    5353/* Use ld-linux.so.3 so that it will be possible to run "classic"
    5454   GNU/Linux binaries on an EABI system.  */
    5555#undef GLIBC_DYNAMIC_LINKER
    56 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3"
     56#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.3"
    5757
    5858/* At this point, bpabi.h will have clobbered LINK_SPEC.  We want to
    5959   use the GNU/Linux version, not the generic BPABI version.  */
  • gcc/config/arm/linux-elf.h

    diff -Naur gcc-4.2.0.orig/gcc/config/arm/linux-elf.h gcc-4.2.0/gcc/config/arm/linux-elf.h
    old new  
    5151
    5252#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
    5353
    54 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     54#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    5555
    5656#define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
    5757   %{b} \
  • gcc/config/cris/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/cris/linux.h gcc-4.2.0/gcc/config/cris/linux.h
    old new  
    7676#undef CRIS_SUBTARGET_VERSION
    7777#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
    7878
    79 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     79#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    8080
    8181/* We need an -rpath-link to ld.so.1, and presumably to each directory
    8282   specified with -B.  */
  • gcc/config/frv/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/frv/linux.h gcc-4.2.0/gcc/config/frv/linux.h
    old new  
    3636#define ENDFILE_SPEC \
    3737  "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
    3838
    39 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     39#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    4040
    4141#undef LINK_SPEC
    4242#define LINK_SPEC "\
  • gcc/config/i386/gnu.h

    diff -Naur gcc-4.2.0.orig/gcc/config/i386/gnu.h gcc-4.2.0/gcc/config/i386/gnu.h
    old new  
    2222  %{!shared: \
    2323    %{!static: \
    2424      %{rdynamic:-export-dynamic} \
    25       %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \
     25      %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so}} \
    2626    %{static:-static}}"
    2727
    2828#undef  STARTFILE_SPEC
  • gcc/config/i386/linux64.h

    diff -Naur gcc-4.2.0.orig/gcc/config/i386/linux64.h gcc-4.2.0/gcc/config/i386/linux64.h
    old new  
    4949   When the -shared link option is used a final link is not being
    5050   done.  */
    5151
    52 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
    53 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
     52#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
     53#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux-x86-64.so.2"
    5454
    5555#undef  LINK_SPEC
    5656#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
  • gcc/config/i386/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/i386/linux.h gcc-4.2.0/gcc/config/i386/linux.h
    old new  
    101101
    102102/* These macros may be overridden in k*bsd-gnu.h and i386/k*bsd-gnu.h. */
    103103#define LINK_EMULATION "elf_i386"
    104 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     104#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    105105
    106106#undef  SUBTARGET_EXTRA_SPECS
    107107#define SUBTARGET_EXTRA_SPECS \
  • gcc/config/ia64/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/ia64/linux.h gcc-4.2.0/gcc/config/ia64/linux.h
    old new  
    3737/* Define this for shared library support because it isn't in the main
    3838   linux.h file.  */
    3939
    40 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
     40#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2"
    4141
    4242#undef LINK_SPEC
    4343#define LINK_SPEC "\
  • gcc/config/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/linux.h gcc-4.2.0/gcc/config/linux.h
    old new  
    112112   GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
    113113   GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
    114114   supporting both 32-bit and 64-bit compilation.  */
    115 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
    116 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    117 #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
     115#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
     116#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
     117#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
    118118#define LINUX_DYNAMIC_LINKER \
    119119  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
    120120#define LINUX_DYNAMIC_LINKER32 \
     
    127127#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
    128128
    129129#define TARGET_POSIX_IO
     130
     131/* Remove /usr/include from the end of the include search path.  */
     132#undef STANDARD_INCLUDE_DIR
     133#define STANDARD_INCLUDE_DIR 0
  • gcc/config/m32r/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/m32r/linux.h gcc-4.2.0/gcc/config/m32r/linux.h
    old new  
    5959
    6060/* If ELF is the default format, we should not use /lib/elf.  */
    6161
    62 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     62#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    6363
    6464#undef  LINK_SPEC
    6565#if TARGET_LITTLE_ENDIAN
  • gcc/config/m68k/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/m68k/linux.h gcc-4.2.0/gcc/config/m68k/linux.h
    old new  
    123123
    124124/* If ELF is the default format, we should not use /lib/elf.  */
    125125
    126 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     126#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    127127
    128128#undef  LINK_SPEC
    129129#define LINK_SPEC "-m m68kelf %{shared} \
  • gcc/config/mips/linux64.h

    diff -Naur gcc-4.2.0.orig/gcc/config/mips/linux64.h gcc-4.2.0/gcc/config/mips/linux64.h
    old new  
    3636%{!shared: %{pthread:-lpthread} \
    3737  %{profile:-lc_p} %{!profile: -lc}}"
    3838
    39 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
    40 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
    41 #define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
    42 #define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
     39#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
     40#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld.so.1"
     41#define GLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld.so.1"
     42#define UCLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld-uClibc.so.0"
    4343#define LINUX_DYNAMIC_LINKERN32 \
    4444  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
    4545
  • gcc/config/mips/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/mips/linux.h gcc-4.2.0/gcc/config/mips/linux.h
    old new  
    104104#undef MIPS_DEFAULT_GVALUE
    105105#define MIPS_DEFAULT_GVALUE 0
    106106
    107 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     107#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    108108
    109109/* Borrowed from sparc/linux.h */
    110110#undef LINK_SPEC
  • gcc/config/mn10300/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/mn10300/linux.h gcc-4.2.0/gcc/config/mn10300/linux.h
    old new  
    3333#undef  ASM_SPEC
    3434#define ASM_SPEC "%{Wa,*:%*}"
    3535
    36 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     36#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    3737
    3838#undef  LINK_SPEC
    3939#define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
  • gcc/config/pa/pa-linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/pa/pa-linux.h gcc-4.2.0/gcc/config/pa/pa-linux.h
    old new  
    4545/* Define this for shared library support because it isn't in the main
    4646   linux.h file.  */
    4747
    48 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     48#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    4949
    5050#undef LINK_SPEC
    5151#define LINK_SPEC "\
  • gcc/config/rs6000/linux64.h

    diff -Naur gcc-4.2.0.orig/gcc/config/rs6000/linux64.h gcc-4.2.0/gcc/config/rs6000/linux64.h
    old new  
    336336#undef  LINK_OS_DEFAULT_SPEC
    337337#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
    338338
    339 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
    340 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
    341 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    342 #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
     339#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
     340#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld64.so.1"
     341#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
     342#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
    343343#if UCLIBC_DEFAULT
    344344#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    345345#else
  • gcc/config/rs6000/sysv4.h

    diff -Naur gcc-4.2.0.orig/gcc/config/rs6000/sysv4.h gcc-4.2.0/gcc/config/rs6000/sysv4.h
    old new  
    892892
    893893#define LINK_START_LINUX_SPEC ""
    894894
    895 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
    896 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
     895#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
     896#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    897897#if UCLIBC_DEFAULT
    898898#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    899899#else
     
    935935
    936936#define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
    937937  %{rdynamic:-export-dynamic} \
    938   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
     938  %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
    939939
    940940#define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__    \
    941941%{!undef:                                                       \
  • gcc/config/s390/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/s390/linux.h gcc-4.2.0/gcc/config/s390/linux.h
    old new  
    7373#define MULTILIB_DEFAULTS { "m31" }
    7474#endif
    7575
    76 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
    77 #define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
     76#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
     77#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
    7878
    7979#undef  LINK_SPEC
    8080#define LINK_SPEC \
  • gcc/config/sh/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/sh/linux.h gcc-4.2.0/gcc/config/sh/linux.h
    old new  
    4848
    4949#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
    5050
    51 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     51#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    5252
    5353#undef SUBTARGET_LINK_EMUL_SUFFIX
    5454#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
  • gcc/config/sparc/linux64.h

    diff -Naur gcc-4.2.0.orig/gcc/config/sparc/linux64.h gcc-4.2.0/gcc/config/sparc/linux64.h
    old new  
    144144
    145145/* If ELF is the default format, we should not use /lib/elf.  */
    146146
    147 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
    148 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
    149 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    150 #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
     147#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
     148#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
     149#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
     150#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
    151151#if UCLIBC_DEFAULT
    152152#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    153153#else
     
    167167  { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },        \
    168168  { "link_arch",         LINK_ARCH_SPEC },
    169169
    170 #define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
     170#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
    171171  %{!shared: \
    172172    %{!ibcs: \
    173173      %{!static: \
     
    176176        %{static:-static}}} \
    177177"
    178178
    179 #define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
     179#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \
    180180  %{!shared: \
    181181    %{!ibcs: \
    182182      %{!static: \
     
    257257#else /* !SPARC_BI_ARCH */
    258258
    259259#undef LINK_SPEC
    260 #define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
     260#define LINK_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \
    261261  %{!shared: \
    262262    %{!ibcs: \
    263263      %{!static: \
  • gcc/config/sparc/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/sparc/linux.h gcc-4.2.0/gcc/config/sparc/linux.h
    old new  
    121121
    122122/* If ELF is the default format, we should not use /lib/elf.  */
    123123
    124 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
    125 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
     124#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
     125#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    126126#if UCLIBC_DEFAULT
    127127#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    128128#else
     
    133133
    134134
    135135#undef  LINK_SPEC
    136 #define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
     136#define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
    137137  %{!mno-relax:%{!r:-relax}} \
    138138  %{!shared: \
    139139    %{!ibcs: \
  • gcc/config/xtensa/linux.h

    diff -Naur gcc-4.2.0.orig/gcc/config/xtensa/linux.h gcc-4.2.0/gcc/config/xtensa/linux.h
    old new  
    4343  %{mlongcalls:--longcalls} \
    4444  %{mno-longcalls:--no-longcalls}"
    4545
    46 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     46#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    4747
    4848#undef LINK_SPEC
    4949#define LINK_SPEC \
Note: See TracBrowser for help on using the repository browser.