mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
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.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2020-11-23 Nick Alcock <nick.alcock@oracle.com>
|
||||||
|
|
||||||
|
* readelf.c (dump_section_as_ctf): Call ctf_arc_symsect_endianness.
|
||||||
|
|
||||||
2020-11-25 Alan Modra <amodra@gmail.com>
|
2020-11-25 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/binutils-all/nm.exp (ifunc): xfail more targets.
|
* testsuite/binutils-all/nm.exp (ifunc): xfail more targets.
|
||||||
|
@ -14758,6 +14758,9 @@ dump_section_as_ctf (Elf_Internal_Shdr * section, Filedata * filedata)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctf_arc_symsect_endianness (ctfa, filedata->file_header.e_ident[EI_DATA]
|
||||||
|
!= ELFDATA2MSB);
|
||||||
|
|
||||||
if (parentdata)
|
if (parentdata)
|
||||||
{
|
{
|
||||||
if ((parenta = ctf_arc_bufopen (&parentsect, symsectp, strsectp,
|
if ((parenta = ctf_arc_bufopen (&parentsect, symsectp, strsectp,
|
||||||
|
Reference in New Issue
Block a user