https://bugs.llvm.org/show_bug.cgi?id=36598
Bug ID: 36598
Summary: LLD crashes if ARM.exidx input section is empty
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedb...@nondot.org
Reporter: konstantin.schw...@hightec-rt.com
CC: llvm-bugs@lists.llvm.org
ld.lld crashes if it is invoked with the following input
// test.s
.text
.globl _start
_start:
// linker.script
SECTIONS
{
.foo:
{
exidx_start = .;
*(.ARM.exidx*)
exidx_end = .;
}
}
The test.s file is assembled in the following way:
llvm-mc -filetype=obj -triple=arm-arm-none-eabi test.s -o test.o
The program does not contain an ARM.exidx section, hence the InputSection
pointer 'First' in OutputSection::finalize is a nullptr and dereferenced later
on.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs