[U-Boot] [PATCH] MIPS: provide a default u-boot-spl.lds
Marek Vasut
marex at denx.de
Thu May 26 14:47:18 CEST 2016
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 at 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.
>
:)
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list