[all-commits] [llvm/llvm-project] ea8c8a: [obj2yaml] - Teach tool to emit the "SectionHeader...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Tue Dec 1 02:12:00 PST 2020
Branch: refs/heads/temp-test-main
Home: https://github.com/llvm/llvm-project
Commit: ea8c8a50976fd5b9ca9799414bd3c412fce37f03
https://github.com/llvm/llvm-project/commit/ea8c8a50976fd5b9ca9799414bd3c412fce37f03
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-12-01 (Tue, 01 Dec 2020)
Changed paths:
M llvm/lib/ObjectYAML/ELFYAML.cpp
M llvm/test/Object/X86/obj2yaml-dup-section-name.s
M llvm/test/Object/obj2yaml.test
M llvm/test/tools/obj2yaml/ELF/offset.yaml
M llvm/tools/obj2yaml/elf2yaml.cpp
Log Message:
-----------
[obj2yaml] - Teach tool to emit the "SectionHeaderTable" key and sort sections by file offset.
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.
When the order in the section header table doesn't match the order
in the file, we should emit the "SectionHeaderTable" key. This patch does it.
Differential revision: https://reviews.llvm.org/D91249
More information about the All-commits
mailing list