mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ELF's lack of linker directives is worked around by a custom section (`.swift1_autolink_entries`). This is metadata that is not intended to be emitted into the linked binary. A previous change introduced the use of a module (global) assembly gadget to discard the section. However, this interacts poorly with ASAN which would instrument the section, resulting in a strong reference. This reference would persist to a discarded symbol. lld would object to this. Blacklist the symbol to ensure that ASAN + autolinking can co-exist.
938 B
938 B