|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenPPC] PHDR link failure testcase
On Aug 16, 2006, at 10:00 PM, Tony Breeds wrote: On Wed, Aug 16, 2006 at 08:10:20AM -0400, Jimi Xenidis wrote:Thanks for getting to the bottom of this Tony.As it's empty the linker decides to start a 3rd segment rather than waste disk space.Hmm, what is "empty"?By empty I mean "filled with 0s", which I believe is because all the per_cpu variables are initialised at runtime. so why does LONG(0) (from option (2)) fix this? Initially the linker guessedit would need 2 segments, but due to this decision it actually uses 3,causeing the abort. Aparently the newer (read current CVS) tools don't abort here but do the right thing.What _is_ the "right thing"?Use 3 PHDRS. Ok. Perhaps, this is just mythology/warm-n-fuzzy for me, but I really like having 1 PHDR. Lemmy collect my thoughts and come up with a rational reason.Sure. Wouldn't that mean that everything will end up being in a read/write/execute PHDR. Do we care about that? Not really its not like we protect any of it :) and the section separation still exits after-all we all (kernels/xen) link with -N/--omagic, which does not page align the data sections which has always implied a single PHDR. Besides, the more I do this the less I trust FW and bootloaders so a single segment is just cleaner.
I think this is all we need, not other changes are required. Actually the above line should just be: PROVIDE (__executable_start = .);We always specific the link address on the command line and not that we define PHDRS there is no need for SIZEOF_HEADERS (as the linker docs indicate) I'm pretty sure the rest of the changes are unnecessary. -JX
_______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |