commit | d437f3c078b46cacf5d3385653f1782a47c9ac0b | [log] [tgz] |
---|---|---|
author | George Rimar <grimar@accesssoftek.com> | Wed Dec 05 10:43:58 2018 +0000 |
committer | George Rimar <grimar@accesssoftek.com> | Wed Dec 05 10:43:58 2018 +0000 |
tree | d8129a4ee27ac13cf79c8dee6d195821ef2672dc | |
parent | cf6cfbd9bb166baded54b6173c83ecece89e0c26 [diff] |
Recommit r348243 - "[llvm-mc] - Do not crash when referencing undefined debug sections." The patch triggered an unrelated msan issue: LayoutOrder variable was not initialized. (http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/26794/steps/check-llvm%20msan/logs/stdio) It was fixed. Original commit message: MC has code that pre-creates few debug sections: https://github.com/llvm-mirror/llvm/blob/master/lib/MC/MCObjectFileInfo.cpp#L396 If users code has a reference to such section but does not redefine it, MC code currently asserts, because still thinks they are normally defined. The patch fixes the issue. Differential revision: https://reviews.llvm.org/D55173 ---- Modified : /llvm/trunk/lib/MC/ELFObjectWriter.cpp Added : /llvm/trunk/test/MC/ELF/undefined-debug.s git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348349 91177308-0d34-0410-b5e6-96231b3b80d8