obj2yaml, COFF: Handle long section names
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 10 Oct 2014 00:17:57 +0000 (00:17 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 10 Oct 2014 00:17:57 +0000 (00:17 +0000)
commit54a3b749e19968fadbbdf021bf9c1b2d3affa04a
tree5949f341db8e820f4681326841d774e779bd1f29
parent0ffdb31af02791f0be70c546fc66b46d4eb12517
obj2yaml, COFF: Handle long section names

Long section names are represented as a slash followed by a numeric
ASCII string.  This number is an offset into a string table.

Print the appropriate entry in the string table instead of the less
enlightening /4.

N.B.  yaml2obj already does the right thing, this test exercises both
sides of the (de-)serialization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219458 91177308-0d34-0410-b5e6-96231b3b80d8
test/Object/Inputs/COFF/long-section-name.yaml [new file with mode: 0644]
test/Object/obj2yaml-coff-long-section-name.test [new file with mode: 0644]
tools/obj2yaml/coff2yaml.cpp