[lld] r365834 - [mips] Simplify test case. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 14:55:57 PDT 2019
Author: atanasyan
Date: Thu Jul 11 14:55:56 2019
New Revision: 365834
URL: http://llvm.org/viewvc/llvm-project?rev=365834&view=rev
Log:
[mips] Simplify test case. NFC
Before rL295040 the linker just crashed when a GOT relocation (R_MIPS_GOT16)
comes from a merge section. To ensure that this bug still fixed it's enough
to check that the linker does not crash and create GOT entries.
Modified:
lld/trunk/test/ELF/mips-got-string.s
Modified: lld/trunk/test/ELF/mips-got-string.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/mips-got-string.s?rev=365834&r1=365833&r2=365834&view=diff
==============================================================================
--- lld/trunk/test/ELF/mips-got-string.s (original)
+++ lld/trunk/test/ELF/mips-got-string.s Thu Jul 11 14:55:56 2019
@@ -3,20 +3,12 @@
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux -o %t.o %s
# RUN: ld.lld -shared -o %t.so %t.o
-# RUN: llvm-readobj --symbols --mips-plt-got %t.so | FileCheck %s
+# RUN: llvm-readelf --mips-plt-got %t.so | FileCheck %s
-# CHECK: Symbol {
-# CHECK: Name: $.str
-# CHECK-NEXT: Value: 0x1F1
-# CHECK: }
-
-# CHECK: Local entries [
-# CHECK-NEXT: Entry {
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Access: -32744
-# CHECK-NEXT: Initial: 0x0
-# CHECK: }
-# CHECK: ]
+# CHECK: Local entries:
+# CHECK-NEXT: Address Access Initial
+# CHECK-NEXT: {{[0-9a-f]+}} -32744(gp) 00000000
+# CHECK-NEXT: {{[0-9a-f]+}} -32740(gp) 00010000
.text
lw $t9, %got($.str)($gp)
More information about the llvm-commits
mailing list