[PATCH] D21552: [llvm-readobj] - Teach llvm-readobj to print dependencies of SHT_GNU_verdef and refactor dumping method.

Xing via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 30 06:26:31 PST 2018


Higuoxing added inline comments.


================
Comment at: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp:569
+      report_fatal_error("at least one definition string must exist");
+    if (VD->vd_cnt > 2)
+      report_fatal_error("more than one predecessor is not expected");
----------------
Higuoxing wrote:
> Higuoxing wrote:
> > Hi, I am curious about why the Parents/Predecessor more than one. According to https://akkadia.org/drepper/symbol-versioning 
> > 
> > >  `vda_next` byte offset to the next Elfxx_Verdaux entry.  The first entry (pointed to by the Elfxx_Verdef entry, contains the actual defined name.  The second and all later entries name predecessor versions.
> > 
> > Feel free to ignore me :) just out of curiosity
> Besides, `gnu-readelf` could print multiple parents
Sorry, I am curious about why the Parents/Predecessor *cannot be* more than one.

You could use my patch to make a simple test, if needed

https://reviews.llvm.org/D54867

feel free to ignore me :)


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D21552/new/

https://reviews.llvm.org/D21552





More information about the llvm-commits mailing list