[PATCH 2/2] aarch64: Add workaround for GDB bug handling string literals
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Wed Jul 1 13:20:21 GMT 2026
Hi Florian,
>> Should we, given ifunc ABIs are target specific, disallow directly
>> calling ifunc resolvers in all cases?
>
> Maybe we should do that. We could expose an __invoke_ifunc symbol that
> performs the ABI-appropriate call at the same time.
Is it not possible to use dlsym()? The issue is more that applications just call
symbols without realizing it is an ifunc...
> However, malloc is probably a special case because of the GDB string
> literal bug.
Valgrind has the same issue. If we commit Muhammad's workaround in GDB,
this patch will result in GDB calling a malloc block...
Or are you proposing that we explicitly define (and guarantee) that the malloc/free/...
ifunc resolvers behave like malloc/free when NOT called from GLIBC?
Cheers,
Wilco
More information about the Libc-alpha
mailing list