binutils: readelf: support CTF dicts with non-native-endian symtabs
authorNick Alcock <nick.alcock@oracle.com>
Mon, 23 Nov 2020 21:30:24 +0000 (21:30 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 25 Nov 2020 19:11:35 +0000 (19:11 +0000)
commit96c61be508fa8fdef79f2f3f3b9140dd75b05207
tree78cb5c72415cba40655729a267263deec41df8ef
parent53651de80f811495262a5b17b774a486dd37b326
binutils: readelf: support CTF dicts with non-native-endian symtabs

Now we have a way to tell libctf what the endianness of the symtab is,
get readelf to use it.  (objdump doesn't need to do so, nor does ld,
because they both use BFD-aware mechanisms to open CTF dicts, so libctf
can automatically figure the symtab endianness out.)

binutils/ChangeLog
2020-11-23  Nick Alcock  <nick.alcock@oracle.com>

* readelf.c (dump_section_as_ctf): Call ctf_arc_symsect_endianness.
binutils/ChangeLog
binutils/readelf.c