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: Padding between .text and .data


On 2/15/06, Dave Korn <dave.korn@artimi.com> wrote:
> > Thanks for the explanation, DJ. This value of 256 seems fairly
> > arbitrary and hardware specific.
>
>   Linker scripts are, in general!  It's the correct place for this sort of
> knowledge about memory mapping and layouts.

I agree; however, this target-specific optimization makes no sense for
my target and seems to be applied too broadly.

>   You shouldn't need to 'maintain' your linker script unless you change
> binutils version, in which case you would need to generate a new variant from
> the more up-to-date default linker script from the new binutils.

I'm typically running a binutils from CVS, so changing my binutils
version is a fairly regular event.

>   Having said that, is it possible that you could generate your own linker
> script by some kind of postprocessing on the default linker script?

Yes. In a way, I already do by maintaining a diff against the default
linker script. I'd rather avoid this sort of hackery though.

Cheers,
Shaun


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