https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82501
--- Comment #21 from Martin Liška <marxin at gcc dot gnu.org> --- Thanks for the test-case. > > So I guess we still have to detect relocations. I cannot see limitations > coming particularly from approach #2 from > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82501#c1. We just need to pass > the right reloc value to categorize_decl_for_section(). Can you please tweak the patch to emit these?