https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386
--- Comment #3 from Franz Sirl <sirl at gcc dot gnu.org> --- The option -mdirect-extern-access is enabled by default since it was added in r12-7126-ab0b5fbfe90168d2e470aefb19e0cf31526290bc . I didn't even know about this option before I ran into this problem.