diff options
author | Fangrui Song <maskray@google.com> | 2018-10-30 20:54:54 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-10-30 20:54:54 +0000 |
commit | e0799a72683e5dd0570537755c5afea409e89484 (patch) | |
tree | 648a196add45cf8986bec3dae2c846a6182c5f04 /llvm/lib/CodeGen/SelectionDAG | |
parent | 4c39dfc91e1feb9f937f2ed2b79c5479a2323b65 (diff) | |
download | bcm5719-llvm-e0799a72683e5dd0570537755c5afea409e89484.tar.gz bcm5719-llvm-e0799a72683e5dd0570537755c5afea409e89484.zip |
[ELF] Fallback to sh_link=0 if neither .dynsym nor .symtab exists
Summary: .rela.plt may only contain R_*_{,I}RELATIVE relocations and not need a symbol table link. bfd/gold fallbacks to sh_link=0 in this case. Without this patch, ld.lld --strip-all caused lld to dereference a null pointer.
Reviewers: ruiu, grimar, espindola
Reviewed By: ruiu
Subscribers: emaste, arichardson, llvm-commits
Differential Revision: https://reviews.llvm.org/D53881
llvm-svn: 345648
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
0 files changed, 0 insertions, 0 deletions