1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o 3// RUN: ld.lld %t.o -o %t.so -shared 4// RUN: llvm-readelf -S %t.so | FileCheck %s 5// RUN: llvm-objdump -d --no-show-raw-insn %t.so | FileCheck --check-prefix=DISASM %s 6 7bar: 8 movl bar@GOTOFF(%ebx), %eax 9 mov bar@GOT, %eax 10 11// CHECK: .got.plt PROGBITS 000031e0 12 13// 0x1178 - 0x31e0 (.got.plt) = -8296 14 15// DISASM: 1178: movl -8296(%ebx), %eax 16