[PATCH] D70251: [yaml2obj][COFF] Add support for extended relocation tables
Sergey Dmitriev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 14 09:38:38 PST 2019
sdmitriev created this revision.
sdmitriev added reviewers: jhenderson, MaskRay, mstorsjo.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
The tool does not correctly handle COFF sections with extended relocation tables (with IMAGE_SCN_LNK_NRELOC_OVFL bit set), this patch fixes this problem.
But I have cheated a bit in the test (to make it smaller) because extended relocation table is supposed to be used when the number of relocations exceeds 65534. Otherwise the test size would be pretty big.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70251
Files:
llvm/lib/ObjectYAML/COFFEmitter.cpp
llvm/test/tools/yaml2obj/coff-xrelocs.yaml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70251.229329.patch
Type: text/x-patch
Size: 4392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191114/c34ef30a/attachment.bin>
More information about the llvm-commits
mailing list