This fixes https://bugs.llvm.org/show_bug.cgi?id=48670.
Since binutils 2.35, nm -D displays symbol versions by default.
This patch teaches llvm-nm to do the same.
Differential D94907
[llvm-nm][ELF] - Make -D display symbol versions. grimar on Jan 18 2021, 4:29 AM. Authored by
Details This fixes https://bugs.llvm.org/show_bug.cgi?id=48670. Since binutils 2.35, nm -D displays symbol versions by default.
Diff Detail
Event Timeline
Comment Actions As our downstream toolchain doesn't use symbol versioning, I'm not really familiar enough with this to review the details (and don't have the time to read back up on it currently), so you'll need @MaskRay or someone else to give input too.
|
Note: I think we should print @@ for default versions and @ for hidden versions.
It is not what GNU nm does, but it would be more consistent with other tools that print versioned symbols.
I am going to post a follow-up patch for this.