16 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o3// RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared4// RUN: llvm-readelf -S %t.so | FileCheck %s5// RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t.so | FileCheck --check-prefix=DISASM %s6 7movl $_GLOBAL_OFFSET_TABLE_, %eax8 9// CHECK: .got.plt PROGBITS 0000319010 11// DISASM: Disassembly of section .text:12// DISASM-EMPTY:13// DISASM-NEXT: <.text>:14// DISASM-NEXT: 1158: movl $8248, %eax15// ^-- 0x3190 (.got.plt) - 0x1158 = 824816