[all-commits] [llvm/llvm-project] d9afe8: [yaml2obj/obj2yaml] - Refine handling of SHT_GNU_v...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Fri Jan 15 01:47:58 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d9afe8588e49f1a2779ab1fe7ff2ec39e8d080fd
https://github.com/llvm/llvm-project/commit/d9afe8588e49f1a2779ab1fe7ff2ec39e8d080fd
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2021-01-15 (Fri, 15 Jan 2021)
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/obj2yaml/ELF/verdef-section.yaml
M llvm/test/tools/yaml2obj/ELF/verdef-section.yaml
M llvm/tools/obj2yaml/elf2yaml.cpp
Log Message:
-----------
[yaml2obj/obj2yaml] - Refine handling of SHT_GNU_verdef sections.
This patch:
1) Makes `Version`, `Flags`, `VersionNdx` and `Hash` fields to be `Optional<>`.
2) Disallows dumping version definitions that have `vd_version != 1`.
`vd_version` identifies the version of the structure itself.
(https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/symversion.html,
https://docs.oracle.com/cd/E19683-01/816-7777/chapter6-80869/index.html)
3) Stops dumping default values for `Version`, `Flags`, `VersionNdx` and `Hash` fields.
4) Refines testing.
Differential revision: https://reviews.llvm.org/D94659
More information about the All-commits
mailing list