source: patches/gcc-4.2.2-pure64-1.patch@ 6b5cc685

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

Added: gcc 4.2.2 patches

  • Property mode set to 100644
File size: 6.8 KB
  • 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 "/lib32/ld-linux.so.2"
     53#define GLIBC_DYNAMIC_LINKER64 "/lib/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/t-linux64

    diff -Naur gcc-4.2.0.orig/gcc/config/i386/t-linux64 gcc-4.2.0/gcc/config/i386/t-linux64
    old new  
    66
    77MULTILIB_OPTIONS = m64/m32
    88MULTILIB_DIRNAMES = 64 32
    9 MULTILIB_OSDIRNAMES = ../lib64 ../lib
     9MULTILIB_OSDIRNAMES = ../lib ../lib32
    1010
    1111LIBGCC = stmp-multilib
    1212INSTALL_LIBGCC = install-multilib
  • 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 "/lib32/ld.so.1"
     40#define GLIBC_DYNAMIC_LINKER64 "/lib/ld.so.1"
     41#define GLIBC_DYNAMIC_LINKERN32 "/lib64/ld.so.1"
     42#define UCLIBC_DYNAMIC_LINKERN32 "/lib64/ld-uClibc.so.0"
    4343#define LINUX_DYNAMIC_LINKERN32 \
    4444  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
    4545
  • gcc/config/mips/t-linux64

    diff -Naur gcc-4.2.0.orig/gcc/config/mips/t-linux64 gcc-4.2.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.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"
     339#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld.so.1"
     340#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
    341341#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    342342#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
    343343#if UCLIBC_DEFAULT
  • gcc/config/rs6000/t-linux64

    diff -Naur gcc-4.2.0.orig/gcc/config/rs6000/t-linux64 gcc-4.2.0/gcc/config/rs6000/t-linux64
    old new  
    1212MULTILIB_EXTRA_OPTS     = fPIC mstrict-align
    1313MULTILIB_EXCEPTIONS     = m64/msoft-float
    1414MULTILIB_EXCLUSIONS     = m64/!m32/msoft-float
    15 MULTILIB_OSDIRNAMES     = ../lib64 ../lib nof
     15MULTILIB_OSDIRNAMES     = ../lib ../lib32 nof
    1616MULTILIB_MATCHES        = $(MULTILIB_MATCHES_FLOAT)
    1717
    1818softfp_wrap_start := '\#ifndef __powerpc64__'
  • gcc/config/s390/t-linux64

    diff -Naur gcc-4.2.0.orig/gcc/config/s390/t-linux64 gcc-4.2.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.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"
     147#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld-linux.so.2"
     148#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-linux.so.2"
    149149#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
    150150#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
    151151#if UCLIBC_DEFAULT
     
    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,/usr/lib32 %{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,/usr/lib %{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,/usr/lib %{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  
    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,/usr/lib32 %{shared:-shared} \
    137137  %{!mno-relax:%{!r:-relax}} \
    138138  %{!shared: \
    139139    %{!ibcs: \
  • gcc/config/sparc/t-linux64

    diff -Naur gcc-4.2.0.orig/gcc/config/sparc/t-linux64 gcc-4.2.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
     
    1010
    1111CRTSTUFF_T_CFLAGS = `if test x$$($(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) \
    1212                                 -print-multi-os-directory) \
    13                         = x../lib64; then echo -mcmodel=medany; fi`
     13                        = x../lib; then echo -mcmodel=medany; fi`
Note: See TracBrowser for help on using the repository browser.