source:
patches/gcc-4.1.2-pure64_specs-1.patch@
686949f
Last change on this file since 686949f was 4ff86b52, checked in by , 18 years ago | |
---|---|
|
|
File size: 14.3 KB |
-
gcc/config/alpha/linux-elf.h
Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes) Date: 2007-02-14 Initial Package Version: 4.1.2 Upstream Status: Not Sent - LFS Specfic 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. Rediffed against gcc 4.0.0 by Robert Connolly. Rediffed against gcc 4.1.0 by Chris Staub Rediffed against gcc 4.1.2 by Jim Gifford 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.2.orig/gcc/config/alpha/linux-elf.h gcc-4.1.2/gcc/config/alpha/linux-elf.h
old new 27 27 #define SUBTARGET_EXTRA_SPECS \ 28 28 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER }, 29 29 30 #define ELF_DYNAMIC_LINKER "/ lib/ld-linux.so.2"30 #define ELF_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2" 31 31 32 32 #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \ 33 33 %{O*:-O3} %{!O*:-O1} \ -
gcc/config/arm/linux-elf.h
diff -Naur gcc-4.1.2.orig/gcc/config/arm/linux-elf.h gcc-4.1.2/gcc/config/arm/linux-elf.h
old new 51 51 52 52 #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc" 53 53 54 #define LINUX_TARGET_INTERPRETER "/ lib/ld-linux.so.2"54 #define LINUX_TARGET_INTERPRETER "/tools/lib/ld-linux.so.2" 55 55 56 56 #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \ 57 57 %{b} \ -
gcc/config/frv/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/frv/linux.h gcc-4.1.2/gcc/config/frv/linux.h
old new 41 41 %{mfdpic: -m elf32frvfd -z text} %{shared} %{pie} \ 42 42 %{!shared: %{!static: \ 43 43 %{rdynamic:-export-dynamic} \ 44 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}} \44 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \ 45 45 %{static}}" 46 46 47 47 /* Support for compile-time default CPU. */ -
gcc/config/i386/gnu.h
diff -Naur gcc-4.1.2.orig/gcc/config/i386/gnu.h gcc-4.1.2/gcc/config/i386/gnu.h
old new 27 27 %{!shared: \ 28 28 %{!static: \ 29 29 %{rdynamic:-export-dynamic} \ 30 %{!dynamic-linker:-dynamic-linker / lib/ld.so}} \30 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so}} \ 31 31 %{static:-static}}" 32 32 33 33 #undef STARTFILE_SPEC -
gcc/config/i386/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/i386/linux.h gcc-4.1.2/gcc/config/i386/linux.h
old new 105 105 /* If ELF is the default format, we should not use /lib/elf. */ 106 106 107 107 #define LINK_EMULATION "elf_i386" 108 #define DYNAMIC_LINKER "/ lib/ld-linux.so.2"108 #define DYNAMIC_LINKER "/tools/lib/ld-linux.so.2" 109 109 110 110 #undef SUBTARGET_EXTRA_SPECS 111 111 #define SUBTARGET_EXTRA_SPECS \ -
gcc/config/i386/linux64.h
diff -Naur gcc-4.1.2.orig/gcc/config/i386/linux64.h gcc-4.1.2/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 / lib64/ld-linux-x86-64.so.2}}} \63 %{m32:%{!dynamic-linker:-dynamic-linker /tools/lib32/ld-linux.so.2}} \ 64 %{!m32:%{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux-x86-64.so.2}}} \ 65 65 %{static:-static}}" 66 66 67 67 /* Similar to standard Linux, but adding -ffast-math support. */ -
gcc/config/ia64/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/ia64/linux.h gcc-4.1.2/gcc/config/ia64/linux.h
old new 43 43 %{!shared: \ 44 44 %{!static: \ 45 45 %{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}} \ 47 47 %{static:-static}}" 48 48 49 49 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" -
gcc/config/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/linux.h gcc-4.1.2/gcc/config/linux.h
old new 104 104 #define TARGET_C99_FUNCTIONS 1 105 105 106 106 #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.2.orig/gcc/config/m32r/linux.h gcc-4.1.2/gcc/config/m32r/linux.h
old new 66 66 %{!ibcs: \ 67 67 %{!static: \ 68 68 %{rdynamic:-export-dynamic} \ 69 %{!dynamic-linker:-dynamic-linker / lib/ld-linux.so.2}} \69 %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \ 70 70 %{static:-static}}}" 71 71 #else 72 72 #define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \ … … 74 74 %{!ibcs: \ 75 75 %{!static: \ 76 76 %{rdynamic:-export-dynamic} \ 77 %{!dynamic-linker:-dynamic-linker / lib/ld-linux.so.2}} \77 %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \ 78 78 %{static:-static}}}" 79 79 #endif 80 80 -
gcc/config/m68k/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/m68k/linux.h gcc-4.1.2/gcc/config/m68k/linux.h
old new 128 128 %{!shared: \ 129 129 %{!static: \ 130 130 %{rdynamic:-export-dynamic} \ 131 %{!dynamic-linker*:-dynamic-linker / lib/ld.so.1}} \131 %{!dynamic-linker*:-dynamic-linker /tools/lib/ld.so.1}} \ 132 132 %{static}}" 133 133 134 134 /* For compatibility with linux/a.out */ -
gcc/config/mips/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/mips/linux.h gcc-4.1.2/gcc/config/mips/linux.h
old new 112 112 %{!ibcs: \ 113 113 %{!static: \ 114 114 %{rdynamic:-export-dynamic} \ 115 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}} \115 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \ 116 116 %{static:-static}}}" 117 117 118 118 #undef SUBTARGET_ASM_SPEC -
gcc/config/mips/linux64.h
diff -Naur gcc-4.1.2.orig/gcc/config/mips/linux64.h gcc-4.1.2/gcc/config/mips/linux64.h
old new 47 47 %{!static: \ 48 48 %{rdynamic:-export-dynamic} \ 49 49 %{!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/lib64/ld.so.1} \ 51 %{mabi=64: -dynamic-linker /tools/lib/ld.so.1} \ 52 %{mabi=32: -dynamic-linker /tools/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/mn10300/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/mn10300/linux.h gcc-4.1.2/gcc/config/mn10300/linux.h
old new 37 37 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \ 38 38 %{!static: \ 39 39 %{rdynamic:-export-dynamic} \ 40 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}} \40 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \ 41 41 %{static:-static}" 42 42 43 43 #undef PROCESSOR_DEFAULT -
gcc/config/pa/pa-linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/pa/pa-linux.h gcc-4.1.2/gcc/config/pa/pa-linux.h
old new 55 55 %{!shared: \ 56 56 %{!static: \ 57 57 %{rdynamic:-export-dynamic} \ 58 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}} \58 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \ 59 59 %{static:-static}}" 60 60 61 61 /* glibc's profiling functions don't need gcc to allocate counters. */ -
gcc/config/rs6000/linux64.h
diff -Naur gcc-4.1.2.orig/gcc/config/rs6000/linux64.h gcc-4.1.2/gcc/config/rs6000/linux64.h
old new 339 339 340 340 #define LINK_OS_LINUX_SPEC32 "-m elf32ppclinux %{!shared: %{!static: \ 341 341 %{rdynamic:-export-dynamic} \ 342 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}}}"342 %{!dynamic-linker:-dynamic-linker /tools/lib32/ld.so.1}}}" 343 343 344 344 #define LINK_OS_LINUX_SPEC64 "-m elf64ppc %{!shared: %{!static: \ 345 345 %{rdynamic:-export-dynamic} \ 346 %{!dynamic-linker:-dynamic-linker / lib64/ld64.so.1}}}"346 %{!dynamic-linker:-dynamic-linker /tools/lib/ld64.so.1}}}" 347 347 348 348 #undef TOC_SECTION_ASM_OP 349 349 #define TOC_SECTION_ASM_OP \ -
gcc/config/rs6000/sysv4.h
diff -Naur gcc-4.1.2.orig/gcc/config/rs6000/sysv4.h gcc-4.1.2/gcc/config/rs6000/sysv4.h
old new 1041 1041 1042 1042 #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \ 1043 1043 %{rdynamic:-export-dynamic} \ 1044 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}}}"1044 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}" 1045 1045 1046 1046 #if defined(HAVE_LD_EH_FRAME_HDR) 1047 1047 # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " … … 1072 1072 1073 1073 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \ 1074 1074 %{rdynamic:-export-dynamic} \ 1075 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}}}"1075 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}" 1076 1076 1077 1077 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__ \ 1078 1078 %{!undef: \ -
gcc/config/s390/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/s390/linux.h gcc-4.1.2/gcc/config/s390/linux.h
old new 86 86 %{!static: \ 87 87 %{rdynamic:-export-dynamic} \ 88 88 %{!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}}}}" 91 91 92 92 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" 93 93 -
gcc/config/sh/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/sh/linux.h gcc-4.1.2/gcc/config/sh/linux.h
old new 60 60 "%{shared:-shared} \ 61 61 %{!static: \ 62 62 %{rdynamic:-export-dynamic} \ 63 %{!dynamic-linker:-dynamic-linker / lib/ld-linux.so.2}} \63 %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \ 64 64 %{static:-static}" 65 65 66 66 /* Output assembler code to STREAM to call the profiler. */ -
gcc/config/sparc/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/sparc/linux.h gcc-4.1.2/gcc/config/sparc/linux.h
old new 126 126 /* If ELF is the default format, we should not use /lib/elf. */ 127 127 128 128 #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} \ 130 130 %{!mno-relax:%{!r:-relax}} \ 131 131 %{!shared: \ 132 132 %{!ibcs: \ 133 133 %{!static: \ 134 134 %{rdynamic:-export-dynamic} \ 135 %{!dynamic-linker:-dynamic-linker / lib/ld-linux.so.2}} \135 %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \ 136 136 %{static:-static}}}" 137 137 138 138 /* The sun bundled assembler doesn't accept -Yd, (and neither does gas). -
gcc/config/sparc/linux64.h
diff -Naur gcc-4.1.2.orig/gcc/config/sparc/linux64.h gcc-4.1.2/gcc/config/sparc/linux64.h
old new 162 162 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \ 163 163 { "link_arch", LINK_ARCH_SPEC }, 164 164 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/lib32 %{shared:-shared} \ 166 166 %{!shared: \ 167 167 %{!ibcs: \ 168 168 %{!static: \ 169 169 %{rdynamic:-export-dynamic} \ 170 %{!dynamic-linker:-dynamic-linker / lib/ld-linux.so.2}} \170 %{!dynamic-linker:-dynamic-linker /tools/lib32/ld-linux.so.2}} \ 171 171 %{static:-static}}} \ 172 172 " 173 173 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/lib %{shared:-shared} \ 175 175 %{!shared: \ 176 176 %{!ibcs: \ 177 177 %{!static: \ 178 178 %{rdynamic:-export-dynamic} \ 179 %{!dynamic-linker:-dynamic-linker / lib64/ld-linux.so.2}} \179 %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \ 180 180 %{static:-static}}} \ 181 181 " 182 182 … … 252 252 #else /* !SPARC_BI_ARCH */ 253 253 254 254 #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/lib %{shared:-shared} \ 256 256 %{!shared: \ 257 257 %{!ibcs: \ 258 258 %{!static: \ 259 259 %{rdynamic:-export-dynamic} \ 260 %{!dynamic-linker:-dynamic-linker / lib64/ld-linux.so.2}} \260 %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \ 261 261 %{static:-static}}} \ 262 262 %{mlittle-endian:-EL} \ 263 263 %{!mno-relax:%{!r:-relax}} \ -
gcc/config/xtensa/linux.h
diff -Naur gcc-4.1.2.orig/gcc/config/xtensa/linux.h gcc-4.1.2/gcc/config/xtensa/linux.h
old new 50 50 %{!ibcs: \ 51 51 %{!static: \ 52 52 %{rdynamic:-export-dynamic} \ 53 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}} \53 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \ 54 54 %{static:-static}}}" 55 55 56 56 #undef LOCAL_LABEL_PREFIX
Note:
See TracBrowser
for help on using the repository browser.