source: patches/gcc-4.4.0-pure64-1.patch@ 34694b6

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

Updated to GCC 4.4.0

  • Property mode set to 100644
File size: 8.4 KB
  • gcc/config/i386/linux64.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/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 "/lib32/ld-linux.so.2"
     62#define GLIBC_DYNAMIC_LINKER64 "/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/t-linux64

    diff -Naur gcc-4.4.0.orig/gcc/config/i386/t-linux64 gcc-4.4.0/gcc/config/i386/t-linux64
    old new  
    77
    88MULTILIB_OPTIONS = m64/m32
    99MULTILIB_DIRNAMES = 64 32
    10 MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
     10MULTILIB_OSDIRNAMES     = ../lib $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
    1111
    1212LIBGCC = stmp-multilib
    1313INSTALL_LIBGCC = install-multilib
  • 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  
    118118   GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
    119119   supporting both 32-bit and 64-bit compilation.  */
    120120#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
    121 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
     121#define UCLIBC_DYNAMIC_LINKER32 "/lib32/ld-uClibc.so.0"
    122122#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
    123123#define LINUX_DYNAMIC_LINKER \
    124124  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
  • 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 "/lib32/ld.so.1"
     39#define GLIBC_DYNAMIC_LINKER64 "/lib/ld.so.1"
     40#define GLIBC_DYNAMIC_LINKERN32 "/lib64/ld.so.1"
     41#define UCLIBC_DYNAMIC_LINKERN32 "/lib64/ld-uClibc.so.0"
    4242#define LINUX_DYNAMIC_LINKERN32 \
    4343  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
    4444
  • gcc/config/mips/t-linux64

    diff -Naur gcc-4.4.0.orig/gcc/config/mips/t-linux64 gcc-4.4.0/gcc/config/mips/t-linux64
    old new  
    11MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64
    22MULTILIB_DIRNAMES = n32 32 64
    3 MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64
     3MULTILIB_OSDIRNAMES = ../lib64 ../lib32 ../lib
    44
    55EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
    66
  • 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"
     345#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld.so.1"
     346#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
     347#define UCLIBC_DYNAMIC_LINKER32 "/lib32/ld-uClibc.so.0"
    348348#define UCLIBC_DYNAMIC_LINKER64 "/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 "}"
  • gcc/config/rs6000/t-linux64

    diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/t-linux64 gcc-4.4.0/gcc/config/rs6000/t-linux64
    old new  
    1919MULTILIB_EXTRA_OPTS     = fPIC mstrict-align
    2020MULTILIB_EXCEPTIONS     = m64/msoft-float
    2121MULTILIB_EXCLUSIONS     = m64/!m32/msoft-float
    22 MULTILIB_OSDIRNAMES     = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof
     22MULTILIB_OSDIRNAMES     = ../lib $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof
    2323MULTILIB_MATCHES        = $(MULTILIB_MATCHES_FLOAT)
    2424
    2525softfp_wrap_start := '\#ifndef __powerpc64__'
  • 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"
     75#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld.so.1"
    7676#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
    7777
    7878#undef  LINK_SPEC
  • gcc/config/s390/t-linux64

    diff -Naur gcc-4.4.0.orig/gcc/config/s390/t-linux64 gcc-4.4.0/gcc/config/s390/t-linux64
    old new  
    11MULTILIB_OPTIONS = m64/m31
    22MULTILIB_DIRNAMES = 64 32
    3 MULTILIB_OSDIRNAMES = ../lib64 ../lib
     3MULTILIB_OSDIRNAMES = ../lib ../lib32
    44
    55LIBGCC = stmp-multilib
    66INSTALL_LIBGCC = install-multilib
  • 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 "/lib32/ld-linux.so.2"
     113#define GLIBC_DYNAMIC_LINKER64 "/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/usr/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/usr/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/usr/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  
    8686#define GLIBC_DYNAMIC_LINKER "/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,/usr/lib32 %{shared:-shared} \
    9090  %{!mno-relax:%{!r:-relax}} \
    9191  %{!shared: \
    9292    %{!ibcs: \
  • gcc/config/sparc/t-linux64

    diff -Naur gcc-4.4.0.orig/gcc/config/sparc/t-linux64 gcc-4.4.0/gcc/config/sparc/t-linux64
    old new  
    11MULTILIB_OPTIONS = m64/m32
    22MULTILIB_DIRNAMES = 64 32
    3 MULTILIB_OSDIRNAMES = ../lib64 ../lib
     3MULTILIB_OSDIRNAMES = ../lib ../lib32
    44
    55LIBGCC = stmp-multilib
    66INSTALL_LIBGCC = install-multilib
Note: See TracBrowser for help on using the repository browser.