[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / i386-gotpc-dynamic.s
blobfb9507473ec6f02d5d9d37bec03344f8feaf0763
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o
3 # RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared
4 # RUN: llvm-readelf -S %t.so | FileCheck %s
5 # RUN: llvm-objdump --no-print-imm-hex -d %t.so | FileCheck --check-prefix=DISASM %s
7 # CHECK: .got.plt PROGBITS 00003190
9 ## 0x3190 - 0x1158 = 8248
10 # DISASM: 1158: {{.*}} movl $8248, %eax
12 .section .foo,"ax",@progbits
13 foo:
14 movl $bar@got-., %eax # R_386_GOTPC
16 .local bar
17 bar: