[PATCH v2] bfd/elfnn-aarch64.c: Fix calculation of DT_RELASZ
Marcus Shawcroft
marcus.shawcroft@gmail.com
Tue Mar 25 07:39:00 GMT 2014
On 20 March 2014 15:46, Will Newton <will.newton@linaro.org> wrote:
> The current code subtracts the size of the output section containing
> relplt from RELASZ. In some cases this will be the same output
> section as the dynamic relocs causing a value of zero to be output.
> Calculating the size from input sections seems to make more sense.
>
> bfd/ChangeLog:
>
> 2014-03-20 Will Newton <will.newton@linaro.org>
>
> * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections):
> Set value of DT_PLTRELSZ and DT_RELASZ based on the size
> of input sections rather than output sections.
OK, go ahead, thanks Will. /Marcus
More information about the Binutils
mailing list