[PATCH] D104035: [yaml2obj][obj2yaml] Support custom ELF section header string table name
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 10 07:48:07 PDT 2021
jhenderson created this revision.
jhenderson added reviewers: grimar, Higuoxing, MaskRay.
Herald added subscribers: hiraditya, emaste.
jhenderson requested review of this revision.
Herald added a project: LLVM.
This patch adds support for a new field in the FileHeader, which states the name to use for the section header string table. This also allows combining the string table with another string table in the object, e.g. the symbol name string table. The field is optional. By default, .shstrtab will continue to be used.
This partially fixes https://bugs.llvm.org/show_bug.cgi?id=50506.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104035
Files:
llvm/include/llvm/ObjectYAML/ELFYAML.h
llvm/lib/ObjectYAML/ELFEmitter.cpp
llvm/lib/ObjectYAML/ELFYAML.cpp
llvm/test/tools/obj2yaml/ELF/invalid-section-name.yaml
llvm/test/tools/obj2yaml/ELF/shstrtab.yaml
llvm/test/tools/yaml2obj/ELF/shstrtab.yaml
llvm/tools/obj2yaml/elf2yaml.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104035.351173.patch
Type: text/x-patch
Size: 48276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210610/cd2aac08/attachment.bin>
More information about the llvm-commits
mailing list