
On 05/26/2016 02:42 PM, Daniel Schwierzeck wrote:
Am 26.05.2016 um 14:08 schrieb Marek Vasut:
On 05/26/2016 01:43 PM, Daniel Schwierzeck wrote:
Provide a default linker script for SPL binaries. Start address and size of text section and BSS section are configurable. All sections are arranged in a way that only relevant sections are kept in the code section for maximum size reduction. All other sections are kept but moved outside the code section to help with debugging.
Signed-off-by: Daniel Schwierzeck daniel.schwierzeck@gmail.com
I'm worried this will blow when you enable DM in SPL, since DM uses special section(s) to keep the driver linked lists in. You'll probably need to add something like KEEP(*(SORT(.u_boot_list*))); somewhere in there.
why should this blow?
Because the u-boot driver list will be discarded by linker and that will lead either to linker complaining about it or scary bugs at runtime.
But you are right, u_boot_list is missing.
:)