Re: [PATCH] m68k: Add missing ENTRY entry in linker script

2021-09-22 Thread Tom Rini
On Fri, Sep 17, 2021 at 12:10:19PM -0400, Tom Rini wrote:

> Currently, there is no ENTRY() entry in the m68k linker script.
> However, since they currently contain a version_string symbol, which
> then overrides the default weak version_string symbol, the linker
> decides we must keep start.o in the resulting link.  Add an ENTRY() line
> so that the linker will know to keep this, even when version_string is
> no longer provided in start.S
> 
> Cc: Huan Wang 
> Cc: Angelo Dureghello 
> Signed-off-by: Tom Rini 

Applied to u-boot/next, thanks!

-- 
Tom


signature.asc
Description: PGP signature


[PATCH] m68k: Add missing ENTRY entry in linker script

2021-09-17 Thread Tom Rini
Currently, there is no ENTRY() entry in the m68k linker script.
However, since they currently contain a version_string symbol, which
then overrides the default weak version_string symbol, the linker
decides we must keep start.o in the resulting link.  Add an ENTRY() line
so that the linker will know to keep this, even when version_string is
no longer provided in start.S

Cc: Huan Wang 
Cc: Angelo Dureghello 
Signed-off-by: Tom Rini 
---
 arch/m68k/cpu/u-boot.lds | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/m68k/cpu/u-boot.lds b/arch/m68k/cpu/u-boot.lds
index 64cf2ff5ef97..affb2d937464 100644
--- a/arch/m68k/cpu/u-boot.lds
+++ b/arch/m68k/cpu/u-boot.lds
@@ -9,6 +9,7 @@
 #include 
 
 OUTPUT_ARCH(m68k)
+ENTRY(_start)
 
 #ifndef LDS_BOARD_TEXT
 #define LDS_BOARD_TEXT
-- 
2.17.1