[4/4] gcc/nios2: Define the musl linker

Message ID 20211026124437.3301773-4-richard.purdie@linuxfoundation.org
State Committed
Commit e5ddbbf992b909d8e38851bd3179d29389e6ac97
Headers
Series [1/4] Makefile.in: Ensure build CPP is used for build targets |

Commit Message

Richard Purdie Oct. 26, 2021, 12:44 p.m. UTC
  Add a definition of the musl linker used on the nios2 platform.

2021-10-26 Richard Purdie <richard.purdie@linuxfoundation.org>

gcc/ChangeLog:

    * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 gcc/config/nios2/linux.h | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/gcc/config/nios2/linux.h b/gcc/config/nios2/linux.h
index 08edf1521f6..15696d86241 100644
--- a/gcc/config/nios2/linux.h
+++ b/gcc/config/nios2/linux.h
@@ -30,6 +30,7 @@ 
 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
 
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1"
+#define MUSL_DYNAMIC_LINKER  "/lib/ld-musl-nios2.so.1"
 
 #undef LINK_SPEC
 #define LINK_SPEC LINK_SPEC_ENDIAN \