Skip to content

Commit

Permalink
[test] add --implicit-check-not=error and avoid expensive .* regex
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay authored and kovdan01 committed Apr 3, 2024
1 parent f459527 commit 2846e76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lld/test/ELF/aarch64-reloc-pauth-ro.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# RUN: llvm-mc -filetype=obj -triple=aarch64 %p/Inputs/shared2.s -o %t.so.o
# RUN: ld.lld -shared %t.so.o -soname=so -o %t.so
# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o
# RUN: not ld.lld -pie %t.o %t.so -o %t2 2>&1 | FileCheck -DFILE=%t %s
# RUN: not ld.lld -pie %t.o %t.so -o %t2 2>&1 | FileCheck -DFILE=%t %s --implicit-check-not=error:

# CHECK: error: relocation R_AARCH64_AUTH_ABS64 cannot be used against symbol 'zed2'; recompile with -fPIC
# CHECK-NEXT: >>> defined in [[FILE]].so
Expand Down
5 changes: 3 additions & 2 deletions lld/test/ELF/aarch64-reloc-pauth.s
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@

# PIE: Section Headers:
# PIE-NEXT: Name Type Address Off Size ES Flg Lk Inf Al
# PIE: .rela.dyn RELA {{0*}}[[ADDR1:.*]] {{0*}}[[ADDR1]] 000108 18 A 1 0 8
# PIE: .rela.dyn RELA {{0*}}[[#%x,ADDR1:]]
# PIE-SAME: {{0*}}[[#ADDR1]] 000108 18 A 1 0 8

# PIE: Relocation section '.rela.dyn' at offset 0x[[ADDR1]] contains 11 entries:
# PIE: Relocation section '.rela.dyn' at offset 0x[[#ADDR1]] contains 11 entries:
# PIE-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
# PIE-NEXT: 0000000000030470 0000000000000411 R_AARCH64_AUTH_RELATIVE 1
# PIE-NEXT: 0000000000030478 0000000000000411 R_AARCH64_AUTH_RELATIVE 30472
Expand Down

0 comments on commit 2846e76

Please sign in to comment.