Darwin: Make sanitizer local vars linker-visible.
Another case where we need a linker-visible symbol in order to preserve the ld64 atom model. If these symbols are emitted as 'local' the linker cannot see that they are separate from any global weak entry that precedes them. This will cause the linker to complain that there is (apparently) direct access to such a weak global. This is a short-term fix for the problem - ideally we need a more generic handling for all the relevant cases. Backport 804254edb48f87d726a1bc9e95af04076c030e35 gcc/ChangeLog: * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make ubsan_{data,type},ASAN linker-visible.
Showing
Please
register
or
sign in
to comment