forked from OSchip/llvm-project
03e1c8b8f9
Commit e4507fb8c94b ("bpf: disable DwarfUsesRelocationsAcrossSections") disables MCAsmInfo DwarfUsesRelocationsAcrossSections unconditionally so that dwarf will not use cross section (between dwarf and symbol table) relocations. This new debug format enables pahole to dump structures correctly as libdwarves.so does not have BPF backend support yet. This new debug format, however, breaks bcc (https://github.com/iovisor/bcc) source debug output as llvm in-memory Dwarf support has some issues to handle it. More specifically, with DwarfUsesRelocationsAcrossSections disabled, JIT compiler does not generate .debug_abbrev and Dwarf DIE (debug info entry) processing is not happy about this. This patch introduces a new flag -mattr=dwarfris (dwarf relocation in section) to disable DwarfUsesRelocationsAcrossSections. DwarfUsesRelocationsAcrossSections is true by default. Signed-off-by: Yonghong Song <yhs@fb.com> llvm-svn: 326505 |
||
---|---|---|
.. | ||
BPFAsmBackend.cpp | ||
BPFELFObjectWriter.cpp | ||
BPFMCAsmInfo.h | ||
BPFMCCodeEmitter.cpp | ||
BPFMCTargetDesc.cpp | ||
BPFMCTargetDesc.h | ||
CMakeLists.txt | ||
LLVMBuild.txt |