This website requires JavaScript.
Explore
Help
Sign In
maxjhandsome
/
llvm-project
forked from
OSchip/llvm-project
Watch
1
Star
0
Fork
You've already forked llvm-project
0
Code
Issues
Pull Requests
Packages
Releases
Wiki
Activity
68f438a036
llvm-project
/
lld
/
test
/
ELF
/
Inputs
/
copy-in-shared.s
5 lines
49 B
ArmAsm
Raw
Normal View
History
Unescape
Escape
Don't create copy relocs in shared libraries. This fixes PR26699. llvm-svn: 261576
2016-02-23 05:23:29 +08:00
.type
foo,
@object
.global
foo
foo
:
Reject zero-sized symbols when creating copy relocations. 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
2016-05-24 10:37:40 +08:00
.size
foo,
4