[U-Boot] [PATCH v3] Switch from archive libraries to partial linking

Sebastien Carlier
2010-11-19T08:34:42Z

Dear Wolfgang,

On 2010-11-19 09:08:33, Wolfgang Denk wrote:
>
> In message <sebastien.carlier@1e724f1c01c015f817d5e33b57e7134d4468dbcc> you wrote:
> >
> > It looks like the purpose is to optimally fill a flash sector with
> > definitions, is this accurate? Why is this needed? Beside the obvious
>
> Correct.
>
> > (reset vectors, startup code), is there any reason to prefer any given
> > definition to go into the sector being filled?
>
> Well, we want to squeeze as many code into the first sectores, to
> minimize the unused space.

I am still not getting why the code needs to be split this way, rather
than being a continuous segment followed by an environment sector.
Whether the environment sector is in the middle of the binary or
immediately after the binary does not make a difference (does it?), so
the motivation must be something else...

> So far this was trivial, as I just could pick object files of suitable
> size. Now we have to come up with a new solution.

Sounds like you enjoyed solving knapsack problems :-)

Regards,
--
Sebastien