source:
patches/gcc-4.2.4-specs-1.patch@
124823a
Last change on this file since 124823a was 67300de, checked in by , 16 years ago | |
---|---|
|
|
File size: 16.5 KB |
-
gcc/config/alpha/gnu.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 Specific 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 Rediffed against gcc 4.2.0 by Joe Ciccone Description: This patch modifies the location of the dynamic linker for the GCC Pass 2 build in LFS Chapter 5. diff -Naur gcc-4.2.0.orig/gcc/config/alpha/gnu.h gcc-4.2.0/gcc/config/alpha/gnu.h
old new 11 11 } while (0) 12 12 13 13 #undef ELF_DYNAMIC_LINKER 14 #define ELF_DYNAMIC_LINKER "/ lib/ld.so"14 #define ELF_DYNAMIC_LINKER "/tools/lib/ld.so" 15 15 16 16 #undef STARTFILE_SPEC 17 17 #define STARTFILE_SPEC \ -
gcc/config/alpha/linux-elf.h
diff -Naur gcc-4.2.0.orig/gcc/config/alpha/linux-elf.h gcc-4.2.0/gcc/config/alpha/linux-elf.h
old new 28 28 #define SUBTARGET_EXTRA_SPECS \ 29 29 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER }, 30 30 31 #define GLIBC_DYNAMIC_LINKER "/ lib/ld-linux.so.2"32 #define UCLIBC_DYNAMIC_LINKER "/ lib/ld-uClibc.so.0"31 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2" 32 #define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0" 33 33 #if UCLIBC_DEFAULT 34 34 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}" 35 35 #else -
gcc/config/arm/linux-eabi.h
diff -Naur gcc-4.2.0.orig/gcc/config/arm/linux-eabi.h gcc-4.2.0/gcc/config/arm/linux-eabi.h
old new 53 53 /* Use ld-linux.so.3 so that it will be possible to run "classic" 54 54 GNU/Linux binaries on an EABI system. */ 55 55 #undef GLIBC_DYNAMIC_LINKER 56 #define GLIBC_DYNAMIC_LINKER "/ lib/ld-linux.so.3"56 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.3" 57 57 58 58 /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to 59 59 use the GNU/Linux version, not the generic BPABI version. */ -
gcc/config/arm/linux-elf.h
diff -Naur gcc-4.2.0.orig/gcc/config/arm/linux-elf.h gcc-4.2.0/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 GLIBC_DYNAMIC_LINKER "/ lib/ld-linux.so.2"54 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2" 55 55 56 56 #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \ 57 57 %{b} \ -
gcc/config/cris/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/cris/linux.h gcc-4.2.0/gcc/config/cris/linux.h
old new 76 76 #undef CRIS_SUBTARGET_VERSION 77 77 #define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu" 78 78 79 #define GLIBC_DYNAMIC_LINKER "/ lib/ld.so.1"79 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1" 80 80 81 81 /* We need an -rpath-link to ld.so.1, and presumably to each directory 82 82 specified with -B. */ -
gcc/config/frv/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/frv/linux.h gcc-4.2.0/gcc/config/frv/linux.h
old new 36 36 #define ENDFILE_SPEC \ 37 37 "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" 38 38 39 #define GLIBC_DYNAMIC_LINKER "/ lib/ld.so.1"39 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1" 40 40 41 41 #undef LINK_SPEC 42 42 #define LINK_SPEC "\ -
gcc/config/i386/gnu.h
diff -Naur gcc-4.2.0.orig/gcc/config/i386/gnu.h gcc-4.2.0/gcc/config/i386/gnu.h
old new 22 22 %{!shared: \ 23 23 %{!static: \ 24 24 %{rdynamic:-export-dynamic} \ 25 %{!dynamic-linker:-dynamic-linker / lib/ld.so}} \25 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so}} \ 26 26 %{static:-static}}" 27 27 28 28 #undef STARTFILE_SPEC -
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 49 49 When the -shared link option is used a final link is not being 50 50 done. */ 51 51 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 "/tools/lib/ld-linux.so.2" 53 #define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux-x86-64.so.2" 54 54 55 55 #undef LINK_SPEC 56 56 #define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \ -
gcc/config/i386/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/i386/linux.h gcc-4.2.0/gcc/config/i386/linux.h
old new 101 101 102 102 /* These macros may be overridden in k*bsd-gnu.h and i386/k*bsd-gnu.h. */ 103 103 #define LINK_EMULATION "elf_i386" 104 #define GLIBC_DYNAMIC_LINKER "/ lib/ld-linux.so.2"104 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2" 105 105 106 106 #undef SUBTARGET_EXTRA_SPECS 107 107 #define SUBTARGET_EXTRA_SPECS \ -
gcc/config/ia64/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/ia64/linux.h gcc-4.2.0/gcc/config/ia64/linux.h
old new 37 37 /* Define this for shared library support because it isn't in the main 38 38 linux.h file. */ 39 39 40 #define GLIBC_DYNAMIC_LINKER "/ lib/ld-linux-ia64.so.2"40 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2" 41 41 42 42 #undef LINK_SPEC 43 43 #define LINK_SPEC "\ -
gcc/config/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/linux.h gcc-4.2.0/gcc/config/linux.h
old new 112 112 GLIBC_DYNAMIC_LINKER must be defined for each target using them, or 113 113 GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets 114 114 supporting both 32-bit and 64-bit compilation. */ 115 #define UCLIBC_DYNAMIC_LINKER "/ lib/ld-uClibc.so.0"116 #define UCLIBC_DYNAMIC_LINKER32 "/ lib/ld-uClibc.so.0"117 #define UCLIBC_DYNAMIC_LINKER64 "/ lib/ld64-uClibc.so.0"115 #define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0" 116 #define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0" 117 #define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0" 118 118 #define LINUX_DYNAMIC_LINKER \ 119 119 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER) 120 120 #define LINUX_DYNAMIC_LINKER32 \ … … 127 127 #define TARGET_C99_FUNCTIONS (OPTION_GLIBC) 128 128 129 129 #define TARGET_POSIX_IO 130 131 /* Remove /usr/include from the end of the include search path. */ 132 #undef STANDARD_INCLUDE_DIR 133 #define STANDARD_INCLUDE_DIR 0 -
gcc/config/m32r/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/m32r/linux.h gcc-4.2.0/gcc/config/m32r/linux.h
old new 59 59 60 60 /* If ELF is the default format, we should not use /lib/elf. */ 61 61 62 #define GLIBC_DYNAMIC_LINKER "/ lib/ld-linux.so.2"62 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2" 63 63 64 64 #undef LINK_SPEC 65 65 #if TARGET_LITTLE_ENDIAN -
gcc/config/m68k/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/m68k/linux.h gcc-4.2.0/gcc/config/m68k/linux.h
old new 123 123 124 124 /* If ELF is the default format, we should not use /lib/elf. */ 125 125 126 #define GLIBC_DYNAMIC_LINKER "/ lib/ld.so.1"126 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1" 127 127 128 128 #undef LINK_SPEC 129 129 #define LINK_SPEC "-m m68kelf %{shared} \ -
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 36 36 %{!shared: %{pthread:-lpthread} \ 37 37 %{profile:-lc_p} %{!profile: -lc}}" 38 38 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 "/tools/lib/ld.so.1" 40 #define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld.so.1" 41 #define GLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld.so.1" 42 #define UCLIBC_DYNAMIC_LINKERN32 "/tools/lib32/ld-uClibc.so.0" 43 43 #define LINUX_DYNAMIC_LINKERN32 \ 44 44 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32) 45 45 -
gcc/config/mips/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/mips/linux.h gcc-4.2.0/gcc/config/mips/linux.h
old new 104 104 #undef MIPS_DEFAULT_GVALUE 105 105 #define MIPS_DEFAULT_GVALUE 0 106 106 107 #define GLIBC_DYNAMIC_LINKER "/ lib/ld.so.1"107 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1" 108 108 109 109 /* Borrowed from sparc/linux.h */ 110 110 #undef LINK_SPEC -
gcc/config/mn10300/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/mn10300/linux.h gcc-4.2.0/gcc/config/mn10300/linux.h
old new 33 33 #undef ASM_SPEC 34 34 #define ASM_SPEC "%{Wa,*:%*}" 35 35 36 #define GLIBC_DYNAMIC_LINKER "/ lib/ld.so.1"36 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1" 37 37 38 38 #undef LINK_SPEC 39 39 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \ -
gcc/config/pa/pa-linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/pa/pa-linux.h gcc-4.2.0/gcc/config/pa/pa-linux.h
old new 45 45 /* Define this for shared library support because it isn't in the main 46 46 linux.h file. */ 47 47 48 #define GLIBC_DYNAMIC_LINKER "/ lib/ld.so.1"48 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1" 49 49 50 50 #undef LINK_SPEC 51 51 #define LINK_SPEC "\ -
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 336 336 #undef LINK_OS_DEFAULT_SPEC 337 337 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)" 338 338 339 #define GLIBC_DYNAMIC_LINKER32 "/ lib/ld.so.1"340 #define GLIBC_DYNAMIC_LINKER64 "/ lib64/ld64.so.1"341 #define UCLIBC_DYNAMIC_LINKER32 "/ lib/ld-uClibc.so.0"342 #define UCLIBC_DYNAMIC_LINKER64 "/ lib/ld64-uClibc.so.0"339 #define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1" 340 #define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld64.so.1" 341 #define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0" 342 #define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0" 343 343 #if UCLIBC_DEFAULT 344 344 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}" 345 345 #else -
gcc/config/rs6000/sysv4.h
diff -Naur gcc-4.2.0.orig/gcc/config/rs6000/sysv4.h gcc-4.2.0/gcc/config/rs6000/sysv4.h
old new 892 892 893 893 #define LINK_START_LINUX_SPEC "" 894 894 895 #define GLIBC_DYNAMIC_LINKER "/ lib/ld.so.1"896 #define UCLIBC_DYNAMIC_LINKER "/ lib/ld-uClibc.so.0"895 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1" 896 #define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0" 897 897 #if UCLIBC_DEFAULT 898 898 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}" 899 899 #else … … 935 935 936 936 #define LINK_OS_GNU_SPEC "-m elf32ppclinux %{!shared: %{!static: \ 937 937 %{rdynamic:-export-dynamic} \ 938 %{!dynamic-linker:-dynamic-linker / lib/ld.so.1}}}"938 %{!dynamic-linker:-dynamic-linker /tools/lib/ld.so.1}}}" 939 939 940 940 #define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__ \ 941 941 %{!undef: \ -
gcc/config/s390/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/s390/linux.h gcc-4.2.0/gcc/config/s390/linux.h
old new 73 73 #define MULTILIB_DEFAULTS { "m31" } 74 74 #endif 75 75 76 #define GLIBC_DYNAMIC_LINKER32 "/ lib/ld.so.1"77 #define GLIBC_DYNAMIC_LINKER64 "/ lib/ld64.so.1"76 #define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1" 77 #define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1" 78 78 79 79 #undef LINK_SPEC 80 80 #define LINK_SPEC \ -
gcc/config/sh/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/sh/linux.h gcc-4.2.0/gcc/config/sh/linux.h
old new 48 48 49 49 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack 50 50 51 #define GLIBC_DYNAMIC_LINKER "/ lib/ld-linux.so.2"51 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2" 52 52 53 53 #undef SUBTARGET_LINK_EMUL_SUFFIX 54 54 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux" -
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 144 144 145 145 /* If ELF is the default format, we should not use /lib/elf. */ 146 146 147 #define GLIBC_DYNAMIC_LINKER32 "/ lib/ld-linux.so.2"148 #define GLIBC_DYNAMIC_LINKER64 "/ lib64/ld-linux.so.2"149 #define UCLIBC_DYNAMIC_LINKER32 "/ lib/ld-uClibc.so.0"150 #define UCLIBC_DYNAMIC_LINKER64 "/ lib/ld64-uClibc.so.0"147 #define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2" 148 #define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2" 149 #define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0" 150 #define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0" 151 151 #if UCLIBC_DEFAULT 152 152 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}" 153 153 #else … … 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: \ … … 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: \ … … 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: \ -
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 121 121 122 122 /* If ELF is the default format, we should not use /lib/elf. */ 123 123 124 #define GLIBC_DYNAMIC_LINKER "/ lib/ld-linux.so.2"125 #define UCLIBC_DYNAMIC_LINKER "/ lib/ld-uClibc.so.0"124 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2" 125 #define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0" 126 126 #if UCLIBC_DEFAULT 127 127 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}" 128 128 #else … … 133 133 134 134 135 135 #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,/tools/lib %{shared:-shared} \ 137 137 %{!mno-relax:%{!r:-relax}} \ 138 138 %{!shared: \ 139 139 %{!ibcs: \ -
gcc/config/xtensa/linux.h
diff -Naur gcc-4.2.0.orig/gcc/config/xtensa/linux.h gcc-4.2.0/gcc/config/xtensa/linux.h
old new 43 43 %{mlongcalls:--longcalls} \ 44 44 %{mno-longcalls:--no-longcalls}" 45 45 46 #define GLIBC_DYNAMIC_LINKER "/ lib/ld.so.1"46 #define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1" 47 47 48 48 #undef LINK_SPEC 49 49 #define LINK_SPEC \
Note:
See TracBrowser
for help on using the repository browser.