[PATCH] D91249: [obj2yaml] - Sort sections by file offsets when dumping them.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 11 04:09:28 PST 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added a subscriber: emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
grimar requested review of this revision.

Currently when we dump sections, we dump them in the order,
which is specified in the sections header table.

With that the order in the output might not match the order in the file.
This patch starts sorting them by by file offsets when dumping.

Depends on D91152 <https://reviews.llvm.org/D91152>


https://reviews.llvm.org/D91249

Files:
  llvm/test/tools/obj2yaml/ELF/offset.yaml
  llvm/test/tools/obj2yaml/ELF/section-headers.yaml
  llvm/tools/obj2yaml/elf2yaml.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91249.304472.patch
Type: text/x-patch
Size: 3752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201111/cfc4efb5/attachment.bin>


More information about the llvm-commits mailing list