Bloated binaries following the use of AT(...) linker script command

Alan Modra amodra@bigpond.net.au
Tue Jun 16 11:34:00 GMT 2009


On Mon, Jun 15, 2009 at 08:10:51PM -0700, Prasad B wrote:
> Thanks Alan for the response. I changed the value to a 32-bit one and
> the problem persists.
> 
> PHDRS {
>     text PT_LOAD AT(0x81000000) FLAGS(7);   /* RWX */
>     note PT_NOTE FLAGS(4);  /* R__ */
> }

Sorry, I should have looked properly at what you were trying to do
before my first reply..  AT in PHDRS specifies the load address of
the segment, but doesn't change the load address of sections
assigned to that segment.  No doubt your section load addresses are a
long way from 0x81000000, so the segment contains a lot of zeros.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list