This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: R_EMB_PPC_SDA21 (powerpc reloc) question
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