This handles multiple weak symbols which appear back to back. This fix is needed which otherwise will lead to symbols getting initialized to arbitrary values. There was a constructor/destructor test that really triggered this to be fixed on X86_64. Adds a test. llvm-svn: 190658
22 lines
273 B
ArmAsm
22 lines
273 B
ArmAsm
.file "weak.s"
|
|
.text
|
|
.p2align 4,,15
|
|
.globl test
|
|
.type test, @function
|
|
test:
|
|
ret
|
|
.size test, .-test
|
|
.weak myfn2
|
|
.data
|
|
.align 8
|
|
.type myfn2, @object
|
|
.size myfn2, 8
|
|
myfn2:
|
|
.quad test
|
|
.weak myfn1
|
|
.align 8
|
|
.type myfn1, @object
|
|
.size myfn1, 8
|
|
myfn1:
|
|
.quad test
|