[COFF] Map truncated .eh_frame section name
authorMartin Storsjo <martin@martin.st>
Sat, 8 Dec 2018 18:15:41 +0000 (18:15 +0000)
committerMartin Storsjo <martin@martin.st>
Sat, 8 Dec 2018 18:15:41 +0000 (18:15 +0000)
commite3093808fb00e01bb1acae542f271f4c802e69b1
treeea2f6523e5c5ed385f2e438b42fff79a8923e848
parent83b0754586207a6475c6ecd2c4404802f13ba86c
[COFF] Map truncated .eh_frame section name

PE/COFF sections can have section names truncated to 8 chars, in order to
have the name available at runtime. (The string table, where long untruncated
names are stored, isn't loaded at runtime.)

This allows various llvm tools to dump the .eh_frame section from such
executables.

Patch by Peiyuan Song!

Differential Revision: https://reviews.llvm.org/D55407

llvm-svn: 348708
llvm/include/llvm/Object/COFF.h
llvm/lib/Object/COFFObjectFile.cpp
llvm/test/tools/llvm-objdump/Inputs/eh_frame-coff.yaml [new file with mode: 0644]
llvm/test/tools/llvm-objdump/eh_frame-coff.test [new file with mode: 0644]