https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80759
--- Comment #48 from Daniel Santos <daniel.santos at pobox dot com> --- Created attachment 41588 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41588&action=edit proposed fix v6 2/2 (libgcc) The only thing this changes from your patches is some macro names and testing HAVE_GAS_HIDDEN. From what I can tell ".hidden" is an ELF thing. (I guess I really need to learn the ins and outs of ELF and DWARF much better.) There isn't currently a HAVE_GAS_SIZE in gcc/configure.ac, but it looks like .size syntax can vary across assemblers as well, so hopefully just the #ifdef __ELF__ is a sufficient test for that.