[U-Boot] [PATCH V4 1/2] arm926ejs: fix linker file for newer ld support

Eric Cooper
2010-11-09T23:43:46Z

I have been periodically rebasing my patches for the Seagate DockStar
on master. But ever since the elf_reloc changes were merged, I have
been unable to get a working build. First I saw symptoms similar to
what Alexander Holler reported (failing during NAND initialization due
to incorrect BSS relocation), but the latest arm926ejs ld script
patches did not fix it. The system would hang here:

U-Boot 2010.12-rc1 (Nov 09 2010 - 17:52:38)
Seagate FreeAgent DockStar

SoC: Kirkwood 88F6281_A0
DRAM: 128 MiB
NAND:

This was built with the CodeSourcery 2010q1 toolchain. I also
included Alexander's patch to double-check the relocation, and no
error message gets printed.

Today, I decided to try out Sebastien Carlier's patch to change to
partial linking, and to my surprise it now works.

I have the two ELF images in case anyone can suggest what I should
look for to see why one is working and the other isn't. But I don't
know much about interpreting readelf or objdump output.

Also, I'd like to resubmit the latest version of the DockStar patch to
the list. Should I base it on the partial-linking patch, or on master
(knowing that it may not produce a working build in this case)?

--
Eric Cooper e c c @ c m u . e d u