source:
patches/gcc-4.0.3-specs-1.patch@
5bb6985
Last change on this file since 5bb6985 was 69cde8d, checked in by , 19 years ago | |
---|---|
|
|
File size: 14.5 KB |
-
gcc/config/alpha/linux-elf.h
Submitted By: Robert Connolly <robert at linuxfromscratch dot org> (ashes) Date: 2006-01-16 Initial Package Version: 4.0.0 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. Modified for gcc 3.3.2 by Oliver Brakmann. Rediffed against gcc 3.4.0 by Zack Winkles. Rediffed against gcc 3.4.3 by Jim Gifford. Rediffed against gcc 4.0.0 by Robert Connolly. Description: This patch modifies the location of the dynamic linker for the GCC Pass 2 build in LFS Chapter 5. diff -Naur gcc-20050116.orig/gcc/config/alpha/linux-elf.h gcc-20050116/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-20050116.orig/gcc/config/arm/linux-elf.h gcc-20050116/gcc/config/arm/linux-elf.h
old new 87 87 %{shared:-shared} \ 88 88 %{symbolic:-Bsymbolic} \ 89 89 %{rdynamic:-export-dynamic} \ 90 %{!dynamic-linker:-dynamic-linker / lib/ld-linux.so.2} \90 %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2} \ 91 91 -X \ 92 92 %{mbig-endian:-EB}" \ 93 93 SUBTARGET_EXTRA_LINK_SPEC -
gcc/config/frv/linux.h
diff -Naur gcc-20050116.orig/gcc/config/frv/linux.h gcc-20050116/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-20050116.orig/gcc/config/i386/gnu.h gcc-20050116/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-20050116.orig/gcc/config/i386/linux.h gcc-20050116/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-20050116.orig/gcc/config/i386/linux64.h gcc-20050116/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/lib/ld-linux.so.2}} \ 64 %{!m32:%{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux-x86-64.so.2}}} \ 65 65 %{static:-static}}" 66 66 67 67 #define MULTILIB_DEFAULTS { "m64" } -
gcc/config/ia64/linux.h
diff -Naur gcc-20050116.orig/gcc/config/ia64/linux.h gcc-20050116/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 -
gcc/config/linux.h
diff -Naur gcc-20050116.orig/gcc/config/linux.h gcc-20050116/gcc/config/linux.h
old new 104 104 #define TARGET_C99_FUNCTIONS 1 105 105 106 106 #define TARGET_HAS_F_SETLKW 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-20050116.orig/gcc/config/m32r/linux.h gcc-20050116/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-20050116.orig/gcc/config/m68k/linux.h gcc-20050116/gcc/config/m68k/linux.h
old new 132 132 %{!shared: \ 133 133 %{!static: \ 134 134 %{rdynamic:-export-dynamic} \ 135 %{!dynamic-linker*:-dynamic-linker / lib/ld.so.1}} \135 %{!dynamic-linker*:-dynamic-linker /tools/lib/ld.so.1}} \ 136 136 %{static}}" 137 137 138 138 /* For compatibility with linux/a.out */ -
gcc/config/mips/linux.h
diff -Naur gcc-20050116.orig/gcc/config/mips/linux.h gcc-20050116/gcc/config/mips/linux.h
old new 115 115 %{!ibcs: \ 116 116 %{!static: \ 117 117 %{rdynamic:-export-dynamic} \ 118 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}} \118 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \ 119 119 %{static:-static}}}" 120 120 121 121 #undef SUBTARGET_ASM_SPEC -
gcc/config/mips/linux64.h
diff -Naur gcc-20050116.orig/gcc/config/mips/linux64.h gcc-20050116/gcc/config/mips/linux64.h
old new 60 60 %{!static: \ 61 61 %{rdynamic:-export-dynamic} \ 62 62 %{!dynamic-linker: \ 63 %{mabi=n32: -dynamic-linker / lib32/ld.so.1} \64 %{mabi=64: -dynamic-linker / lib64/ld.so.1} \65 %{mabi=32: -dynamic-linker / lib/ld.so.1}}} \63 %{mabi=n32: -dynamic-linker /tools/lib32/ld.so.1} \ 64 %{mabi=64: -dynamic-linker /tools/lib64/ld.so.1} \ 65 %{mabi=32: -dynamic-linker /tools/lib/ld.so.1}}} \ 66 66 %{static:-static}}} \ 67 67 %{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \ 68 68 %{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \ -
gcc/config/mn10300/linux.h
diff -Naur gcc-20050116.orig/gcc/config/mn10300/linux.h gcc-20050116/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 LIB_SPEC -
gcc/config/pa/pa-linux.h
diff -Naur gcc-20050116.orig/gcc/config/pa/pa-linux.h gcc-20050116/gcc/config/pa/pa-linux.h
old new 88 88 %{!shared: \ 89 89 %{!static: \ 90 90 %{rdynamic:-export-dynamic} \ 91 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}} \91 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}} \ 92 92 %{static:-static}}" 93 93 94 94 /* glibc's profiling functions don't need gcc to allocate counters. */ -
gcc/config/rs6000/linux64.h
diff -Naur gcc-20050116.orig/gcc/config/rs6000/linux64.h gcc-20050116/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 /tools/lib/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 / lib64/ld64.so.1}}}"358 %{!dynamic-linker:-dynamic-linker /tools/lib64/ld64.so.1}}}" 359 359 360 360 #undef TOC_SECTION_ASM_OP 361 361 #define TOC_SECTION_ASM_OP \ -
gcc/config/rs6000/sysv4.h
diff -Naur gcc-20050116.orig/gcc/config/rs6000/sysv4.h gcc-20050116/gcc/config/rs6000/sysv4.h
old new 1131 1131 1132 1132 #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \ 1133 1133 %{rdynamic:-export-dynamic} \ 1134 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}}}"1134 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}" 1135 1135 1136 1136 #if defined(HAVE_LD_EH_FRAME_HDR) 1137 1137 # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " … … 1162 1162 1163 1163 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \ 1164 1164 %{rdynamic:-export-dynamic} \ 1165 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}}}"1165 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}" 1166 1166 1167 1167 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__ \ 1168 1168 %{!undef: \ -
gcc/config/s390/linux.h
diff -Naur gcc-20050116.orig/gcc/config/s390/linux.h gcc-20050116/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 93 93 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack -
gcc/config/sh/linux.h
diff -Naur gcc-20050116.orig/gcc/config/sh/linux.h gcc-20050116/gcc/config/sh/linux.h
old new 70 70 "%{shared:-shared} \ 71 71 %{!static: \ 72 72 %{rdynamic:-export-dynamic} \ 73 %{!dynamic-linker:-dynamic-linker / lib/ld-linux.so.2}} \73 %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \ 74 74 %{static:-static}" 75 75 76 76 #undef LIB_SPEC -
gcc/config/sparc/linux.h
diff -Naur gcc-20050116.orig/gcc/config/sparc/linux.h gcc-20050116/gcc/config/sparc/linux.h
old new 131 131 /* If ELF is the default format, we should not use /lib/elf. */ 132 132 133 133 #undef LINK_SPEC 134 #define LINK_SPEC "-m elf32_sparc -Y P,/ usr/lib %{shared:-shared} \134 #define LINK_SPEC "-m elf32_sparc -Y P,/tools/lib %{shared:-shared} \ 135 135 %{!mno-relax:%{!r:-relax}} \ 136 136 %{!shared: \ 137 137 %{!ibcs: \ 138 138 %{!static: \ 139 139 %{rdynamic:-export-dynamic} \ 140 %{!dynamic-linker:-dynamic-linker / lib/ld-linux.so.2}} \140 %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} \ 141 141 %{static:-static}}}" 142 142 143 143 /* The sun bundled assembler doesn't accept -Yd, (and neither does gas). -
gcc/config/sparc/linux64.h
diff -Naur gcc-20050116.orig/gcc/config/sparc/linux64.h gcc-20050116/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,/tools/lib %{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 /tools/lib/ld-linux.so.2}} \ 176 176 %{static:-static}}} \ 177 177 " 178 178 179 #define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/ usr/lib64 %{shared:-shared} \179 #define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \ 180 180 %{!shared: \ 181 181 %{!ibcs: \ 182 182 %{!static: \ 183 183 %{rdynamic:-export-dynamic} \ 184 %{!dynamic-linker:-dynamic-linker / lib64/ld-linux.so.2}} \184 %{!dynamic-linker:-dynamic-linker /tools/lib64/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/lib64 %{shared:-shared} \260 #define LINK_SPEC "-m elf64_sparc -Y P,/tools/lib64 %{shared:-shared} \ 261 261 %{!shared: \ 262 262 %{!ibcs: \ 263 263 %{!static: \ 264 264 %{rdynamic:-export-dynamic} \ 265 %{!dynamic-linker:-dynamic-linker / lib64/ld-linux.so.2}} \265 %{!dynamic-linker:-dynamic-linker /tools/lib64/ld-linux.so.2}} \ 266 266 %{static:-static}}} \ 267 267 %{mlittle-endian:-EL} \ 268 268 %{!mno-relax:%{!r:-relax}} \ -
gcc/config/xtensa/linux.h
diff -Naur gcc-20050116.orig/gcc/config/xtensa/linux.h gcc-20050116/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.