diff options
author | Fangrui Song <i@maskray.me> | 2024-01-23 12:49:57 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-01-23 12:49:57 -0800 |
commit | 16343f0db286a5d2aaf9494dd402cda0d088d0a1 (patch) | |
tree | 1773c3b0e9165335cc80d633d6e110c0bb98a3d9 | |
parent | bb3e0d7fc34899f22cbaea311982098bae3de061 (diff) | |
download | llvm-16343f0db286a5d2aaf9494dd402cda0d088d0a1.zip llvm-16343f0db286a5d2aaf9494dd402cda0d088d0a1.tar.gz llvm-16343f0db286a5d2aaf9494dd402cda0d088d0a1.tar.bz2 |
[ELF,test] Fix defsym.ll
-rw-r--r-- | lld/test/ELF/lto/defsym.ll | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lld/test/ELF/lto/defsym.ll b/lld/test/ELF/lto/defsym.ll index 750c393..1422018 100644 --- a/lld/test/ELF/lto/defsym.ll +++ b/lld/test/ELF/lto/defsym.ll @@ -1,17 +1,19 @@ ; REQUIRES: x86 +; RUN: rm -rf %t && mkdir %t && cd %t + ; LTO -; RUN: llvm-as %s -o %t.o -; RUN: llvm-as %S/Inputs/defsym-bar.ll -o %t1.o -; RUN: ld.lld %t.o %t1.o -shared -o %t.so -defsym=bar2=bar3 -save-temps -; RUN: llvm-readelf --symbols %t.so.lto.o | FileCheck --check-prefix=OBJ %s -; RUN: llvm-objdump -d %t.so | FileCheck %s +; RUN: llvm-as %s -o a.o +; RUN: llvm-as %S/Inputs/defsym-bar.ll -o b.o +; RUN: ld.lld a.o b.o -shared -o a.so -defsym=bar2=bar3 -save-temps +; RUN: llvm-readelf --symbols a.so.lto.o | FileCheck --check-prefix=OBJ %s +; RUN: llvm-objdump -d a.so | FileCheck %s ; ThinLTO -; RUN: opt -module-summary %s -o %t.o -; RUN: opt -module-summary %S/Inputs/defsym-bar.ll -o %t1.o -; RUN: ld.lld %t.o %t1.o -shared -o %t2.so -defsym=bar2=bar3 -save-temps -; RUN: llvm-readelf --symbols %t2.so1.lto.o | FileCheck --check-prefix=OBJ %s -; RUN: llvm-objdump -d %t2.so | FileCheck %s +; RUN: opt -module-summary %s -o a.o +; RUN: opt -module-summary %S/Inputs/defsym-bar.ll -o b.o +; RUN: ld.lld a.o b.o -shared -o a2.so -defsym=bar2=bar3 -save-temps +; RUN: llvm-readelf --symbols a2.so1.lto.o | FileCheck --check-prefix=OBJ %s +; RUN: llvm-objdump -d a2.so | FileCheck %s ; OBJ: UND bar2 |