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 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


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