[all-commits] [llvm/llvm-project] fcf628: [yaml2obj] - Improve handling of SectionHeaderTabl...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Thu Oct 29 02:17:38 PDT 2020


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

  Changed paths:
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/test/tools/llvm-readobj/ELF/malformed-pt-dynamic.test
    M llvm/test/tools/yaml2obj/ELF/section-headers.yaml

  Log Message:
  -----------
  [yaml2obj] - Improve handling of SectionHeaderTable::NoHeaders flag.

When `NoHeaders` is set, we still have following issues:
1) We emit the `.shstrtab` implicit section of size 1 (empty string table).
2) We still align the start of the section header table, what affects the output size.
3) We still write section header table bytes.

This patch fixes all of these issues.

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




More information about the All-commits mailing list