[all-commits] [llvm/llvm-project] 86e652: [yaml2obj] - Add a way to override sh_flags sectio...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Fri Dec 13 00:55:10 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 86e652f8284d44c0e3fa9b27421a671e89bfe0a0
      https://github.com/llvm/llvm-project/commit/86e652f8284d44c0e3fa9b27421a671e89bfe0a0
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2019-12-13 (Fri, 13 Dec 2019)

  Changed paths:
    M llvm/include/llvm/ObjectYAML/ELFYAML.h
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/lib/ObjectYAML/ELFYAML.cpp
    A llvm/test/tools/yaml2obj/ELF/override-shflags.yaml

  Log Message:
  -----------
  [yaml2obj] - Add a way to override sh_flags section field.

Currently we have the `Flags` property that allows to
set flags for a section. The problem is that it does not
allow us to set an arbitrary value, because of bit fields
validation under the hood. An arbitrary values can be used
to test specific broken cases.

We probably do not want to relax the validation, so this
patch adds a `ShSize` property that allows to
override the `sh_size`. It is inline with others `Sh*` properties
we have already.

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




More information about the All-commits mailing list