[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 12 07:24:25 PST 2019


grimar created this revision.
grimar added reviewers: ruiu, jhenderson.
Herald added a subscriber: jakehehrlich.

The section is described here:
https://refspecs.linuxfoundation.org/LSB_1.3.0/gLSB/gLSB/symverdefs.html

Patch just teaches obj2yaml/yaml2obj to dump and parse such sections.

We did the finalization of string tables very late,
and I had to move the logic to make it a bit earlier.
That was needed in this patch since .gnu.version_r adds strings to .dynsym.
This also probably might be useful for implementing other special sections.

Everything else changed in this patch seems to be straightforward.


https://reviews.llvm.org/D58119

Files:
  include/llvm/ObjectYAML/ELFYAML.h
  lib/ObjectYAML/ELFYAML.cpp
  test/tools/obj2yaml/verdef-section.yaml
  test/tools/yaml2obj/verdef-section.yaml
  tools/obj2yaml/elf2yaml.cpp
  tools/yaml2obj/yaml2elf.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58119.186461.patch
Type: text/x-patch
Size: 17363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190212/7c2c63bb/attachment.bin>


More information about the llvm-commits mailing list