https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101905
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I guess it should have DW_AT_location with DW_OP_reg15 Whether DW_AT_external or not is a question, not sure if consumers will be happy to see a definition of the var in many TUs, but technically it is a definition.