1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00
George Rimar 15ca2a3b45 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

llvm-svn: 348349
2018-12-05 10:43:58 +00:00
..
2017-07-06 21:33:23 +00:00
2015-11-06 13:35:35 +00:00
2018-03-12 23:36:25 +00:00
2015-11-03 18:50:51 +00:00
2018-06-26 17:44:23 +00:00
2015-05-22 21:37:13 +00:00
2018-06-26 17:44:23 +00:00
2016-04-08 18:15:37 +00:00
2016-04-08 18:15:37 +00:00
2016-04-08 18:15:37 +00:00
2016-04-08 18:15:37 +00:00
2015-05-22 21:37:13 +00:00
2015-05-22 21:37:13 +00:00
2015-06-22 23:36:03 +00:00
2015-05-22 21:37:13 +00:00
2015-06-25 20:10:45 +00:00