[PATCH] D95140: [yaml2obj, obj2yaml] - Implement section header table as a special Chunk.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 21 07:45:43 PST 2021


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, hiraditya, emaste.
grimar requested review of this revision.
Herald added a project: LLVM.

This was discussed in D93678 <https://reviews.llvm.org/D93678> thread.
Currently we have one special chunk - Fill.

This patch re implements the "SectionHeaderTable" key to become a special chunk too.
With that we are able to place the section header table at any location,
just like we place sections.


https://reviews.llvm.org/D95140

Files:
  llvm/include/llvm/ObjectYAML/ELFYAML.h
  llvm/lib/ObjectYAML/ELFEmitter.cpp
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/test/Object/obj2yaml.test
  llvm/test/tools/llvm-readobj/ELF/broken-dynamic-reloc.test
  llvm/test/tools/llvm-readobj/ELF/dynamic-reloc-no-section-headers.test
  llvm/test/tools/llvm-readobj/ELF/file-headers.test
  llvm/test/tools/llvm-readobj/ELF/hash-table.test
  llvm/test/tools/llvm-readobj/ELF/malformed-pt-dynamic.test
  llvm/test/tools/llvm-readobj/ELF/symtab-shndx.test
  llvm/test/tools/obj2yaml/ELF/offset.yaml
  llvm/test/tools/yaml2obj/ELF/section-headers-exclude.yaml
  llvm/test/tools/yaml2obj/ELF/section-headers.yaml
  llvm/test/tools/yaml2obj/ELF/verdef-section.yaml
  llvm/test/tools/yaml2obj/ELF/verneed-section.yaml
  llvm/test/tools/yaml2obj/ELF/versym-section.yaml
  llvm/tools/obj2yaml/elf2yaml.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95140.318206.patch
Type: text/x-patch
Size: 49191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210121/5951f417/attachment.bin>


More information about the llvm-commits mailing list