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

Message ID 20211027200505.3340725-5-richard.purdie@linuxfoundation.org
State Committed
Commit e5ddbbf992b909d8e38851bd3179d29389e6ac97
Headers
Series OpenEmbedded/Yocto Project gcc patches |

Commit Message

Richard Purdie Oct. 27, 2021, 8:05 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(+)
  

Comments

Jeff Law Oct. 28, 2021, 2:46 p.m. UTC | #1
On 10/27/2021 2:05 PM, Richard Purdie via Gcc-patches wrote:
> 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
THanks.  I've pushed this to the trunk

jeff
  

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 \