This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Reloc question
Alan Modra writes:
> On Thu, 25 Jan 2001, Richard Sandiford wrote:
>
> > Is it better to have a reloc refer to the operand that needs fixing up, or
> > to the instruction that contains it?
>
> Why would you want a reloc referring anywhere other than the word(s) that
> need relocating? Seems counter-intuitive to me, especially on variable
> instruction size cpus like x86.
cpus with complex addressing modes were _never_ at issue.
One data point is that if the reloc refers to the insn, you can do various
kinds of relaxation. Can't do that with just BFD_RELOC_{8,16,32}.
Whether that's at issue for the cpu in question I dunno.