[COFF] Map truncated .eh_frame section name
commit0f6ce82bae2d042a1d11220781e68dc3bea36640
authorMartin Storsjo <martin@martin.st>
Sat, 8 Dec 2018 18:15:41 +0000 (8 18:15 +0000)
committerMartin Storsjo <martin@martin.st>
Sat, 8 Dec 2018 18:15:41 +0000 (8 18:15 +0000)
tree4cae26eaeb555276ba86fd8160537218593320d7
parent5d35502198f606582d6d21587e970abade746d0f
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348708 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
lib/Object/COFFObjectFile.cpp
test/tools/llvm-objdump/Inputs/eh_frame-coff.yaml [new file with mode: 0644]
test/tools/llvm-objdump/eh_frame-coff.test [new file with mode: 0644]