Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 1 | From 84dd8ea4c982fc2c82af642293d29e9c1880de5b Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 29 Mar 2013 09:24:50 +0400 |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 4 | Subject: [PATCH] Define GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 5 | relative to SYSTEMLIBS_DIR |
| 6 | |
| 7 | This patch defines GLIBC_DYNAMIC_LINKER and UCLIBC_DYNAMIC_LINKER |
| 8 | relative to SYSTEMLIBS_DIR which can be set in generated headers |
| 9 | This breaks the assumption of hardcoded multilib in gcc |
| 10 | Change is only for the supported architectures in OE including |
| 11 | SH, sparc, alpha for possible future support (if any) |
| 12 | |
| 13 | Removes the do_headerfix task in metadata |
| 14 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | Upstream-Status: Inappropriate [OE configuration] |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 | --- |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 18 | gcc/config/aarch64/aarch64-linux.h | 4 ++-- |
| 19 | gcc/config/alpha/linux-elf.h | 4 ++-- |
| 20 | gcc/config/arm/linux-eabi.h | 4 ++-- |
| 21 | gcc/config/arm/linux-elf.h | 2 +- |
| 22 | gcc/config/i386/linux.h | 2 +- |
| 23 | gcc/config/i386/linux64.h | 6 +++--- |
| 24 | gcc/config/linux.h | 8 ++++---- |
| 25 | gcc/config/mips/linux.h | 12 ++++++------ |
| 26 | gcc/config/riscv/linux.h | 2 +- |
| 27 | gcc/config/rs6000/linux64.h | 15 +++++---------- |
| 28 | gcc/config/sh/linux.h | 2 +- |
| 29 | gcc/config/sparc/linux.h | 2 +- |
| 30 | gcc/config/sparc/linux64.h | 4 ++-- |
| 31 | 13 files changed, 31 insertions(+), 36 deletions(-) |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 32 | |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 33 | diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h |
| 34 | index 7f2529a2a1d..4bcae7f3110 100644 |
| 35 | --- a/gcc/config/aarch64/aarch64-linux.h |
| 36 | +++ b/gcc/config/aarch64/aarch64-linux.h |
| 37 | @@ -21,10 +21,10 @@ |
| 38 | #ifndef GCC_AARCH64_LINUX_H |
| 39 | #define GCC_AARCH64_LINUX_H |
| 40 | |
| 41 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" |
| 42 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" |
| 43 | |
| 44 | #undef MUSL_DYNAMIC_LINKER |
| 45 | -#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" |
| 46 | +#define MUSL_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" |
| 47 | |
| 48 | #undef ASAN_CC1_SPEC |
| 49 | #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" |
| 50 | diff --git a/gcc/config/alpha/linux-elf.h b/gcc/config/alpha/linux-elf.h |
| 51 | index c1dae8ca2cf..3ce2b76c1a4 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 52 | --- a/gcc/config/alpha/linux-elf.h |
| 53 | +++ b/gcc/config/alpha/linux-elf.h |
| 54 | @@ -23,8 +23,8 @@ along with GCC; see the file COPYING3. If not see |
| 55 | #define EXTRA_SPECS \ |
| 56 | { "elf_dynamic_linker", ELF_DYNAMIC_LINKER }, |
| 57 | |
| 58 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| 59 | -#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| 60 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" |
| 61 | +#define UCLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-uClibc.so.0" |
| 62 | #if DEFAULT_LIBC == LIBC_UCLIBC |
| 63 | #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}" |
| 64 | #elif DEFAULT_LIBC == LIBC_GLIBC |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 65 | diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h |
| 66 | index 85d0136e76e..6bd95855827 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 67 | --- a/gcc/config/arm/linux-eabi.h |
| 68 | +++ b/gcc/config/arm/linux-eabi.h |
| 69 | @@ -65,8 +65,8 @@ |
| 70 | GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI. */ |
| 71 | |
| 72 | #undef GLIBC_DYNAMIC_LINKER |
| 73 | -#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3" |
| 74 | -#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3" |
| 75 | +#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT SYSTEMLIBS_DIR "ld-linux.so.3" |
| 76 | +#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT SYSTEMLIBS_DIR "ld-linux-armhf.so.3" |
| 77 | #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT |
| 78 | |
| 79 | #define GLIBC_DYNAMIC_LINKER \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 80 | diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h |
| 81 | index 0c1c4e70b6b..6bd643ade11 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 82 | --- a/gcc/config/arm/linux-elf.h |
| 83 | +++ b/gcc/config/arm/linux-elf.h |
| 84 | @@ -60,7 +60,7 @@ |
| 85 | |
| 86 | #define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc" |
| 87 | |
| 88 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| 89 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" |
| 90 | |
| 91 | #define LINUX_TARGET_LINK_SPEC "%{h*} \ |
| 92 | %{static:-Bstatic} \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 93 | diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h |
| 94 | index 04b274f1654..7aafcf3ac2d 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 95 | --- a/gcc/config/i386/linux.h |
| 96 | +++ b/gcc/config/i386/linux.h |
| 97 | @@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see |
| 98 | <http://www.gnu.org/licenses/>. */ |
| 99 | |
| 100 | #define GNU_USER_LINK_EMULATION "elf_i386" |
| 101 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| 102 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" |
| 103 | |
| 104 | #undef MUSL_DYNAMIC_LINKER |
| 105 | #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 106 | diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h |
| 107 | index b3822ced528..92d303e80d6 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 108 | --- a/gcc/config/i386/linux64.h |
| 109 | +++ b/gcc/config/i386/linux64.h |
| 110 | @@ -27,9 +27,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
| 111 | #define GNU_USER_LINK_EMULATION64 "elf_x86_64" |
| 112 | #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64" |
| 113 | |
| 114 | -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2" |
| 115 | -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2" |
| 116 | -#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2" |
| 117 | +#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-linux.so.2" |
| 118 | +#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld-linux-x86-64.so.2" |
| 119 | +#define GLIBC_DYNAMIC_LINKERX32 SYSTEMLIBS_DIR "ld-linux-x32.so.2" |
| 120 | |
| 121 | #undef MUSL_DYNAMIC_LINKER32 |
| 122 | #define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 123 | diff --git a/gcc/config/linux.h b/gcc/config/linux.h |
| 124 | index 4e1db60fced..87efc5f69fe 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 125 | --- a/gcc/config/linux.h |
| 126 | +++ b/gcc/config/linux.h |
| 127 | @@ -94,10 +94,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
| 128 | GLIBC_DYNAMIC_LINKER must be defined for each target using them, or |
| 129 | GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets |
| 130 | supporting both 32-bit and 64-bit compilation. */ |
| 131 | -#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| 132 | -#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0" |
| 133 | -#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0" |
| 134 | -#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0" |
| 135 | +#define UCLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-uClibc.so.0" |
| 136 | +#define UCLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-uClibc.so.0" |
| 137 | +#define UCLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld64-uClibc.so.0" |
| 138 | +#define UCLIBC_DYNAMIC_LINKERX32 SYSTEMLIBS_DIR "ldx32-uClibc.so.0" |
| 139 | #define BIONIC_DYNAMIC_LINKER "/system/bin/linker" |
| 140 | #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker" |
| 141 | #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 142 | diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h |
| 143 | index 44a85e410d9..8d41b5574f6 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 144 | --- a/gcc/config/mips/linux.h |
| 145 | +++ b/gcc/config/mips/linux.h |
| 146 | @@ -22,20 +22,20 @@ along with GCC; see the file COPYING3. If not see |
| 147 | #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32" |
| 148 | |
| 149 | #define GLIBC_DYNAMIC_LINKER32 \ |
| 150 | - "%{mnan=2008:/lib/ld-linux-mipsn8.so.1;:/lib/ld.so.1}" |
| 151 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" |
| 152 | #define GLIBC_DYNAMIC_LINKER64 \ |
| 153 | - "%{mnan=2008:/lib64/ld-linux-mipsn8.so.1;:/lib64/ld.so.1}" |
| 154 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" |
| 155 | #define GLIBC_DYNAMIC_LINKERN32 \ |
| 156 | - "%{mnan=2008:/lib32/ld-linux-mipsn8.so.1;:/lib32/ld.so.1}" |
| 157 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-linux-mipsn8.so.1;:" SYSTEMLIBS_DIR "ld.so.1}" |
| 158 | |
| 159 | #undef UCLIBC_DYNAMIC_LINKER32 |
| 160 | #define UCLIBC_DYNAMIC_LINKER32 \ |
| 161 | - "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}" |
| 162 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld-uClibc.so.0}" |
| 163 | #undef UCLIBC_DYNAMIC_LINKER64 |
| 164 | #define UCLIBC_DYNAMIC_LINKER64 \ |
| 165 | - "%{mnan=2008:/lib/ld64-uClibc-mipsn8.so.0;:/lib/ld64-uClibc.so.0}" |
| 166 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld64-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld64-uClibc.so.0}" |
| 167 | #define UCLIBC_DYNAMIC_LINKERN32 \ |
| 168 | - "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}" |
| 169 | + "%{mnan=2008:" SYSTEMLIBS_DIR "ld-uClibc-mipsn8.so.0;:" SYSTEMLIBS_DIR "ld-uClibc.so.0}" |
| 170 | |
| 171 | #undef MUSL_DYNAMIC_LINKER32 |
| 172 | #define MUSL_DYNAMIC_LINKER32 \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 173 | diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h |
| 174 | index fce5b896e6e..03aa55cb5ab 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 175 | --- a/gcc/config/riscv/linux.h |
| 176 | +++ b/gcc/config/riscv/linux.h |
| 177 | @@ -22,7 +22,7 @@ along with GCC; see the file COPYING3. If not see |
| 178 | GNU_USER_TARGET_OS_CPP_BUILTINS(); \ |
| 179 | } while (0) |
| 180 | |
| 181 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-riscv" XLEN_SPEC "-" ABI_SPEC ".so.1" |
| 182 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-riscv" XLEN_SPEC "-" ABI_SPEC ".so.1" |
| 183 | |
| 184 | #define MUSL_ABI_SUFFIX \ |
| 185 | "%{mabi=ilp32:-sf}" \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 186 | diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h |
| 187 | index e3f2cd254f6..a11e01faa3d 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 188 | --- a/gcc/config/rs6000/linux64.h |
| 189 | +++ b/gcc/config/rs6000/linux64.h |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 190 | @@ -336,24 +336,19 @@ extern int dot_symbols; |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 191 | #undef LINK_OS_DEFAULT_SPEC |
| 192 | #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)" |
| 193 | |
| 194 | -#define GLIBC_DYNAMIC_LINKER32 "%(dynamic_linker_prefix)/lib/ld.so.1" |
| 195 | - |
| 196 | +#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld.so.1" |
| 197 | #ifdef LINUX64_DEFAULT_ABI_ELFv2 |
| 198 | -#define GLIBC_DYNAMIC_LINKER64 \ |
| 199 | -"%{mabi=elfv1:%(dynamic_linker_prefix)/lib64/ld64.so.1;" \ |
| 200 | -":%(dynamic_linker_prefix)/lib64/ld64.so.2}" |
| 201 | +#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:" SYSTEMLIBS_DIR "ld64.so.1;:" SYSTEMLIBS_DIR "ld64.so.2}" |
| 202 | #else |
| 203 | -#define GLIBC_DYNAMIC_LINKER64 \ |
| 204 | -"%{mabi=elfv2:%(dynamic_linker_prefix)/lib64/ld64.so.2;" \ |
| 205 | -":%(dynamic_linker_prefix)/lib64/ld64.so.1}" |
| 206 | +#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:" SYSTEMLIBS_DIR "ld64.so.2;:" SYSTEMLIBS_DIR "ld64.so.1}" |
| 207 | #endif |
| 208 | |
| 209 | #undef MUSL_DYNAMIC_LINKER32 |
| 210 | #define MUSL_DYNAMIC_LINKER32 \ |
| 211 | - "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1" |
| 212 | + SYSTEMLIBS_DIR "ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1" |
| 213 | #undef MUSL_DYNAMIC_LINKER64 |
| 214 | #define MUSL_DYNAMIC_LINKER64 \ |
| 215 | - "/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1" |
| 216 | + SYSTEMLIBS_DIR "ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1" |
| 217 | |
| 218 | #undef DEFAULT_ASM_ENDIAN |
| 219 | #if (TARGET_DEFAULT & MASK_LITTLE_ENDIAN) |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 220 | diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h |
| 221 | index 7558d2f7195..3aaa6c3a078 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 222 | --- a/gcc/config/sh/linux.h |
| 223 | +++ b/gcc/config/sh/linux.h |
| 224 | @@ -64,7 +64,7 @@ along with GCC; see the file COPYING3. If not see |
| 225 | "/lib/ld-musl-sh" MUSL_DYNAMIC_LINKER_E MUSL_DYNAMIC_LINKER_FP \ |
| 226 | "%{mfdpic:-fdpic}.so.1" |
| 227 | |
| 228 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| 229 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" |
| 230 | |
| 231 | #undef SUBTARGET_LINK_EMUL_SUFFIX |
| 232 | #define SUBTARGET_LINK_EMUL_SUFFIX "%{mfdpic:_fd;:_linux}" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 233 | diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h |
| 234 | index 2550d7ee8f0..a94f4cd8ba2 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 235 | --- a/gcc/config/sparc/linux.h |
| 236 | +++ b/gcc/config/sparc/linux.h |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 237 | @@ -78,7 +78,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 238 | When the -shared link option is used a final link is not being |
| 239 | done. */ |
| 240 | |
| 241 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| 242 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" |
| 243 | |
| 244 | #undef LINK_SPEC |
| 245 | #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 246 | diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h |
| 247 | index 95af8afa9b5..63127afb074 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 248 | --- a/gcc/config/sparc/linux64.h |
| 249 | +++ b/gcc/config/sparc/linux64.h |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 250 | @@ -78,8 +78,8 @@ along with GCC; see the file COPYING3. If not see |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 251 | When the -shared link option is used a final link is not being |
| 252 | done. */ |
| 253 | |
| 254 | -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2" |
| 255 | -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2" |
| 256 | +#define GLIBC_DYNAMIC_LINKER32 SYSTEMLIBS_DIR "ld-linux.so.2" |
| 257 | +#define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld-linux.so.2" |
| 258 | |
| 259 | #ifdef SPARC_BI_ARCH |
| 260 | |