[PATCH] RISC-V: Use new linker emulations for glibc ABI.

Jim Wilson jimw@sifive.com
Tue May 8 23:08:00 GMT 2018


On Fri, May 4, 2018 at 2:45 PM, Jim Wilson <jimw@sifive.com> wrote:
> I've submitted a binutils patch that adds some new linker emulations to fix
> a linker problem with library paths.  The rv64/lp64d linker looks in /lib64
> when glibc says it should look in /lib64/lp64d.  To make the binutils patch
> work, I had to add 4 new emulations because we have 6 ABIs.  This patch
> modifies the compiler to use the new linker emulations in the linux port.  This
> was done in a backwards compatible way, so the linker still looks in the
> original dir after the ABI specific dir, and I didn't change the emulation
> names for the default lp64d and ilp32d ABIs.

Committed, with a corrected ChangeLog entry.

        * config/riscv/linux.h (MUSL_ABI_SUFFIX): Delete unnecessary backslash.
        (LD_EMUL_SUFFIX): New.
        (LINK_SPEC): Use it.

Jim



More information about the Gcc-patches mailing list