https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118048
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So I think r13-4467-g6d3c634c8baebd changed the behavior to be correct in erroring out. Which means I think most LINK_SPECs were incorrect before and was not noticed either. Note aarch64 linux most likely copied from arm linux which is why it worked that. I have not looked into the history of why h was included in the other locations either.