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

Florian Weimer fweimer@redhat.com
Thu Jun 25 18:41:47 GMT 2020


* Vineet Gupta:

> On 6/25/20 12:20 AM, Florian Weimer via Libc-alpha wrote:
>> * Alistair Francis via Libc-alpha:
>> 
>>> On Tue, Jun 23, 2020 at 12:19 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
>>>>
>>>> On Jun 22 2020, Alistair Francis via Libc-alpha wrote:
>>>>
>>>>> This is similar to commit a26e2e9feab87d4f745c31411458b048742ac733
>>>>> "Allow memset local PLT reference for powerpc soft-float.".
>>>>>
>>>>> GCC 10.1 results in the localplt test failing for RISC-V.
>>>>
>>>> Why doesn't the redirect in sysdeps/generic/symbol-hacks.h work?
>>>
>>> I'm not sure.
>> 
>> Which function contains the memset PLT reference?  “objdump
>> --disassemble --reloc” should show it.  Does this function come from
>> libgcc, by chance?
>
> yes this is libgcc. I saw this on ARC too (with gcc 10)
>
>    1b2d0:	ld	r12,[pcl,0xe4d40] ;100010 <memset@@GLIBC_2.32+0x98c94>
>    1b2d8:	j.d	[r12]
>    1b2dc:	mov	r12,pcl
>
> 000366c8 <__mpn_mul>:
>>    36748:	bl.d	-111736	;1b2d0 <.plt+0x40>

Uhm, how does this end up in libgcc?

Thanks,
Florian



More information about the Libc-alpha mailing list