Bug ID 45869
Summary ELF debug sections relocation not implemented for 32bit targets
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter omair.javaid@linaro.org
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
Following tests fail on arm-linux-gnueabihf with lldb crashing with an
assertion
caused by
Line 2584,2592 lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
if (hdr->Is32Bit()) {
switch (reloc_type(rel)) {
case R_386_32:
case R_386_PC32:
default:
// FIXME: This asserts with this input:
//
// foo.cpp
// int main(int argc, char **argv) { return 0; }
//
// clang++.exe --target=i686-unknown-linux-gnu -g -c foo.cpp -o foo.o
//
// and running this on the foo.o module.
assert(false && "unexpected relocation type");
}
}