source: patches/gcc-4.1.1-specs-1.patch@ 83be575

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 83be575 was 89d1048, checked in by Jim Gifford <clfs@…>, 18 years ago

Updated to GCC 4.1.1 patches

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

    Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes)
    Date: 2006-02-17
    Initial Package Version: 4.1.0
    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.
            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.
            Rediffed against gcc 4.1.0 by Chris Staub
    Description: This patch modifies the location of the dynamic linker for
            the GCC Pass 2 build in LFS Chapter 5.
    
    diff -Naur gcc-4.1.0.orig/gcc/config/alpha/linux-elf.h gcc-4.1.0/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-4.1.0.orig/gcc/config/arm/linux-elf.h gcc-4.1.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 LINUX_TARGET_INTERPRETER "/lib/ld-linux.so.2"
     54#define LINUX_TARGET_INTERPRETER "/tools/lib/ld-linux.so.2"
    5555
    5656#define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
    5757   %{b} \
  • gcc/config/frv/linux.h

    diff -Naur gcc-4.1.0.orig/gcc/config/frv/linux.h gcc-4.1.0/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-4.1.0.orig/gcc/config/i386/gnu.h gcc-4.1.0/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-4.1.0.orig/gcc/config/i386/linux.h gcc-4.1.0/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-4.1.0.orig/gcc/config/i386/linux64.h gcc-4.1.0/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/* Similar to standard Linux, but adding -ffast-math support.  */
  • gcc/config/ia64/linux.h

    diff -Naur gcc-4.1.0.orig/gcc/config/ia64/linux.h gcc-4.1.0/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-4.1.0.orig/gcc/config/linux.h gcc-4.1.0/gcc/config/linux.h
    old new  
    104104#define TARGET_C99_FUNCTIONS 1
    105105
    106106#define TARGET_POSIX_IO
     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-4.1.0.orig/gcc/config/m32r/linux.h gcc-4.1.0/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-4.1.0.orig/gcc/config/m68k/linux.h gcc-4.1.0/gcc/config/m68k/linux.h
    old new  
    128128  %{!shared: \
    129129    %{!static: \
    130130      %{rdynamic:-export-dynamic} \
    131       %{!dynamic-linker*:-dynamic-linker /lib/ld.so.1}} \
     131      %{!dynamic-linker*:-dynamic-linker /tools/lib/ld.so.1}} \
    132132    %{static}}"
    133133
    134134/* For compatibility with linux/a.out */
  • gcc/config/mips/linux.h

    diff -Naur gcc-4.1.0.orig/gcc/config/mips/linux.h gcc-4.1.0/gcc/config/mips/linux.h
    old new  
    112112    %{!ibcs: \
    113113      %{!static: \
    114114        %{rdynamic:-export-dynamic} \
    115         %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
     115        %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
    116116        %{static:-static}}}"
    117117
    118118#undef SUBTARGET_ASM_SPEC
  • gcc/config/mips/linux64.h

    diff -Naur gcc-4.1.0.orig/gcc/config/mips/linux64.h gcc-4.1.0/gcc/config/mips/linux64.h
    old new  
    4747      %{!static: \
    4848        %{rdynamic:-export-dynamic} \
    4949        %{!dynamic-linker: \
    50           %{mabi=n32: -dynamic-linker /lib32/ld.so.1} \
    51           %{mabi=64: -dynamic-linker /lib64/ld.so.1} \
    52           %{mabi=32: -dynamic-linker /lib/ld.so.1}}} \
     50          %{mabi=n32: -dynamic-linker /tools/lib32/ld.so.1} \
     51          %{mabi=64: -dynamic-linker /tools/lib64/ld.so.1} \
     52          %{mabi=32: -dynamic-linker /tools/lib/ld.so.1}}} \
    5353      %{static:-static}}} \
    5454%{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \
    5555%{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \
  • gcc/config/mn10300/linux.h

    diff -Naur gcc-4.1.0.orig/gcc/config/mn10300/linux.h gcc-4.1.0/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  PROCESSOR_DEFAULT
  • gcc/config/pa/pa-linux.h

    diff -Naur gcc-4.1.0.orig/gcc/config/pa/pa-linux.h gcc-4.1.0/gcc/config/pa/pa-linux.h
    old new  
    5555  %{!shared: \
    5656    %{!static: \
    5757      %{rdynamic:-export-dynamic} \
    58       %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
     58      %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \
    5959      %{static:-static}}"
    6060
    6161/* glibc's profiling functions don't need gcc to allocate counters.  */
  • gcc/config/rs6000/linux64.h

    diff -Naur gcc-4.1.0.orig/gcc/config/rs6000/linux64.h gcc-4.1.0/gcc/config/rs6000/linux64.h
    old new  
    339339
    340340#define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \
    341341  %{rdynamic:-export-dynamic} \
    342   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
     342  %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
    343343
    344344#define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \
    345345  %{rdynamic:-export-dynamic} \
    346   %{!dynamic-linker:-dynamic-linker /lib64/ld64.so.1}}}"
     346  %{!dynamic-linker:-dynamic-linker /tools/lib64/ld64.so.1}}}"
    347347
    348348#undef  TOC_SECTION_ASM_OP
    349349#define TOC_SECTION_ASM_OP \
  • gcc/config/rs6000/sysv4.h

    diff -Naur gcc-4.1.0.orig/gcc/config/rs6000/sysv4.h gcc-4.1.0/gcc/config/rs6000/sysv4.h
    old new  
    10411041
    10421042#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
    10431043  %{rdynamic:-export-dynamic} \
    1044   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
     1044  %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
    10451045
    10461046#if defined(HAVE_LD_EH_FRAME_HDR)
    10471047# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
     
    10721072
    10731073#define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \
    10741074  %{rdynamic:-export-dynamic} \
    1075   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
     1075  %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}"
    10761076
    10771077#define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__    \
    10781078%{!undef:                                                       \
  • gcc/config/s390/linux.h

    diff -Naur gcc-4.1.0.orig/gcc/config/s390/linux.h gcc-4.1.0/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-4.1.0.orig/gcc/config/sh/linux.h gcc-4.1.0/gcc/config/sh/linux.h
    old new  
    6060  "%{shared:-shared} \
    6161   %{!static: \
    6262     %{rdynamic:-export-dynamic} \
    63      %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
     63     %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
    6464   %{static:-static}"
    6565
    6666/* Output assembler code to STREAM to call the profiler.  */
  • gcc/config/sparc/linux.h

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

    diff -Naur gcc-4.1.0.orig/gcc/config/sparc/linux64.h gcc-4.1.0/gcc/config/sparc/linux64.h
    old new  
    162162  { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },        \
    163163  { "link_arch",         LINK_ARCH_SPEC },
    164164   
    165 #define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
     165#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \
    166166  %{!shared: \
    167167    %{!ibcs: \
    168168      %{!static: \
    169169        %{rdynamic:-export-dynamic} \
    170         %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
     170        %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \
    171171        %{static:-static}}} \
    172172"
    173173
    174 #define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
     174#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \
    175175  %{!shared: \
    176176    %{!ibcs: \
    177177      %{!static: \
    178178        %{rdynamic:-export-dynamic} \
    179         %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
     179        %{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux.so.2}} \
    180180        %{static:-static}}} \
    181181"
    182182
     
    252252#else /* !SPARC_BI_ARCH */
    253253
    254254#undef LINK_SPEC
    255 #define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
     255#define LINK_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \
    256256  %{!shared: \
    257257    %{!ibcs: \
    258258      %{!static: \
    259259        %{rdynamic:-export-dynamic} \
    260         %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
     260        %{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux.so.2}} \
    261261        %{static:-static}}} \
    262262%{mlittle-endian:-EL} \
    263263%{!mno-relax:%{!r:-relax}} \
  • gcc/config/xtensa/linux.h

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