Merge "Only link the MTE notes against executables."
This commit is contained in:
@@ -211,11 +211,13 @@ endif
|
|||||||
|
|
||||||
ifneq ($(filter memtag_heap,$(my_sanitize)),)
|
ifneq ($(filter memtag_heap,$(my_sanitize)),)
|
||||||
# Add memtag ELF note.
|
# Add memtag ELF note.
|
||||||
|
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
|
||||||
ifneq ($(filter memtag_heap,$(my_sanitize_diag)),)
|
ifneq ($(filter memtag_heap,$(my_sanitize_diag)),)
|
||||||
my_whole_static_libraries += note_memtag_heap_sync
|
my_whole_static_libraries += note_memtag_heap_sync
|
||||||
else
|
else
|
||||||
my_whole_static_libraries += note_memtag_heap_async
|
my_whole_static_libraries += note_memtag_heap_async
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
# This is all that memtag_heap does - it is not an actual -fsanitize argument.
|
# This is all that memtag_heap does - it is not an actual -fsanitize argument.
|
||||||
# Remove it from the list.
|
# Remove it from the list.
|
||||||
my_sanitize := $(filter-out memtag_heap,$(my_sanitize))
|
my_sanitize := $(filter-out memtag_heap,$(my_sanitize))
|
||||||
|
Reference in New Issue
Block a user