[llvm-bugs] [Bug 33029] New: Crash with -emit-relocs and linker scripts
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 12 11:12:41 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33029
Bug ID: 33029
Summary: Crash with -emit-relocs and linker scripts
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvm-bugs at lists.llvm.org
Given an empty assembly file for armv7a-none-linux-gnueabi and the linker
script
SECTIONS
{
.rel.dyn : { }
.zed : {
PROVIDE_HIDDEN (foobar = .); }
}
the command "ld.lld a1.o -emit-relocs -T l.script" crashes and the backtrace
is
#0 0x000000000060be1c in
lld::elf::OutputSection::finalize<llvm::object::ELFType<(llvm::support::endianness)1,
false> > (this=0x6050218)
at /home/espindola/llvm/llvm/tools/lld/ELF/OutputSections.cpp:132
#1 0x00000000006e6753 in (anonymous
namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1, false>
>::finalizeSections (this=0x7fffffffd260)
at /home/espindola/llvm/llvm/tools/lld/ELF/Writer.cpp:1251
#2 0x00000000006e3022 in (anonymous
namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1, false>
>::run (this=0x7fffffffd260)
at /home/espindola/llvm/llvm/tools/lld/ELF/Writer.cpp:243
#3 0x00000000007043e2 in
lld::elf::writeResult<llvm::object::ELFType<(llvm::support::endianness)1,
false> > () at /home/espindola/llvm/llvm/tools/lld/ELF/Writer.cpp:133
#4 0x000000000056006f in
lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1,
false> > (this=0x60283a0, Args=...)
at /home/espindola/llvm/llvm/tools/lld/ELF/Driver.cpp:1014
#5 0x0000000000555f73 in lld::elf::LinkerDriver::main (this=0x60283a0,
ArgsArr=..., CanExitEarly=true) at
/home/espindola/llvm/llvm/tools/lld/ELF/Driver.cpp:388
#6 0x0000000000552d64 in lld::elf::link (Args=..., CanExitEarly=true,
Error=...) at /home/espindola/llvm/llvm/tools/lld/ELF/Driver.cpp:85
#7 0x00000000004126cf in main (Argc=8, Argv=0x7fffffffdff8) at
/home/espindola/llvm/llvm/tools/lld/tools/lld/lld.cpp:104
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170512/427cf26e/attachment.html>
More information about the llvm-bugs
mailing list