1# REQUIRES: x86 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 5 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. 9 10# CHECK: Name: .got 11# CHECK-NEXT: Type: SHT_PROGBITS 12# CHECK-NEXT: Flags [ 13# CHECK-NEXT: SHF_ALLOC 14# CHECK-NEXT: SHF_WRITE 15# CHECK-NEXT: ] 16# CHECK-NEXT: Address: 17# CHECK-NEXT: Offset: 18# CHECK-NEXT: Size: 4 19# CHECK-NEXT: Link: 20# CHECK-NEXT: Info: 21# CHECK-NEXT: AddressAlignment: 22# CHECK-NEXT: EntrySize: 23# CHECK-NEXT: SectionData ( 24# CHECK-NEXT: 0000: 00000000 25# CHECK-NEXT: ) 26 27# CHECK: R_386_GLOB_DAT bar 0x0 28 29 movl bar@GOT(%eax), %eax 30 31 .data 32 .globl bar 33bar: 34 .long 42 35