summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-01-20 04:58:12 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-01-20 04:58:12 +0000
commitdbd8d9b5a21f39634120d15f96ba632f40cdaad9 (patch)
tree47112452681e7bdfe6c121a4cce46472c0bf0361 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp
parentccf18131500917133a0eff97d16cd71572473e54 (diff)
ELF: Fix ICF crash on absolute symbol relocations.
If two sections contained relocations to absolute symbols with the same value we would crash when trying to access their sections. Add a check that both symbols point to sections before accessing their sections, and treat absolute symbols as equal if their values are equal. Differential Revision: https://reviews.llvm.org/D28935 llvm-svn: 292578
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions