R_EMB_PPC_SDA21 (powerpc reloc) question

Alan Modra amodra@bigpond.net.au
Wed Feb 19 07:19:00 GMT 2003


On Tue, Feb 18, 2003 at 09:32:14PM -0800, Till Straumann wrote:
> One problem is how to obtain the _SDA_BASE_ and _SDA2_BASE_

This sort of problem (ie. needing information not easily accessible
via the special_function interface) is one reason why people don't
write the functions..

>  2) assume the caller stores it int symbol->section->symbol->value

Just use section->output_section->vma + section->output_offset, where
"section" is the .sdata or .sdata2 input section as appropriate.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list