aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/i386-got-value.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/i386-got-value.s')
-rw-r--r--test/ELF/i386-got-value.s13
1 files changed, 5 insertions, 8 deletions
diff --git a/test/ELF/i386-got-value.s b/test/ELF/i386-got-value.s
index f42555b79272..8803fcffb312 100644
--- a/test/ELF/i386-got-value.s
+++ b/test/ELF/i386-got-value.s
@@ -1,10 +1,10 @@
# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=i386-pc-linux
# RUN: ld.lld %t.o -o %t.so -shared
-# RUN: llvm-readobj --relocations --symbols --sections --section-data %t.so | FileCheck %s
+# RUN: llvm-readobj --relocations --sections --section-data %t.so | FileCheck %s
-# Check that the value of a preemptible symbol is written to the got
-# entry when using Elf_Rel. It is not clear why that is required, but
-# freebsd i386 seems to depend on it.
+# Check that the value of a preemptible symbol is not written to the
+# got entry when using Elf_Rel. It is not needed since the dynamic
+# linker will write the final value.
# CHECK: Name: .got
# CHECK-NEXT: Type: SHT_PROGBITS
@@ -20,14 +20,11 @@
# CHECK-NEXT: AddressAlignment:
# CHECK-NEXT: EntrySize:
# CHECK-NEXT: SectionData (
-# CHECK-NEXT: 0000: 00200000
+# CHECK-NEXT: 0000: 00000000
# CHECK-NEXT: )
# CHECK: R_386_GLOB_DAT bar 0x0
-# CHECK: Name: bar
-# CHECK-NEXT: Value: 0x2000
-
movl bar@GOT(%eax), %eax
.data