Revert "Revert "[soong] Add memtag-stack sanitizer, switch to li..."
Revert submission 2201105-revert-2096883-memtag-stack-IGUQFVKYTS Reason for revert: Reland with fix Reverted Changes: I0dac2a6a6:Revert "memtag_stack tests." I3967151d9:Revert "[soong] Add memtag-stack sanitizer, switch... Change-Id: Ib827fb8d48192f9e2accc97931e272f713d6cbd0
This commit is contained in:
@@ -344,19 +344,13 @@ func (t MemtagNoteType) str() string {
|
||||
|
||||
func checkHasMemtagNote(t *testing.T, m android.TestingModule, expected MemtagNoteType) {
|
||||
t.Helper()
|
||||
note_async := "note_memtag_heap_async"
|
||||
note_sync := "note_memtag_heap_sync"
|
||||
|
||||
found := None
|
||||
implicits := m.Rule("ld").Implicits
|
||||
for _, lib := range implicits {
|
||||
if strings.Contains(lib.Rel(), note_async) {
|
||||
found = Async
|
||||
break
|
||||
} else if strings.Contains(lib.Rel(), note_sync) {
|
||||
found = Sync
|
||||
break
|
||||
}
|
||||
ldFlags := m.Rule("ld").Args["ldFlags"]
|
||||
if strings.Contains(ldFlags, "-fsanitize-memtag-mode=async") {
|
||||
found = Async
|
||||
} else if strings.Contains(ldFlags, "-fsanitize-memtag-mode=sync") {
|
||||
found = Sync
|
||||
}
|
||||
|
||||
if found != expected {
|
||||
|
Reference in New Issue
Block a user