[PATCH] D69260: [yaml2obj] - Make .symtab to be not mandatory section for SHT_REL[A] section.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 07:38:48 PDT 2019


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay, rupprecht.
Herald added subscribers: seiya, jakehehrlich, kbarton, arichardson, nemanjai, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: alexshap.
grimar added a parent revision: D69255: [obj2yaml] - Better dumping for relocations without symbols associated..
Herald added a subscriber: wuzish.

Before this change `.symtab` section was required for SHT_REL[A] section
declarations. yaml2obj automatically defined it in case when YAML document
did not have it.

With this change it is now possible to produce an object that
has a relocation section, but has no symbol table.

It simplifies the code and also it is inline with how we handle Link fields
for another special sections.

Depends on https://reviews.llvm.org/D69255.


https://reviews.llvm.org/D69260

Files:
  lib/ObjectYAML/ELFEmitter.cpp
  test/Object/invalid.test
  test/Object/objdump-sectionheaders.test
  test/tools/llvm-objcopy/ELF/no-symbol-relocation.test
  test/tools/llvm-readobj/all.test
  test/tools/llvm-readobj/elf-reloc-negative-addend-no-sym.test
  test/tools/obj2yaml/elf-ppc64-relocations.yaml
  test/tools/obj2yaml/no-symbol-reloc.test
  test/tools/obj2yaml/relocation-unsupported-machine.yaml
  test/tools/yaml2obj/reloc-sec-info-link.yaml
  test/tools/yaml2obj/reloc-sec-info.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69260.225881.patch
Type: text/x-patch
Size: 6261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191021/e6793b55/attachment.bin>


More information about the llvm-commits mailing list