Large data sections support
Richard Henderson
rth@redhat.com
Mon Jun 13 05:17:00 GMT 2005
On Sun, Jun 12, 2005 at 09:16:51PM -0700, H. J. Lu wrote:
> I guess I may have missed may details. Could someone please point
> me to the information why .ldata/.lbss/.lrodata are needed?
We use rip-relative access to most data. This has a 32-bit
signed offset. If you want to support more than 2GB worth
of static data, you need to use a different addressing mode.
In order to not penalize the entire application, some data is
still accessed via 32-bit offsets (the bits in .data). Thus
we need a way to separate the data that's accessed via 64-bit
operations and those accessed via 32-bit operations.
r~
More information about the Binutils
mailing list