source:
patches/gcc-4.0.3-pure64-1.patch@
c1266a1
Last change on this file since c1266a1 was 69cde8d, checked in by , 19 years ago | |
---|---|
|
|
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 60 60 %{!shared: \ 61 61 %{!static: \ 62 62 %{rdynamic:-export-dynamic} \ 63 %{m32:%{!dynamic-linker:-dynamic-linker /lib /ld-linux.so.2}} \64 %{!m32:%{!dynamic-linker:-dynamic-linker /lib 64/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}}} \ 65 65 %{static:-static}}" 66 66 67 67 #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 6 6 7 7 MULTILIB_OPTIONS = m64/m32 8 8 MULTILIB_DIRNAMES = 64 32 9 MULTILIB_OSDIRNAMES = ../lib 64 ../lib9 MULTILIB_OSDIRNAMES = ../lib ../lib32 10 10 11 11 LIBGCC = stmp-multilib 12 12 INSTALL_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 47 47 %{!static: \ 48 48 %{rdynamic:-export-dynamic} \ 49 49 %{!dynamic-linker: \ 50 %{mabi=n32: -dynamic-linker /lib 32/ld.so.1} \51 %{mabi=64: -dynamic-linker /lib 64/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}}} \ 53 53 %{static:-static}}} \ 54 54 %{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \ 55 55 %{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 1 1 MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64 2 2 MULTILIB_DIRNAMES = n32 32 64 3 MULTILIB_OSDIRNAMES = ../lib 32 ../lib ../lib643 MULTILIB_OSDIRNAMES = ../lib64 ../lib32 ../lib 4 4 5 5 EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o 6 6 -
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 351 351 352 352 #define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \ 353 353 %{rdynamic:-export-dynamic} \ 354 %{!dynamic-linker:-dynamic-linker /lib /ld.so.1}}}"354 %{!dynamic-linker:-dynamic-linker /lib32/ld.so.1}}}" 355 355 356 356 #define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \ 357 357 %{rdynamic:-export-dynamic} \ 358 %{!dynamic-linker:-dynamic-linker /lib 64/ld64.so.1}}}"358 %{!dynamic-linker:-dynamic-linker /lib/ld64.so.1}}}" 359 359 360 360 #undef TOC_SECTION_ASM_OP 361 361 #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 13 13 MULTILIB_EXTRA_OPTS = fPIC mstrict-align 14 14 MULTILIB_EXCEPTIONS = m64/msoft-float 15 15 MULTILIB_EXCLUSIONS = m64/!m32/msoft-float 16 MULTILIB_OSDIRNAMES = ../lib 64 ../libnof16 MULTILIB_OSDIRNAMES = ../lib ../lib32 nof 17 17 MULTILIB_MATCHES = $(MULTILIB_MATCHES_FLOAT) 18 18 19 19 # 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 167 167 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \ 168 168 { "link_arch", LINK_ARCH_SPEC }, 169 169 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} \ 171 171 %{!shared: \ 172 172 %{!ibcs: \ 173 173 %{!static: \ 174 174 %{rdynamic:-export-dynamic} \ 175 %{!dynamic-linker:-dynamic-linker /lib /ld-linux.so.2}} \175 %{!dynamic-linker:-dynamic-linker /lib32/ld-linux.so.2}} \ 176 176 %{static:-static}}} \ 177 177 " 178 178 179 #define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib 64%{shared:-shared} \179 #define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib %{shared:-shared} \ 180 180 %{!shared: \ 181 181 %{!ibcs: \ 182 182 %{!static: \ 183 183 %{rdynamic:-export-dynamic} \ 184 %{!dynamic-linker:-dynamic-linker /lib 64/ld-linux.so.2}} \184 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \ 185 185 %{static:-static}}} \ 186 186 " 187 187 … … 257 257 #else /* !SPARC_BI_ARCH */ 258 258 259 259 #undef LINK_SPEC 260 #define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib 64%{shared:-shared} \260 #define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib %{shared:-shared} \ 261 261 %{!shared: \ 262 262 %{!ibcs: \ 263 263 %{!static: \ 264 264 %{rdynamic:-export-dynamic} \ 265 %{!dynamic-linker:-dynamic-linker /lib 64/ld-linux.so.2}} \265 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \ 266 266 %{static:-static}}} \ 267 267 %{mlittle-endian:-EL} \ 268 268 %{!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 1 1 MULTILIB_OPTIONS = m64/m32 2 2 MULTILIB_DIRNAMES = 64 32 3 MULTILIB_OSDIRNAMES = ../lib 64 ../lib3 MULTILIB_OSDIRNAMES = ../lib ../lib32 4 4 5 5 LIBGCC = stmp-multilib 6 6 INSTALL_LIBGCC = install-multilib … … 16 16 17 17 CRTSTUFF_T_CFLAGS = `if test x$$($(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) \ 18 18 -print-multi-os-directory) \ 19 = x../lib 64; then echo -mcmodel=medany; fi`19 = x../lib; then echo -mcmodel=medany; fi`
Note:
See TracBrowser
for help on using the repository browser.