[all-commits] [llvm/llvm-project] 6d3098: [obj2yaml, yaml2obj] - Refine how we set/dump the s...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Jan 13 00:53:38 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d3098e7ff968ad7d3033d7751af05a1fcd2ed9b
      https://github.com/llvm/llvm-project/commit/6d3098e7ff968ad7d3033d7751af05a1fcd2ed9b
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2021-01-13 (Wed, 13 Jan 2021)

  Changed paths:
    M llvm/include/llvm/ObjectYAML/ELFYAML.h
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/test/Object/obj2yaml.test
    M llvm/test/tools/obj2yaml/ELF/call-graph-profile-section.yaml
    M llvm/test/tools/obj2yaml/ELF/mips-abi-flags.yaml
    M llvm/test/tools/obj2yaml/ELF/sht-symtab-shndx.yaml
    M llvm/test/tools/obj2yaml/ELF/versym-section.yaml
    M llvm/test/tools/yaml2obj/ELF/arm-exidx-section.yaml
    M llvm/tools/obj2yaml/elf2yaml.cpp

  Log Message:
  -----------
  [obj2yaml,yaml2obj] - Refine how we set/dump the sh_entsize field.

This reuses the code from yaml2obj (moves it to ELFYAML.h).
With it we can set the `sh_entsize` in a single place in `obj2yaml`.

Note that it also fixes a bug of `yaml2obj`: we do not
set the `sh_entsize` field for the `SHT_ARM_EXIDX` section properly.

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




More information about the All-commits mailing list