Reloc question
Doug Evans
dje@transmeta.com
Thu Jan 25 10:58:00 GMT 2001
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.
More information about the Binutils
mailing list