https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108834
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This is in the arrays passed to __asan_{,un}register_globals. Now, we emit /* Build struct __asan_global { const void *__beg; uptr __size; uptr __size_with_redzone; const void *__name; const void *__module_name; uptr __has_dynamic_init; __asan_global_source_location *__location; char *__odr_indicator; } type. */ so __module_name should be the filename the global appeared in (so for LTO DECL_NAME of corresponding TRANSLATION_UNIT_DECL?), while __location has more details. But, looking on the libsanitizer side, it has // This structure describes an instrumented global variable. struct __asan_global { uptr beg; // The address of the global. uptr size; // The original size of the global. uptr size_with_redzone; // The size with the redzone. const char *name; // Name as a C string. const char *module_name; // Module name as a C string. This pointer is a // unique identifier of a module. uptr has_dynamic_init; // Non-zero if the global has dynamic initializer. uptr windows_padding; // TODO: Figure out how to remove this padding // that's simply here to make the MSVC incremental // linker happy... uptr odr_indicator; // The address of the ODR indicator symbol. }; so I wonder if emitting the locations isn't just wasted .rodata if libasan considers it being a windows_padding. In GCC 12 libsanitizer it was still location: --- gcc-12/libsanitizer/asan/asan_interface_internal.h 2022-04-28 15:56:17.730640966 +0200 +++ gcc/libsanitizer/asan/asan_interface_internal.h 2022-11-15 22:57:18.450207911 +0100 @@ -53,8 +53,9 @@ extern "C" { const char *module_name; // Module name as a C string. This pointer is a // unique identifier of a module. uptr has_dynamic_init; // Non-zero if the global has dynamic initializer. - __asan_global_source_location *location; // Source location of a global, - // or NULL if it is unknown. + uptr windows_padding; // TODO: Figure out how to remove this padding + // that's simply here to make the MSVC incremental + // linker happy... uptr odr_indicator; // The address of the ODR indicator symbol. }; So I wonder what kind of mess upstream introduced again.