This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: 64bit bfd_vma vs 32bit address space in linker
On Apr 8, 2003, Alan Modra <amodra at bigpond dot net dot au> wrote:
> Without looking in detail at the code, I believe that bits_per_address
> is exactly the right thing to use to implement the (currently missing
> when BFD64) linker address wrap.
I'm afraid it isn't. Consider 32-bit code (say o32) running on a
64-bit architecture (MIPS III). You do want to truncate addresses to
32 bits, since the ABI mandates 32-bit addresses, but bits_per_address
will return 64.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist Professional serial bug killer