[all-commits] [llvm/llvm-project] 3fe7f1: [yaml2obj] - Make .symtab to be not mandatory sect...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Oct 29 01:49:31 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3fe7f1dcf44ced0648fd0aef2b33056bbee37881
      https://github.com/llvm/llvm-project/commit/3fe7f1dcf44ced0648fd0aef2b33056bbee37881
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2019-10-29 (Tue, 29 Oct 2019)

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

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

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.

Differential revision: https://reviews.llvm.org/D69260




More information about the All-commits mailing list