[PATCH] D58119: [obj2yaml][yaml2obj] - Add support of parsing/dumping of the .gnu.version_r section.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 19 00:45:34 PST 2019
grimar marked an inline comment as done.
grimar added a comment.
In D58119#1401344 <https://reviews.llvm.org/D58119#1401344>, @jhenderson wrote:
> > That was needed in this patch since .gnu.version_r adds strings to .dynsym.
>
> I hope you're not adding any strings to .dynsym ;-)
That would be interesting behavior though.. Thanks! :)
================
Comment at: include/llvm/ObjectYAML/ELFYAML.h:186
+ std::vector<VerneedEntry> VerneedV;
+ llvm::yaml::Hex64 Info;
+
----------------
jhenderson wrote:
> `Info`? This section doesn't have anything to do with sh_info according to the specification (it uses sh_link to point at its string table).
Its mentioned in a general spec about sh_info/sh_link fields for sections,
see "Table 7-15 ELF sh_link and sh_info Interpretation":
https://docs.oracle.com/cd/E19683-01/816-1386/chapter6-94076/index.html
sh_info contains "The number of version dependencies within the section. ".
Both GNU and LLD linkers set this field.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58119/new/
https://reviews.llvm.org/D58119
More information about the llvm-commits
mailing list