xref: /llvm-project/lld/test/ELF/i386-relax-reloc.s (revision 2f1d79ee702148f452584367ddd0e3c81ecf3c64)
1// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o
3// RUN: ld.lld -shared %t.o -o %t.so
4// RUN: llvm-readelf -S %t.so | FileCheck --check-prefix=SEC %s
5// RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t.so | FileCheck %s
6
7// SEC:      .got PROGBITS 000021f0
8// SEC:      .got.plt PROGBITS 000031f4
9
10// CHECK: <foo>:
11// CHECK-NEXT: 1194: movl    -4100(%ebx), %eax
12// CHECK-NEXT:       movl    -4092(%ebx), %eax
13
14foo:
15        movl bar@GOT(%ebx), %eax
16        movl bar+8@GOT(%ebx), %eax
17