https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68178
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #8 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- Based on the follow-up discussions, I'm re-opening this. While I don't think it's really a GCC bug, we can work around the assembler ambiguity problems in the compiler. To do this, legitimize_pic_address needs to not call arm_pic_static_addr() when a symbol definition is weak, even if it does bind locally.