This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Large data sections support


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]