[PATCH 1/2] bfd: remove wrong relocations in .loader section for XCOFF

CHIGOT, CLEMENT clement.chigot@atos.net
Mon Apr 19 08:20:29 GMT 2021


The AIX loader doesn't allow R_POS or R_NEG relocations in a read-only
csect.

bfd/ChangeLog:
2021-04-09  Clément Chigot  <clement.chigot@atos.net>

	* xcofflink.c (xcoff_need_ldrel_p): Check output section
	for R_POS-like relocations. New argument added.
	(xcoff_mark): Adapt to new xcoff_need_ldrel_p argument.
	(xcoff_link_input_bfd): Likewise.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bfd-remove-wrong-relocations-in-.loader-section-for-.patch
Type: application/octet-stream
Size: 2328 bytes
Desc: 0001-bfd-remove-wrong-relocations-in-.loader-section-for-.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20210419/35ec5f5f/attachment-0001.obj>


More information about the Binutils mailing list