[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / i386-got-value.s
bloba631169376ce5329f433571fbc56a25d476c504e
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
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.
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: )
27 # CHECK: R_386_GLOB_DAT bar
29 movl bar@GOT(%eax), %eax
31 .data
32 .globl bar
33 bar:
34 .long 42