Skip to contentSkip to conversation

m68k: Add missing ENTRY entry in linker script

PATCH In review Tom Rini 1 participant 2 messages Sep 17, 2021 – Sep 23, 2021 m68k architecture

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 m68k: Add missing ENTRY entry in linker script

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 <[email protected]>
Cc Angelo Dureghello <[email protected]>
---
 arch/m68k/cpu/u-boot.lds | 1 +
 1 file changed, 1 insertion(+)
arch/m68k/cpu/u-boot.lds +1 -0
index 64cf2ff5ef97..affb2d937464 100644
@@ -9,6 +9,7 @@
 #include <config.h>
 
 OUTPUT_ARCH(m68k)
+ENTRY(_start)
 
 #ifndef LDS_BOARD_TEXT
 #define LDS_BOARD_TEXT
Signature · 1 line
2.17.1
author
#1 lore raw
Quoted 10 lines · 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 <[email protected]>
Cc Angelo Dureghello <[email protected]>

Applied to u-boot/next, thanks!

Signature · 1 line
Tom