https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94504
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- gc-sections with a GOT is probably difficult since I'm quite sure we don't have an extra section for every datum in the GOT. Likely applies to the PLT as well. Of course relying on --gc-sections to "fix" your link because you are missing definitions is more than fragile...