[PATCH] D79270: [test] Fix lld's ELF/linkerscript/thunk-gen-mips.s

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 2 14:50:49 PDT 2020


thopre updated this revision to Diff 261667.
thopre marked an inline comment as done.
thopre added a comment.

Set START_ADDR from llvm-objdump output instead of expecting 0x30.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79270/new/

https://reviews.llvm.org/D79270

Files:
  lld/test/ELF/linkerscript/thunk-gen-mips.s


Index: lld/test/ELF/linkerscript/thunk-gen-mips.s
===================================================================
--- lld/test/ELF/linkerscript/thunk-gen-mips.s
+++ lld/test/ELF/linkerscript/thunk-gen-mips.s
@@ -15,9 +15,9 @@
 # RUN: ld.lld -o %t.exe --script %t.script %t %t1
 # RUN: llvm-objdump -t %t.exe | FileCheck %s
 # CHECK: SYMBOL TABLE:
-# CHECK-ANY: 00000000         .text           00000000 _start
-# CHECK-ANY: 0010000c l     F .text           00000010 __LA25Thunk_too_far
-# CHECK-ANY: 00100020 g     F .text           00000024 too_far
+# CHECK-DAG:                         [[#%x, START_ADDR:]] g       .text           00000000 _start
+# CHECK-DAG: {{0*}}[[#THUNK_ADDR:START_ADDR+0x100000+12]] l     F .text           00000010 __LA25Thunk_too_far
+# CHECK-DAG:                     {{0*}}[[#THUNK_ADDR+20]] g     F .text           0000000c too_far
 
 .ifdef MAIN
 .global _start


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79270.261667.patch
Type: text/x-patch
Size: 896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200502/31cba3fa/attachment.bin>


More information about the llvm-commits mailing list