[PATCH 4/6] aix: correct HOWTO table and add missing relocations
CHIGOT, CLEMENT
clement.chigot@atos.net
Tue Feb 16 09:57:48 GMT 2021
Since the last time AIX HOWTO table was modified, IBM has now
released an official documentation about XCOFF relocations.
This commit corrects the wrong ones and add some missing.
For now, the "custom" relocations made for xcoff_rtype2howto have
been kept.
The new relocations are still set as EMPTY_HOWTO because they will
be implemented in later commits.
In xcoff[64]_ppc_relocate_section, instead of recreating howto
from scratch, it's better to use the existing howto from the
table and fixing it according to r_size field.
bfd/ChangeLog:
2020-11-20 Clément Chigot <clement.chigot@atos.net>
* coff-rs6000.c (xcoff_calculate_relocation): Correct and
add new relocations.
(xcoff_howto_table): Likewise.
(xcoff_rtype2howto): Increase r_type maximum value possible.
(xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
of create a new one from scratch. Enable only some relocations
to have a changing r_size.
* coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
(xcoff64_howto_table): Likewise.
(xcoff64_rtype2howto): Likewise.
(xcoff64_reloc_type_br): Moved.
(xcoff64_ppc_relocate_section): Moved and reuse predefined HOWTOs.
* libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
binutils/ChangeLog:
2020-11-20 Clément Chigot <clement.chigot@atos.net>
* od-xcoff.c: Replace RTB by TRL entry.
include/ChangeLog:
2020-11-20 Clément Chigot <clement.chigot@atos.net>
* coff/xcoff.h (R_RTB): Removed.
(R_TRL): Fix value.
Clément Chigot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-aix-correct-HOWTO-table-and-add-missing-relocations.patch
Type: application/octet-stream
Size: 71179 bytes
Desc: 0004-aix-correct-HOWTO-table-and-add-missing-relocations.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20210216/8f28deb3/attachment-0001.obj>
More information about the Binutils
mailing list