summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/interpreter
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-08-26 06:23:53 +0000
committerFangrui Song <maskray@google.com>2019-08-26 06:23:53 +0000
commit8e5184af71124be3ed7f53f4a25d5ea7742aa3c2 (patch)
tree6e4ad83419a8a2b426dabe53c949c3ee113ce3ff /lldb/packages/Python/lldbsuite/test/python_api/interpreter
parente18aa1e0a2d3ac9912829171b30f280624a2695c (diff)
downloadbcm5719-llvm-8e5184af71124be3ed7f53f4a25d5ea7742aa3c2.tar.gz
bcm5719-llvm-8e5184af71124be3ed7f53f4a25d5ea7742aa3c2.zip
[ELF] Error if --strip-all and --emit-relocs are used together
--strip-all suppresses the creation of in.symtab This can cause a null pointer dereference in OutputSection::finalize() // --emit-relocs => copyRelocs is true if (!config->copyRelocs || (type != SHT_RELA && type != SHT_REL)) return; ... link = in.symTab->getParent()->sectionIndex; // in.symTab is null Let's just disallow the combination. In some cases the combination can cause GNU linkers to fail: * ld.bfd: final link failed: invalid operation * gold: internal error in set_no_output_symtab_entry, at ../../gold/object.h:1814 Reviewed By: ruiu Differential Revision: https://reviews.llvm.org/D66704 llvm-svn: 369878
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud