20 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3# RUN: echo '.globl foo; .hidden foo; foo = 42' | llvm-mc -filetype=obj -triple=x86_64 - -o %t2.o4# RUN: ld.lld %t.o %t2.o -o %t.so -shared5# RUN: llvm-readelf -r -S -x .got -x .data %t.so | FileCheck %s6 7## Test we don't create relocations for non-preemptable absolute symbols.8 9# CHECK: There are no relocations in this file.10# CHECK: section '.got':11# CHECK: 0x000022b8 2a000000 0000000012 13## .got - (.data+8) = 0xfffff0ef14# CHECK: section '.data':15# CHECK: 0x000032c0 2a000000 00000000 f0efffff16 17.data18.quad foo19.long foo@gotpcrel20