llvm-project/llvm/test/MC
George Rimar 79ace92fcd 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
..
AArch64 Revert rL348121 from llvm/trunk: [NFC][AArch64] Split out backend features 2018-12-04 10:55:48 +00:00
AMDGPU [AMDGPU] Combine DPP mov with use instructions (VOP1/2/3) 2018-11-30 14:21:56 +00:00
ARM [llvm-readelf] Make llvm-readelf more compatible with GNU readelf. 2018-11-12 18:02:38 +00:00
AVR [AVR] Redefine the 'SBR' instruction as an alias 2018-09-01 12:22:54 +00:00
AsmParser [debuginfo] generate debug info with asm+.file 2018-08-28 16:23:39 +00:00
BPF bpf: New disassembler testcases for 32-bit subregister support 2018-02-23 23:49:35 +00:00
COFF [COFF] Don't mark mingw .eh_frame sections writable 2018-12-03 20:02:05 +00:00
Disassembler [AArch64] Add command-line option for SSBS 2018-12-03 14:00:47 +00:00
ELF Recommit r348243 - "[llvm-mc] - Do not crash when referencing undefined debug sections." 2018-12-05 10:43:58 +00:00
Hexagon [MC] Fix 3 objdump tests after rL346610 2018-11-11 19:15:27 +00:00
Lanai
MSP430 [MSP430] Use R_MSP430_16_BYTE type for FK_Data_2 fixup 2018-11-16 19:20:51 +00:00
MachO Produce an error on non-encodable offsets for darwin ARM scattered relocations. 2018-11-29 21:58:23 +00:00
Mips Reland test/MC/Mips/reloc-directive-label-offset.s 2018-11-22 18:18:58 +00:00
PowerPC [MC] Avoid inlining constant symbols with variants. 2018-09-17 20:34:26 +00:00
RISCV [RISCV] Add additional CSR instruction aliases (imm. operands) 2018-11-30 14:10:52 +00:00
Sparc [Sparc] Add unimp alias 2018-09-27 12:34:53 +00:00
SystemZ [SystemZ] Implement SystemZOperand::print() 2018-10-26 00:36:00 +00:00
WebAssembly [WebAssembly] Enforce assembler emits to streamer in order. 2018-12-03 20:30:28 +00:00
X86 [MC] Separate masm integer literal lexer support from inline asm 2018-10-24 20:23:57 +00:00