AArch64's Setting DT_TEXTREL Is too Strict.
Alan Modra
amodra@gmail.com
Thu Aug 13 11:16:00 GMT 2015
On Thu, Aug 13, 2015 at 05:01:16PM +0800, lin zuojian wrote:
> I find that on aarch64, DT_TEXTREL is set in dynamic section when my
> object just has read-only section relocation. On
[snip]
> Would it be better to change this to .text section only?
No. DT_TEXTREL (or DF_TEXTREL) should be set if any section that maps
to a read-only PT_LOAD segment, has a dynamic relocation.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list