[PATCH] Allow memset local PLT reference for RISC-V.

Andreas Schwab schwab@linux-m68k.org
Mon Jun 29 17:00:23 GMT 2020


On Jun 29 2020, Alistair Francis wrote:

> There is also a PLT memset in libc_pic.a
>
>  1bc:   009aa023                sw      s1,0(s5)
>           memset (result->__data, '\0',
>  1c0:   865e                    mv      a2,s7
>  1c2:   4581                    li      a1,0
>  1c4:   008a8513                addi    a0,s5,8
>  1c8:   00000097                auipc   ra,0x0
>                         1c8: R_RISCV_CALL_PLT   __GI_memset
>                         1c8: R_RISCV_RELAX      *ABS*
>  1cc:   000080e7                jalr    ra # 1c8 <.LVL39+0x14>

That will be relaxed by the linker.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list