[all-commits] [llvm/llvm-project] 5b118a: [yaml2obj] - Improve handling of the SHT_GROUP sec...

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


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

  Changed paths:
    M llvm/include/llvm/ObjectYAML/ELFYAML.h
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/lib/ObjectYAML/ELFYAML.cpp
    M llvm/test/tools/yaml2obj/duplicate-section-names.test
    M llvm/test/tools/yaml2obj/elf-comdat-broken-info.yaml
    M llvm/test/tools/yaml2obj/elf-comdat-broken-members.yaml
    M llvm/test/tools/yaml2obj/elf-comdat-broken.yaml
    M llvm/test/tools/yaml2obj/elf-override-shname.yaml
    M llvm/test/tools/yaml2obj/elf-override-shoffset.yaml
    M llvm/test/tools/yaml2obj/elf-override-shsize.yaml
    M llvm/test/tools/yaml2obj/section-link.yaml

  Log Message:
  -----------
  [yaml2obj] - Improve handling of the SHT_GROUP section.

Currently, when we do not specify "Info" field in a YAML description
for SHT_GROUP section, yaml2obj reports an error:
"error: unknown symbol referenced: '' by YAML section '.group1'"

Also, we do not link it with a symbol table by default,
though it is what we do for AddrsigSection, HashSection, RelocationSection.
(http://www.sco.com/developers/gabi/latest/ch4.sheader.html#sh_link)

The patch fixes missings mentioned.

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




More information about the All-commits mailing list