https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80182
--- Comment #8 from Peter Damianov <peter0x44 at disroot dot org> --- This might arguably actually be a BFD linker problem. Both lld and mold don't have the problem for the example. Gold also has the same issue.