[dsymutil] Add support for linking the debug_frame section.
authorFrederic Riss <friss@apple.com>
Fri, 5 Jun 2015 23:06:11 +0000 (23:06 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 5 Jun 2015 23:06:11 +0000 (23:06 +0000)
commit9ccf07fb89aebec828e7b2848ee402fdcefee1af
treed631b3cabb063367beb96aa10e7a44fad79d9547
parenta37c5249121c2969c2e955ab0961c7a5da2a01e7
[dsymutil] Add support for linking the debug_frame section.

Linking the debug frame section is actually very easy as we just have to
patch the start address in the FDE header and then copy the rest of the
FDE without even looking at it. The only small complexity comes from the
handling of the CIEs that we should unique across object file. This is
also really easy by using a StringMap keyed on the raw contents of the
CIE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239198 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/Inputs/frame-dw2.ll [new file with mode: 0644]
test/tools/dsymutil/Inputs/frame-dw4.ll [new file with mode: 0644]
test/tools/dsymutil/Inputs/frame.c [new file with mode: 0644]
test/tools/dsymutil/X86/frame-1.test [new file with mode: 0644]
test/tools/dsymutil/X86/frame-2.test [new file with mode: 0644]
tools/dsymutil/DwarfLinker.cpp