aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2018-03-01 23:04:59 +0000
committerYonghong Song <yhs@fb.com>2018-03-01 23:04:59 +0000
commit03e1c8b8f9cc7b898217b7789d3887a903443c93 (patch)
treeb445d1ddddcfc270469f63fe1bbca810477d4c88 /clang/lib/Frontend/CompilerInvocation.cpp
parentb3ee432b6b1199f73d45423ce7450ca4348946bf (diff)
downloadllvm-03e1c8b8f9cc7b898217b7789d3887a903443c93.zip
llvm-03e1c8b8f9cc7b898217b7789d3887a903443c93.tar.gz
llvm-03e1c8b8f9cc7b898217b7789d3887a903443c93.tar.bz2
bpf: introduce -mattr=dwarfris to disable DwarfUsesRelocationsAcrossSections
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions