Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 1 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 2 | Subject: [PATCH 4/5] gcc/nios2: Define the musl linker |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 3 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 4 | Add a definition of the musl linker used on the nios2 platform. |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 5 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 6 | 2021-10-26 Richard Purdie <richard.purdie@linuxfoundation.org> |
| 7 | |
| 8 | gcc/ChangeLog: |
| 9 | |
| 10 | * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker |
| 11 | |
| 12 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 13 | |
| 14 | Submitted [https://gcc.gnu.org/pipermail/gcc-patches/2021-October/582723.html] |
| 15 | Upstream-Status: Backport [https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e5ddbbf992b909d8e38851bd3179d29389e6ac97] |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | --- |
| 17 | gcc/config/nios2/linux.h | 1 + |
| 18 | 1 file changed, 1 insertion(+) |
| 19 | |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 20 | Index: gcc-11.2.0/gcc/config/nios2/linux.h |
| 21 | =================================================================== |
| 22 | --- gcc-11.2.0.orig/gcc/config/nios2/linux.h |
| 23 | +++ gcc-11.2.0/gcc/config/nios2/linux.h |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 24 | @@ -30,6 +30,7 @@ |
| 25 | #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" |
| 26 | |
| 27 | #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1" |
| 28 | +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-nios2.so.1" |
| 29 | |
| 30 | #undef LINK_SPEC |
| 31 | #define LINK_SPEC LINK_SPEC_ENDIAN \ |