2 # RUN: llvm-mc %s -o %t.o -filetype=obj -triple=i386-pc-linux
3 # RUN: ld.lld %t.o -o %t.so -shared
4 # RUN: llvm-readobj --relocations --sections --section-data %t.so | FileCheck %s
6 # Check that the value of a preemptible symbol is not written to the
7 # got entry when using Elf_Rel. It is not needed since the dynamic
8 # linker will write the final value.
11 # CHECK-NEXT: Type: SHT_PROGBITS
13 # CHECK-NEXT: SHF_ALLOC
14 # CHECK-NEXT: SHF_WRITE
16 # CHECK-NEXT: Address:
21 # CHECK-NEXT: AddressAlignment:
22 # CHECK-NEXT: EntrySize:
23 # CHECK-NEXT: SectionData (
24 # CHECK-NEXT: 0000: 00000000
27 # CHECK: R_386_GLOB_DAT bar
29 movl bar@GOT
(%eax
), %eax