[PATCH] arm: Prevent GCC from using VFP registers in code used during dynamic linking
Aurelien Jarno
aurelien@aurel32.net
Mon May 11 16:51:13 GMT 2026
On 2026-05-11 10:54, Adhemerval Zanella Netto wrote:
>
>
> On 10/05/26 19:00, Aurelien Jarno wrote:
> > Starting with GCC 15, VFP registers are used more aggressively on ARM,
> > including in ld.so code involved in runtime linking. For instance d7 is
> > used in _dl_lookup_symbol_, which clobbers the 8th floating point
> > argument of a function on its first call.
>
> We added the --with-rtld-early-cflags configure option for avoid such issue,
> couldn't this be used instead of specific flags to specific objects?
This is a configure option, so do you mean changing the default value
for arm?
Anyway is doesn't work as it misses dl-lookup.os and dl-runtime.os, but
works for dl-misc.os.
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://aurel32.net
More information about the Libc-alpha
mailing list