[all-commits] [llvm/llvm-project] 60df7c: [obj2yaml, yaml2obj] - Fix issues with creating/dum...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Tue Jan 12 03:12:31 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 60df7c08b1f4447309c0c07fec1c8bc7267562fc
https://github.com/llvm/llvm-project/commit/60df7c08b1f4447309c0c07fec1c8bc7267562fc
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2021-01-12 (Tue, 12 Jan 2021)
Changed paths:
M llvm/lib/ObjectYAML/ELFEmitter.cpp
M llvm/test/tools/obj2yaml/ELF/section-group.yaml
M llvm/test/tools/yaml2obj/ELF/group.yaml
M llvm/tools/obj2yaml/elf2yaml.cpp
Log Message:
-----------
[obj2yaml,yaml2obj] - Fix issues with creating/dumping group sections.
We have the following issues related to group sections:
1) yaml2obj is unable to set the custom `sh_entsize` value, because the `EntSize`
key is currently ignored.
2) obj2yaml is unable to dump the group section which `sh_entsize != 4`.
3) obj2yaml always dumps the "EntSize" for group sections, though
usually we are trying to omit dumping default values when dumping keys.
I.e. we should not print the "EntSize" key when `sh_entsize` == 4.
This patch fixes (1),(3) and adds the test case to document the behavior of (2).
Differential revision: https://reviews.llvm.org/D93854
More information about the All-commits
mailing list