This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: IA-32 gas _GLOBAL_OFFSET_TABLE_ handling bugs


On Wed, Jul 31, 2002 at 06:37:30PM -0700, Roland McGrath wrote:
> That seems like an odd way to characterize it to me.  The meaning of .
> and of the arithmetic is perfectly sane and normal here.  What is bizarre
> is that (because of the magic symbol name) we produce a PC relative reloc
> in this instruction.  Like any PC-relative reloc, the value being computed
> is relative to the start of the instruction, but the location the reloc
> applies to is a byte or two into the instruction where the immediate sits.
> The . always means "start of this instruction", but the final value stuck
> into the immediate slot needs to account for the distance between the
> start of the instruction and the start of the immediate.

You're correct.  I spoke without thinking.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]