source: patches/gcc-4.0.3-specs-1.patch@ c1266a1

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c1266a1 was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 14.5 KB
  • gcc/config/alpha/linux-elf.h

    Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes)
    Date: 2006-01-16
    Initial Package Version: 4.0.0
    Upstream Status: Not Sent - LFS Specfic
    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.
    	Modified for gcc 3.3.2 by Oliver Brakmann.
    Rediffed against gcc 3.4.0 by Zack Winkles.
    	Rediffed against gcc 3.4.3 by Jim Gifford.
    	Rediffed against gcc 4.0.0 by Robert Connolly.
    Description: This patch modifies the location of the dynamic linker for
    	the GCC Pass 2 build in LFS Chapter 5.
    
    diff -Naur gcc-20050116.orig/gcc/config/alpha/linux-elf.h gcc-20050116/gcc/config/alpha/linux-elf.h
    old new  
    2727#define SUBTARGET_EXTRA_SPECS \
    2828{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
    2929
    30 #define ELF_DYNAMIC_LINKER      "/lib/ld-linux.so.2"
     30#define ELF_DYNAMIC_LINKER      "/tools/lib/ld-linux.so.2"
    3131
    3232#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax}          \
    3333  %{O*:-O3} %{!O*:-O1}                                          \
  • gcc/config/arm/linux-elf.h

    diff -Naur gcc-20050116.orig/gcc/config/arm/linux-elf.h gcc-20050116/gcc/config/arm/linux-elf.h
    old new  
    8787   %{shared:-shared} \
    8888   %{symbolic:-Bsymbolic} \
    8989   %{rdynamic:-export-dynamic} \
    90    %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
     90   %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2} \
    9191   -X \
    9292   %{mbig-endian:-EB}" \
    9393   SUBTARGET_EXTRA_LINK_SPEC
  • gcc/config/frv/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/frv/linux.h gcc-20050116/gcc/config/frv/linux.h
    old new  
    4141  %{mfdpic: -m elf32frvfd -z text} %{shared} %{pie} \
    4242  %{!shared: %{!static: \
    4343   %{rdynamic:-export-dynamic} \
    44    %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
     44   %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
    4545   %{static}}"
    4646
    4747/* Support for compile-time default CPU.  */
  • gcc/config/i386/gnu.h

    diff -Naur gcc-20050116.orig/gcc/config/i386/gnu.h gcc-20050116/gcc/config/i386/gnu.h
    old new  
    2727  %{!shared: \
    2828    %{!static: \
    2929      %{rdynamic:-export-dynamic} \
    30       %{!dynamic-linker:-dynamic-linker /lib/ld.so}} \
     30      %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so}} \
    3131    %{static:-static}}"
    3232
    3333#undef  STARTFILE_SPEC
  • gcc/config/i386/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/i386/linux.h gcc-20050116/gcc/config/i386/linux.h
    old new  
    105105/* If ELF is the default format, we should not use /lib/elf.  */
    106106
    107107#define LINK_EMULATION "elf_i386"
    108 #define DYNAMIC_LINKER "/lib/ld-linux.so.2"
     108#define DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
    109109
    110110#undef  SUBTARGET_EXTRA_SPECS
    111111#define SUBTARGET_EXTRA_SPECS \
  • gcc/config/i386/linux64.h

    diff -Naur gcc-20050116.orig/gcc/config/i386/linux64.h gcc-20050116/gcc/config/i386/linux64.h
    old new  
    6060  %{!shared: \
    6161    %{!static: \
    6262      %{rdynamic:-export-dynamic} \
    63       %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
    64       %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
     63      %{m32:%{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
     64      %{!m32:%{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux-x86-64.so.2}}} \
    6565    %{static:-static}}"
    6666
    6767#define MULTILIB_DEFAULTS { "m64" }
  • gcc/config/ia64/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/ia64/linux.h gcc-20050116/gcc/config/ia64/linux.h
    old new  
    4343  %{!shared: \
    4444    %{!static: \
    4545      %{rdynamic:-export-dynamic} \
    46       %{!dynamic-linker:-dynamic-linker /lib/ld-linux-ia64.so.2}} \
     46      %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux-ia64.so.2}} \
    4747      %{static:-static}}"
    4848
    4949
  • gcc/config/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/linux.h gcc-20050116/gcc/config/linux.h
    old new  
    104104#define TARGET_C99_FUNCTIONS 1
    105105
    106106#define TARGET_HAS_F_SETLKW
     107
     108/* Remove /usr/include from the end of the include search path.  */
     109#undef STANDARD_INCLUDE_DIR
     110#define STANDARD_INCLUDE_DIR 0
  • gcc/config/m32r/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/m32r/linux.h gcc-20050116/gcc/config/m32r/linux.h
    old new  
    6666    %{!ibcs: \
    6767      %{!static: \
    6868        %{rdynamic:-export-dynamic} \
    69         %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
     69        %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
    7070        %{static:-static}}}"
    7171#else
    7272#define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \
     
    7474    %{!ibcs: \
    7575      %{!static: \
    7676        %{rdynamic:-export-dynamic} \
    77         %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
     77        %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
    7878        %{static:-static}}}"
    7979#endif
    8080
  • gcc/config/m68k/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/m68k/linux.h gcc-20050116/gcc/config/m68k/linux.h
    old new  
    132132  %{!shared: \
    133133    %{!static: \
    134134      %{rdynamic:-export-dynamic} \
    135       %{!dynamic-linker*:-dynamic-linker /lib/ld.so.1}} \
     135      %{!dynamic-linker*:-dynamic-linker /tools/lib/ld.so.1}} \
    136136    %{static}}"
    137137
    138138/* For compatibility with linux/a.out */
  • gcc/config/mips/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/mips/linux.h gcc-20050116/gcc/config/mips/linux.h
    old new  
    115115    %{!ibcs: \
    116116      %{!static: \
    117117        %{rdynamic:-export-dynamic} \
    118         %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
     118        %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
    119119        %{static:-static}}}"
    120120
    121121#undef SUBTARGET_ASM_SPEC
  • gcc/config/mips/linux64.h

    diff -Naur gcc-20050116.orig/gcc/config/mips/linux64.h gcc-20050116/gcc/config/mips/linux64.h
    old new  
    6060      %{!static: \
    6161        %{rdynamic:-export-dynamic} \
    6262        %{!dynamic-linker: \
    63           %{mabi=n32: -dynamic-linker /lib32/ld.so.1} \
    64           %{mabi=64: -dynamic-linker /lib64/ld.so.1} \
    65           %{mabi=32: -dynamic-linker /lib/ld.so.1}}} \
     63          %{mabi=n32: -dynamic-linker /tools/lib32/ld.so.1} \
     64          %{mabi=64: -dynamic-linker /tools/lib64/ld.so.1} \
     65          %{mabi=32: -dynamic-linker /tools/lib/ld.so.1}}} \
    6666      %{static:-static}}} \
    6767%{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \
    6868%{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \
  • gcc/config/mn10300/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/mn10300/linux.h gcc-20050116/gcc/config/mn10300/linux.h
    old new  
    3737#define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
    3838   %{!static: \
    3939     %{rdynamic:-export-dynamic} \
    40      %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
     40     %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
    4141   %{static:-static}"
    4242
    4343#undef  LIB_SPEC
  • gcc/config/pa/pa-linux.h

    diff -Naur gcc-20050116.orig/gcc/config/pa/pa-linux.h gcc-20050116/gcc/config/pa/pa-linux.h
    old new  
    8888  %{!shared: \
    8989    %{!static: \
    9090      %{rdynamic:-export-dynamic} \
    91       %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
     91      %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
    9292      %{static:-static}}"
    9393
    9494/* glibc's profiling functions don't need gcc to allocate counters.  */
  • gcc/config/rs6000/linux64.h

    diff -Naur gcc-20050116.orig/gcc/config/rs6000/linux64.h gcc-20050116/gcc/config/rs6000/linux64.h
    old new  
    351351
    352352#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
    353353  %{rdynamic:-export-dynamic} \
    354   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
     354  %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
    355355
    356356#define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
    357357  %{rdynamic:-export-dynamic} \
    358   %{!dynamic-linker:-dynamic-linker /lib64/ld64.so.1}}}"
     358  %{!dynamic-linker:-dynamic-linker /tools/lib64/ld64.so.1}}}"
    359359
    360360#undef  TOC_SECTION_ASM_OP
    361361#define TOC_SECTION_ASM_OP \
  • gcc/config/rs6000/sysv4.h

    diff -Naur gcc-20050116.orig/gcc/config/rs6000/sysv4.h gcc-20050116/gcc/config/rs6000/sysv4.h
    old new  
    11311131
    11321132#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
    11331133  %{rdynamic:-export-dynamic} \
    1134   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
     1134  %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
    11351135
    11361136#if defined(HAVE_LD_EH_FRAME_HDR)
    11371137# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
     
    11621162
    11631163#define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
    11641164  %{rdynamic:-export-dynamic} \
    1165   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
     1165  %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
    11661166
    11671167#define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__    \
    11681168%{!undef:                                                       \
  • gcc/config/s390/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/s390/linux.h gcc-20050116/gcc/config/s390/linux.h
    old new  
    8686      %{!static: \
    8787        %{rdynamic:-export-dynamic} \
    8888        %{!dynamic-linker: \
    89           %{m31:-dynamic-linker /lib/ld.so.1} \
    90           %{m64:-dynamic-linker /lib/ld64.so.1}}}}"
     89          %{m31:-dynamic-linker /tools/lib/ld.so.1} \
     90          %{m64:-dynamic-linker /tools/lib/ld64.so.1}}}}"
    9191
    9292
    9393#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
  • gcc/config/sh/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/sh/linux.h gcc-20050116/gcc/config/sh/linux.h
    old new  
    7070  "%{shared:-shared} \
    7171   %{!static: \
    7272     %{rdynamic:-export-dynamic} \
    73      %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
     73     %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
    7474   %{static:-static}"
    7575
    7676#undef LIB_SPEC
  • gcc/config/sparc/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/sparc/linux.h gcc-20050116/gcc/config/sparc/linux.h
    old new  
    131131/* If ELF is the default format, we should not use /lib/elf.  */
    132132
    133133#undef  LINK_SPEC
    134 #define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
     134#define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
    135135  %{!mno-relax:%{!r:-relax}} \
    136136  %{!shared: \
    137137    %{!ibcs: \
    138138      %{!static: \
    139139        %{rdynamic:-export-dynamic} \
    140         %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
     140        %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
    141141        %{static:-static}}}"
    142142
    143143/* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
  • gcc/config/sparc/linux64.h

    diff -Naur gcc-20050116.orig/gcc/config/sparc/linux64.h gcc-20050116/gcc/config/sparc/linux64.h
    old new  
    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: \
    174174        %{rdynamic:-export-dynamic} \
    175         %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
     175        %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
    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: \
    183183        %{rdynamic:-export-dynamic} \
    184         %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
     184        %{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux.so.2}} \
    185185        %{static:-static}}} \
    186186"
    187187
     
    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: \
    264264        %{rdynamic:-export-dynamic} \
    265         %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
     265        %{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux.so.2}} \
    266266        %{static:-static}}} \
    267267%{mlittle-endian:-EL} \
    268268%{!mno-relax:%{!r:-relax}} \
  • gcc/config/xtensa/linux.h

    diff -Naur gcc-20050116.orig/gcc/config/xtensa/linux.h gcc-20050116/gcc/config/xtensa/linux.h
    old new  
    5050    %{!ibcs: \
    5151      %{!static: \
    5252        %{rdynamic:-export-dynamic} \
    53         %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
     53        %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
    5454      %{static:-static}}}"
    5555
    5656#undef LOCAL_LABEL_PREFIX
Note: See TracBrowser for help on using the repository browser.