Copy relocations are relocations to copy data from DSOs to executable's .bss segment at runtime. It doesn't make sense to create such relocations for zero-sized symbols. GNU linkers don't agree with each other. ld rejects such relocation/symbol pair. gold don't reject that but do not create copy relocations as well. I took the former approach because I don't think the latter is what user wants. llvm-svn: 270525
29 lines
305 B
ArmAsm
29 lines
305 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
|
|
.size data0, 4
|
|
data0:
|
|
.word 0
|
|
|
|
.globl data1
|
|
.type data1, @object
|
|
.size data1, 4
|
|
data1:
|
|
.word 0
|