Fix Relocs for x86-64
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Sun Mar 11 07:25:00 GMT 2001
> From: Andreas Jaeger <aj@suse.de>
> Date: 10 Mar 2001 10:02:48 +0100
> Hans-Peter Nilsson <hans-peter.nilsson@axis.com> writes:
> > [C comment for relocate_section elided]
>
> That description looks fine. What do others think? I'm in favour of
> including it for x86-64.
I actually hoped to lure you into adding more comments like
that, for the nontrivial condition parts above that one, on the
assumption that you had it in fresh memory. :-)
I believe those conditions can be replaced with
(sec->output_section == NULL && (sec->owner->flags & DYNAMIC) != 0)
for x64-64 as well as all targets with a lookalike
relocate_section.
I might forget some tricky cases; I would be happy to know.
brgds, H-P
More information about the Binutils
mailing list