https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93751
--- Comment #14 from Alexey Neyman <stilor at att dot net> --- Created attachment 47930 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47930&action=edit Patch, v3 In gcc-patches, there have been three votes for generating external variables' DIEs without an additional option. Updated the patch to do that. I'd be happy to see either of v2 or v3 of the patch picked up.