https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98618
--- Comment #5 from nsz at gcc dot gnu.org --- (In reply to Wilco from comment #3) > I fixed this in GCC10: > https://gcc.gnu.org/git/?p=gcc.git&a=commit; > h=7d3b27ff12610fde9d6c4b56abc70c6ee9b6b3db > > So this just needs to be backported. thanks, i'll try that, i'm still looking for a simple workaround in glibc, this affects this code in elf_get_dynamic_info: ... 63 else if ((d_tag_utype) DT_VERSIONTAGIDX (dyn->d_tag) < DT_VERSIONTAGNUM) 64 info[VERSYMIDX (dyn->d_tag)] = dyn; 65 else if ((d_tag_utype) DT_EXTRATAGIDX (dyn->d_tag) < DT_EXTRANUM) 66 info[DT_EXTRATAGIDX (dyn->d_tag) + DT_NUM + DT_THISPROCNUM 67 + DT_VERSIONTAGNUM] = dyn; 68 else if ((d_tag_utype) DT_VALTAGIDX (dyn->d_tag) < DT_VALNUM) 69 info[DT_VALTAGIDX (dyn->d_tag) + DT_NUM + DT_THISPROCNUM 70 + DT_VERSIONTAGNUM + DT_EXTRANUM] = dyn; 71 else if ((d_tag_utype) DT_ADDRTAGIDX (dyn->d_tag) < DT_ADDRNUM) 72 info[DT_ADDRTAGIDX (dyn->d_tag) + DT_NUM + DT_THISPROCNUM 73 + DT_VERSIONTAGNUM + DT_EXTRANUM + DT_VALNUM] = dyn; ...