From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 26 May 2016 14:47:18 +0200 Subject: [U-Boot] [PATCH] MIPS: provide a default u-boot-spl.lds In-Reply-To: <5746EF2C.1010004@gmail.com> References: <1464263014-7622-1-git-send-email-daniel.schwierzeck@gmail.com> <5746E73A.90902@denx.de> <5746EF2C.1010004@gmail.com> Message-ID: <5746F056.7000304@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 >> >> 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