[Bug dynamic-link/27072] New: static pie ifunc resolvers run before hwcap is setup
nsz at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Tue Dec 15 11:01:02 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=27072
Bug ID: 27072
Summary: static pie ifunc resolvers run before hwcap is setup
Product: glibc
Version: 2.32
Status: NEW
Severity: normal
Priority: P2
Component: dynamic-link
Assignee: unassigned at sourceware dot org
Reporter: nsz at gcc dot gnu.org
Target Milestone: ---
as far as i can tell in csu/libc-start.c
_dl_relocate_static_pie ();
is before
_dl_aux_init (auxvec);
so ifunc resolvers are run before GL(dl_hwcap) and GL(dl_hwcap2) are set up.
on aarch64 this at least affects memory tagging: non-MTE-safe string functions
are selected in static PIE binaries unconditionally.
but i think this is a bug on all targets where hwcap is passed to ifunc
resolvers and support static pie.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list