[lld] 06e8dd2 - [lld] fix new test from ca35a19acab1 to work with read-only source trees

Augie Fackler via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 13:50:10 PDT 2023


Author: Augie Fackler
Date: 2023-07-31T16:50:04-04:00
New Revision: 06e8dd28d85d0cce4db95bf4576654749fb15621

URL: https://github.com/llvm/llvm-project/commit/06e8dd28d85d0cce4db95bf4576654749fb15621
DIFF: https://github.com/llvm/llvm-project/commit/06e8dd28d85d0cce4db95bf4576654749fb15621.diff

LOG: [lld] fix new test from ca35a19acab1 to work with read-only source trees

Three RUN lines mistakenly tried to write to the source dir instead of
to a temp dir.

Added: 
    

Modified: 
    lld/test/ELF/aarch64-memtag-globals.s

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/aarch64-memtag-globals.s b/lld/test/ELF/aarch64-memtag-globals.s
index 5a92cf7f5112b4..fab6a032f0ce5c 100644
--- a/lld/test/ELF/aarch64-memtag-globals.s
+++ b/lld/test/ELF/aarch64-memtag-globals.s
@@ -4,7 +4,7 @@
 
 ## Ensure MTE globals doesn't work with REL (only RELA).
 # RUN: yaml2obj %s -o %t.rel.o
-# RUN: not ld.lld -shared --android-memtag-mode=sync %t.rel.o 2>&1 | FileCheck %s --check-prefix=CHECK-RELA
+# RUN: not ld.lld -shared --android-memtag-mode=sync %t.rel.o -o %t1.so 2>&1 | FileCheck %s --check-prefix=CHECK-RELA
 # CHECK-RELA: non-RELA relocations are not allowed with memtag globals
 --- !ELF
 FileHeader:
@@ -70,12 +70,12 @@ Symbols:
 
 ## And ensure that --apply-dynamic-relocs is banned.
 # RUN: not ld.lld --apply-dynamic-relocs -shared --android-memtag-mode=sync \
-# RUN:   %t1.o %t2.o 2>&1 | FileCheck %s --check-prefix=CHECK-DYNRELOC
+# RUN:   %t1.o %t2.o -o %t1.so 2>&1 | FileCheck %s --check-prefix=CHECK-DYNRELOC
 # CHECK-DYNRELOC: --apply-dynamic-relocs cannot be used with MTE globals
 
 ## And ensure that fully-static executables are banned.
 # RUN: not ld.lld --static --android-memtag-mode=sync \
-# RUN:   %t1.o %t2.o 2>&1 | FileCheck %s --check-prefix=CHECK-NOSTATIC
+# RUN:   %t1.o %t2.o -o %t1.so 2>&1 | FileCheck %s --check-prefix=CHECK-NOSTATIC
 # CHECK-NOSTATIC: --android-memtag-mode is incompatible with fully-static executables (-static)
 
 # CHECK:     Symbol table '.dynsym' contains


        


More information about the llvm-commits mailing list