llvm-project/lld/test/ELF/Inputs/mips-dynamic.s
Simon Atanasyan 2287dc3bf8 [ELF][MIPS] Add lazy relocation support for MIPS
The patch adds lazy relocation support for MIPS and R_MIPS_26 relocation
handing.

R_MIPS_26 relocation might require PLT entry creation. In that case it
is fully supported by the patch. But if the relocation target is a local
symbol we need to use a different expression to calculate the relocation
result. This case is not implemented yet because there is no method to
get know the kind of relocation target in the `relocateOne` routine.

Differential Revision: http://reviews.llvm.org/D16982

llvm-svn: 260424
2016-02-10 19:57:19 +00:00

27 lines
271 B
ArmAsm

.option pic2
.text
.globl _foo
_foo:
nop
.globl foo0
.type foo0, @function
foo0:
nop
.globl foo1
.type foo1, @function
foo1:
nop
.data
.globl data0
.type data0, @object
data0:
.word 0
.globl data1
.type data1, @object
data1:
.word 0