[Cbe-oss-dev] ppu-ld can't link linux kernel anymore

Alan Modra amodra at bigpond.net.au
Thu May 1 12:46:38 EST 2008


On Wed, Apr 30, 2008 at 02:10:09AM +0200, Segher Boessenkool wrote:
> >>I made a small test program below that isolates this
> >>problem.  The output shows the results of using
> >>. = 0xd000000000000000; vs. . = 0xc000000000000000;
> >
> >Geoff, is the testcase supposed to show the same problem with strip?
> >I couldn't reproduce this with latest sdk3 binutils.
> 
> I can reproduce the problem on FSF binutils HEAD, on any target

Huh, for some reason I thought the problem occurred when using
0xd00..., and didn't even check the real failure case of 0xc00...

bfd/elf.c is failing to properly set lma for sections due to:

      /* Look through the phdrs to see if we need to adjust the lma.
	 If all the p_paddr fields are zero, we ignore them, since
	 some ELF linkers produce such output.  */

Everything goes downhill from there.  :-(

-- 
Alan Modra
Australia Development Lab, IBM



More information about the cbe-oss-dev mailing list