[PATCH] bfd: harmonize and improve auxiliary entries support for XCOFF
CHIGOT, CLEMENT
clement.chigot@atos.net
Wed Apr 21 13:38:45 GMT 2021
The reading and the writing of auxialiry entries was built upon COFF
version, even if some parts don't make sense on XCOFF.
This commit reworks the swap_aux_in and swap_aux_out functions for
both XCOFF32 and XCOFF64 to match the offical documentation.
The external representation was changed but not the internal as it is
common to all COFF systems.
At the same time, add support for C_DWARF auxiliary entries.
bfd/ChangeLog:
2021-04-21 Clément Chigot <clement.chigot@atos.net>
* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for
unsupported storage class or auxialiry entries.
Improve and adapt to new aux structures.
Add C_DWARF support.
(_bfd_xcoff_swap_aux_out): Likewise.
* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise.
(_bfd_xcoff64_swap_aux_out): Likewise.
binutils/ChangeLog:
2021-04-21 Clément Chigot <clement.chigot@atos.net>
* od-xcoff.c (dump_xcoff32_symbols): Adapt to new
aux structures.
include/ChangeLog:
2021-04-21 Clément Chigot <clement.chigot@atos.net>
* coff/internal.h (union internal_auxent):
Add x_sect structure.
* coff/rs6000.h (union external_auxent): Rework to
match official documentation.
* coff/rs6k64.h (union external_auxent): Likewise.
(_AUX_SECT): New define.
Please apply if approved.
Thanks,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bfd-harmonize-and-improve-auxiliary-entries-support-.patch
Type: application/octet-stream
Size: 26579 bytes
Desc: 0001-bfd-harmonize-and-improve-auxiliary-entries-support-.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20210421/95f1a88a/attachment-0001.obj>
More information about the Binutils
mailing list