This is the mail archive of the binutils@sourceware.org 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: Bloated binaries following the use of AT(...) linker script command


On Tue, Jun 16, 2009 at 02:05:11PM -0700, Prasad B wrote:
> On Tue, Jun 16, 2009 at 2:26 AM, Alan Modra <amodra@bigpond.net.au> wrote:
> > 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.
> 
> As the manual says "The AT command for a program header overrides the
> section attribute".

That's exactly what happened.  AT overrode the load address for the
segment rather than taking the load address from the first section in
the segment.

-- 
Alan Modra
Australia Development Lab, IBM


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