Adjusting value of _SDA_BASE_

Momchil Velikov velco@fadata.bg
Sun Feb 18 14:06:00 GMT 2001


>>>>> "Geoff" == Geoff Keating <geoffk@geoffk.org> writes:

>> From: Momchil Velikov <velco@fadata.bg>
>> Date: 18 Feb 2001 19:49:11 +0200

>> This patch adjust the values of _SDA_BASE_ and _SDA2_BASE_ so the
>> symbols in small data sections are within range.

Geoff> Can you explain why this patch is needed?  _SDA_BASE_ is normally
Geoff> chosen to have the maximum possible range anyway.

_SDA_BASE_ is created at offset 32768 from the beginning of
the linker created `.sdata'. If this section is at `output_offset'
greater that zero the data items at the beginnig of the output
`.sdata' section become inaccessible.  

Regards,
-velco



More information about the Binutils mailing list