source: patches/gcc-4.4.0-pure64_specs-1.patch@ 8df8e62

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8df8e62 was 56a4eb5, checked in by Jim Gifford <clfs@…>, 16 years ago

Updated to GCC 4.4.0

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

    Submitted By: Jim Gifford (jim at cross-lfs dot org)
    Date: 04-21-2009
    Initial Package Version: 4.4.0
    Origin: Idea originally developed by Ryan Oliver and Greg Schafer for
            the Pure LFS project.
    Upstream Status: Not Applied
    Description: This patch modifies the location of the dynamic linker for gcc-4.4.0.
    
    diff -Naur gcc-4.4.0.orig/gcc/config/alpha/gnu.h gcc-4.4.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.4.0.orig/gcc/config/alpha/linux-elf.h gcc-4.4.0/gcc/config/alpha/linux-elf.h
    old new  
    2727#define EXTRA_SPECS \
    2828{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
    2929
    30 #define GLIBC_DYNAMIC_LINKER    "/lib/ld-linux.so.2"
    31 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
     30#define GLIBC_DYNAMIC_LINKER    "/tools/lib/ld-linux.so.2"
     31#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    3232#if UCLIBC_DEFAULT
    3333#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    3434#else
  • gcc/config/arm/linux-eabi.h

    diff -Naur gcc-4.4.0.orig/gcc/config/arm/linux-eabi.h gcc-4.4.0/gcc/config/arm/linux-eabi.h
    old new  
    6161/* Use ld-linux.so.3 so that it will be possible to run "classic"
    6262   GNU/Linux binaries on an EABI system.  */
    6363#undef  GLIBC_DYNAMIC_LINKER
    64 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3"
     64#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.3"
    6565
    6666/* At this point, bpabi.h will have clobbered LINK_SPEC.  We want to
    6767   use the GNU/Linux version, not the generic BPABI version.  */
  • gcc/config/arm/linux-elf.h

    diff -Naur gcc-4.4.0.orig/gcc/config/arm/linux-elf.h gcc-4.4.0/gcc/config/arm/linux-elf.h
    old new  
    6262
    6363#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
    6464
    65 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     65#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    6666
    6767#define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
    6868   %{b} \
  • gcc/config/bfin/linux.h

    diff -Naur gcc-4.4.0.orig/gcc/config/bfin/linux.h gcc-4.4.0/gcc/config/bfin/linux.h
    old new  
    2222  %{shared:-G -Bdynamic} \
    2323  %{!shared: %{!static: \
    2424   %{rdynamic:-export-dynamic} \
    25    %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
     25   %{!dynamic-linker:-dynamic-linker /tools/lib/ld-uClibc.so.0}} \
    2626   %{static}} -init __init -fini __fini"
    2727
    2828#define MD_UNWIND_SUPPORT "config/bfin/linux-unwind.h"
  • gcc/config/cris/linux.h

    diff -Naur gcc-4.4.0.orig/gcc/config/cris/linux.h gcc-4.4.0/gcc/config/cris/linux.h
    old new  
    103103#undef CRIS_DEFAULT_CPU_VERSION
    104104#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
    105105
    106 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     106#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    107107
    108108/* We need an -rpath-link to ld.so.1, and presumably to each directory
    109109   specified with -B.  */
  • gcc/config/frv/linux.h

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

    diff -Naur gcc-4.4.0.orig/gcc/config/i386/gnu.h gcc-4.4.0/gcc/config/i386/gnu.h
    old new  
    2121*/
    2222
    2323#undef GLIBC_DYNAMIC_LINKER
    24 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so"
     24#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so"
    2525
    2626#undef TARGET_VERSION
    2727#define TARGET_VERSION fprintf (stderr, " (i386 GNU)");
  • gcc/config/i386/linux64.h

    diff -Naur gcc-4.4.0.orig/gcc/config/i386/linux64.h gcc-4.4.0/gcc/config/i386/linux64.h
    old new  
    5858   When the -shared link option is used a final link is not being
    5959   done.  */
    6060
    61 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
    62 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
     61#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-linux.so.2"
     62#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-linux-x86-64.so.2"
    6363
    6464#undef ASM_SPEC
    6565#define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} \
  • gcc/config/i386/linux.h

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

    diff -Naur gcc-4.4.0.orig/gcc/config/ia64/linux.h gcc-4.4.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/kopensolaris-gnu.h

    diff -Naur gcc-4.4.0.orig/gcc/config/kopensolaris-gnu.h gcc-4.4.0/gcc/config/kopensolaris-gnu.h
    old new  
    3333
    3434#ifdef GLIBC_DYNAMIC_LINKER
    3535#undef GLIBC_DYNAMIC_LINKER
    36 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     36#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    3737#endif
  • gcc/config/linux.h

    diff -Naur gcc-4.4.0.orig/gcc/config/linux.h gcc-4.4.0/gcc/config/linux.h
    old new  
    117117   GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
    118118   GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
    119119   supporting both 32-bit and 64-bit compilation.  */
    120 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
    121 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    122 #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
     120#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
     121#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-uClibc.so.0"
     122#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
    123123#define LINUX_DYNAMIC_LINKER \
    124124  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
    125125#define LINUX_DYNAMIC_LINKER32 \
  • gcc/config/m32r/linux.h

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

    diff -Naur gcc-4.4.0.orig/gcc/config/m68k/linux.h gcc-4.4.0/gcc/config/m68k/linux.h
    old new  
    8484
    8585/* If ELF is the default format, we should not use /lib/elf.  */
    8686
    87 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     87#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    8888
    8989#undef LINK_SPEC
    9090#define LINK_SPEC "-m m68kelf %{shared} \
  • gcc/config/mips/linux64.h

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

    diff -Naur gcc-4.4.0.orig/gcc/config/mips/linux.h gcc-4.4.0/gcc/config/mips/linux.h
    old new  
    6464#undef MIPS_DEFAULT_GVALUE
    6565#define MIPS_DEFAULT_GVALUE 0
    6666
    67 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
     67#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
    6868
    6969/* Borrowed from sparc/linux.h */
    7070#undef LINK_SPEC
  • gcc/config/mn10300/linux.h

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

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

    diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/linux64.h gcc-4.4.0/gcc/config/rs6000/linux64.h
    old new  
    342342#undef  LINK_OS_DEFAULT_SPEC
    343343#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
    344344
    345 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
    346 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
    347 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    348 #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
     345#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld.so.1"
     346#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
     347#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-uClibc.so.0"
     348#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
    349349#if UCLIBC_DEFAULT
    350350#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    351351#else
  • gcc/config/rs6000/sysv4.h

    diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/sysv4.h gcc-4.4.0/gcc/config/rs6000/sysv4.h
    old new  
    901901
    902902#define LINK_START_LINUX_SPEC ""
    903903
    904 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
    905 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
     904#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
     905#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
    906906#if UCLIBC_DEFAULT
    907907#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}"
    908908#else
     
    944944
    945945#define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
    946946  %{rdynamic:-export-dynamic} \
    947   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
     947  %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
    948948
    949949#define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__    \
    950950%{!undef:                                                       \
  • gcc/config/s390/linux.h

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

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

    diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux64.h gcc-4.4.0/gcc/config/sparc/linux64.h
    old new  
    109109
    110110/* If ELF is the default format, we should not use /lib/elf.  */
    111111
    112 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
    113 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
     112#define GLIBC_DYNAMIC_LINKER32 "/tools/lib32/ld-linux.so.2"
     113#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-linux.so.2"
    114114
    115115#ifdef SPARC_BI_ARCH
    116116
     
    121121  { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },        \
    122122  { "link_arch",         LINK_ARCH_SPEC },
    123123
    124 #define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
     124#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/tools/lib32 %{shared:-shared} \
    125125  %{!shared: \
    126126    %{!ibcs: \
    127127      %{!static: \
     
    130130        %{static:-static}}} \
    131131"
    132132
    133 #define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     133#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,%R/tools/lib %{shared:-shared} \
    134134  %{!shared: \
    135135    %{!ibcs: \
    136136      %{!static: \
     
    211211#else /* !SPARC_BI_ARCH */
    212212
    213213#undef LINK_SPEC
    214 #define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
     214#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib %{shared:-shared} \
    215215  %{!shared: \
    216216    %{!ibcs: \
    217217      %{!static: \
  • gcc/config/sparc/linux.h

    diff -Naur gcc-4.4.0.orig/gcc/config/sparc/linux.h gcc-4.4.0/gcc/config/sparc/linux.h
    old new  
    8383
    8484/* If ELF is the default format, we should not use /lib/elf.  */
    8585
    86 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
     86#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    8787
    8888#undef  LINK_SPEC
    89 #define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
     89#define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib32 %{shared:-shared} \
    9090  %{!mno-relax:%{!r:-relax}} \
    9191  %{!shared: \
    9292    %{!ibcs: \
  • gcc/config/xtensa/linux.h

    diff -Naur gcc-4.4.0.orig/gcc/config/xtensa/linux.h gcc-4.4.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.