Why does ELF/alpha put none-text relocations in .rela.text?

H . J . Lu hjl@lucon.org
Mon Aug 20 15:46:00 GMT 2001


On Mon, Aug 20, 2001 at 03:03:28PM -0700, Richard Henderson wrote:
> On Mon, Aug 20, 2001 at 11:44:19AM -0700, H . J . Lu wrote:
> >  00000000  200569c000000006 R_ALPHA_GPDISP        bad symbol index: 200569c0
> > 
> > How should we fix it?
> 
> The symbol for GPDISP is completely irrelevant.  Only the offset
> is meaningful.  Use the current section symbol rather than a
> random section symbol.

But it is a bad idea to use the debug section symbol since it may
be removed.


H.J.



More information about the Binutils mailing list