[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: still struggling to produce the same flat binary with both 32 and 64
From: |
Alan Modra |
Subject: |
Re: still struggling to produce the same flat binary with both 32 and 64bit binutils tool chains |
Date: |
Fri, 8 Jan 2010 11:20:26 +1030 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
On Thu, Jan 07, 2010 at 08:01:12PM +0000, me wrote:
> As such I can't help feeling that all addresses should be based on the
> presumption that the start of the file is address 0.
Addresses usually don't start at zero. The start is set by your
linker script, which you can see by adding --verbose to the ld command
line. You can set the start to zero by adding -Ttext=0 or
-Ttext-segment=0 to the linker command line (depending on version of ld).
--
Alan Modra
Australia Development Lab, IBM