https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90912
--- Comment #5 from Ondřej Surý <ondrej at sury dot org> --- (In reply to Andrew Pinski from comment #4) > Well GCC is producing correct code is GNU LD works with it. No, not really. > Report this bug to Sun^wOracle instead. That said, we did this and it has been already fixed in GCC via PR84010.