[lld] [llvm] [llvm-readobj][ELF] Test multivalued rpath entries and alter the output for readobj to emphasize the single valued nature of NEEDED, SONAME, USED etc. (PR #96562)
Mike Hommey via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 19:33:55 PDT 2024
glandium wrote:
> Ah, sorry, that was my mistake: the intent was this only impacted LLVM/JSON output. I didn't realise the code was shared with GNU style. @feg208, could you revert and look at redoing this to not impact GNU output, please? (GNU output should generally match GNU readelf output, for compatibility).
Can this be reverted?
> Aside: @kraj, if there are multiple e.g. NEEDED entries in an ELF, does GNU readelf produce separate entries, each with a single-element list? If so, this feels like a bug in the GNU readelf tool to me, and I wonder if we could get the behaviour changed there to make more sense.
I don't think the brackets in the readelf output are ever to be interpreted as "this is a list of multiple values".
https://github.com/llvm/llvm-project/pull/96562
More information about the llvm-commits
mailing list