diff options
author | Rui Ueyama <ruiu@google.com> | 2016-05-24 02:37:40 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-05-24 02:37:40 +0000 |
commit | 98843087cbc8cc4a26782a5ddf8a14c07d201fb0 (patch) | |
tree | a43b1737b1e18e8486fd45d272a426c81fec0d56 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 41518945e371bca02277ecd7be9687455ec0e592 (diff) | |
download | llvm-98843087cbc8cc4a26782a5ddf8a14c07d201fb0.zip llvm-98843087cbc8cc4a26782a5ddf8a14c07d201fb0.tar.gz llvm-98843087cbc8cc4a26782a5ddf8a14c07d201fb0.tar.bz2 |
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
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions