[PATCH] D58280: [yaml2obj][obj2yaml] - Support SHT_GNU_versym (.gnu.version) section.
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 19 02:08:07 PST 2019
jhenderson accepted this revision.
jhenderson added a comment.
This revision is now accepted and ready to land.
LGTM, with two small comments.
================
Comment at: tools/yaml2obj/yaml2elf.cpp:563
+
+ auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign);
+ for (uint16_t V : Section.Entries) {
----------------
I don't know what the type here is, so best not to use auto, I think.
================
Comment at: tools/yaml2obj/yaml2elf.cpp:565
+ for (uint16_t V : Section.Entries) {
+ Elf_Half Version = (Elf_Half)V;
+ OS.write((const char *)&Version, sizeof(Elf_Half));
----------------
Do you need this cast here? It looks superfluous.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58280/new/
https://reviews.llvm.org/D58280
More information about the llvm-commits
mailing list