35 lines · plain
1# REQUIRES: x862# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=i386-pc-linux3# RUN: ld.lld %t.o -o %t.so -shared4# RUN: llvm-readobj --relocations --sections --section-data %t.so | FileCheck %s5 6# Check that the value of a preemptible symbol is not written to the7# got entry when using Elf_Rel. It is not needed since the dynamic8# linker will write the final value.9 10# CHECK: Name: .got11# CHECK-NEXT: Type: SHT_PROGBITS12# CHECK-NEXT: Flags [13# CHECK-NEXT: SHF_ALLOC14# CHECK-NEXT: SHF_WRITE15# CHECK-NEXT: ]16# CHECK-NEXT: Address:17# CHECK-NEXT: Offset:18# CHECK-NEXT: Size: 419# CHECK-NEXT: Link:20# CHECK-NEXT: Info:21# CHECK-NEXT: AddressAlignment:22# CHECK-NEXT: EntrySize:23# CHECK-NEXT: SectionData (24# CHECK-NEXT: 0000: 0000000025# CHECK-NEXT: )26 27# CHECK: R_386_GLOB_DAT bar28 29 movl bar@GOT(%eax), %eax30 31 .data32 .globl bar33bar:34 .long 4235