blob: 59369b3e3f2367d989dfa10302481ae48a88b5c5 [file] [log] [blame]
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o
// RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared
// RUN: llvm-readelf -S %t.so | FileCheck %s
// RUN: llvm-objdump -d %t.so | FileCheck --check-prefix=DISASM %s
bar:
movl bar@GOTOFF(%ebx), %eax
mov bar@GOT, %eax
// CHECK: .got.plt PROGBITS 00003000
// 0x1000 - 0x3000 (.got.plt) = -8192
// DISASM: 1000: {{.*}} movl -8192(%ebx), %eax