https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93630
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Can you try -no-pie also? Also what version of the linker (binutils) you are using? since the string constants will be in a mergable section, they will be merged together and used only location. I wonder if binutils is not messing up ...