source: patches/gcc-4.0.3-pure64-1.patch@ 69cde8d

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 69cde8d 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: 6.3 KB
  • gcc/config/i386/linux64.h

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2005-08-27
    Initial Package Version: 4.x
    Origin: Ken Moffat and Jim Gifford
    Upstream Status: LFS Specific
    Description: Make LIB64 builds in /lib instead of /lib64 
    
    diff -Naur gcc-4.0.1.orig/gcc/config/i386/linux64.h gcc-4.0.1/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 /lib32/ld-linux.so.2}} \
     64      %{!m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux-x86-64.so.2}}} \
    6565    %{static:-static}}"
    6666
    6767#define MULTILIB_DEFAULTS { "m64" }
  • gcc/config/i386/t-linux64

    diff -Naur gcc-4.0.1.orig/gcc/config/i386/t-linux64 gcc-4.0.1/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.0.1.orig/gcc/config/mips/linux64.h gcc-4.0.1/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 /lib64/ld.so.1} \
     51          %{mabi=64: -dynamic-linker /lib/ld.so.1} \
     52          %{mabi=32: -dynamic-linker /lib32/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/mips/t-linux64

    diff -Naur gcc-4.0.1.orig/gcc/config/mips/t-linux64 gcc-4.0.1/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.0.1.orig/gcc/config/rs6000/linux64.h gcc-4.0.1/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 /lib32/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 /lib/ld64.so.1}}}"
    359359
    360360#undef  TOC_SECTION_ASM_OP
    361361#define TOC_SECTION_ASM_OP \
  • gcc/config/rs6000/t-linux64

    diff -Naur gcc-4.0.1.orig/gcc/config/rs6000/t-linux64 gcc-4.0.1/gcc/config/rs6000/t-linux64
    old new  
    1313MULTILIB_EXTRA_OPTS     = fPIC mstrict-align
    1414MULTILIB_EXCEPTIONS     = m64/msoft-float
    1515MULTILIB_EXCLUSIONS     = m64/!m32/msoft-float
    16 MULTILIB_OSDIRNAMES     = ../lib64 ../lib nof
     16MULTILIB_OSDIRNAMES     = ../lib ../lib32 nof
    1717MULTILIB_MATCHES        = $(MULTILIB_MATCHES_FLOAT)
    1818
    1919# We want fine grained libraries, so use the new code to build the
  • gcc/config/sparc/linux64.h

    diff -Naur gcc-4.0.1.orig/gcc/config/sparc/linux64.h gcc-4.0.1/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,/usr/lib32 %{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 /lib32/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,/usr/lib %{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 /lib/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,/usr/lib %{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 /lib/ld-linux.so.2}} \
    266266        %{static:-static}}} \
    267267%{mlittle-endian:-EL} \
    268268%{!mno-relax:%{!r:-relax}} \
  • gcc/config/sparc/t-linux64

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