[all-commits] [llvm/llvm-project] 51f495: [yaml2obj/obj2yaml] - Improve dumping/creating of ...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Wed Jan 20 23:55:57 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 51f4958057d6c246e85c3fbc65353bc0d7c1049b
https://github.com/llvm/llvm-project/commit/51f4958057d6c246e85c3fbc65353bc0d7c1049b
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2021-01-21 (Thu, 21 Jan 2021)
Changed paths:
M lld/test/ELF/invalid/verneed-shared.test
M llvm/include/llvm/ObjectYAML/ELFYAML.h
M llvm/lib/ObjectYAML/ELFEmitter.cpp
M llvm/lib/ObjectYAML/ELFYAML.cpp
M llvm/test/Object/invalid.test
M llvm/test/tools/llvm-objdump/ELF/verdef.test
M llvm/test/tools/llvm-objdump/ELF/verneed.test
M llvm/test/tools/llvm-readobj/ELF/all.test
M llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
M llvm/test/tools/llvm-readobj/ELF/hidden-versym.test
M llvm/test/tools/llvm-readobj/ELF/merged.test
M llvm/test/tools/llvm-readobj/ELF/reloc-symbol-with-versioning.test
M llvm/test/tools/llvm-readobj/ELF/section-types.test
M llvm/test/tools/llvm-readobj/ELF/verdef-invalid.test
M llvm/test/tools/llvm-readobj/ELF/verneed-flags.yaml
M llvm/test/tools/llvm-readobj/ELF/verneed-invalid.test
M llvm/test/tools/llvm-readobj/ELF/versioninfo.test
M llvm/test/tools/llvm-readobj/ELF/versym-invalid.test
M llvm/test/tools/obj2yaml/ELF/verdef-section.yaml
M llvm/test/tools/obj2yaml/ELF/verneed-section.yaml
M llvm/test/tools/yaml2obj/ELF/override-shname.yaml
M llvm/test/tools/yaml2obj/ELF/override-shoffset.yaml
M llvm/test/tools/yaml2obj/ELF/override-shsize.yaml
M llvm/test/tools/yaml2obj/ELF/override-shtype.yaml
M llvm/test/tools/yaml2obj/ELF/verdef-section.yaml
M llvm/test/tools/yaml2obj/ELF/verneed-section.yaml
M llvm/test/tools/yaml2obj/ELF/versym-section.yaml
M llvm/tools/obj2yaml/elf2yaml.cpp
Log Message:
-----------
[yaml2obj/obj2yaml] - Improve dumping/creating of ELF versioning sections.
This makes the following improvements.
For `SHT_GNU_versym`:
* yaml2obj: set `sh_link` to index of `.dynsym` section automatically.
For `SHT_GNU_verdef`:
* yaml2obj: set `sh_link` to index of `.dynstr` section automatically.
* yaml2obj: set `sh_info` field automatically.
* obj2yaml: don't dump the `Info` field when its value matches the number of version definitions.
For `SHT_GNU_verneed`:
* yaml2obj: set `sh_link` to index of `.dynstr` section automatically.
* yaml2obj: set `sh_info` field automatically.
* obj2yaml: don't dump the `Info` field when its value matches the number of version dependencies.
Also, simplifies few test cases.
Differential revision: https://reviews.llvm.org/D94956
More information about the All-commits
mailing list