Skip to contentSkip to conversation

openrisc: Define the elf binary entry point

PATCH Applied Stafford Horne 2 participants 2 messages Mar 3, 2021 – Mar 4, 2021 Openrisc architecture

lore
Share & tools
lore

Stafford Horne

author maintainer
#0 lore raw

PATCH 1/1 openrisc: Define the elf binary entry point

Entry is used by qemu to find where to start booting, we define this to the 0x100 reset vector as is done by default when the CPU resets. This fixes the qemu boot issue.

---
 arch/openrisc/cpu/barebox.lds.S | 1 +
 1 file changed, 1 insertion(+)
arch/openrisc/cpu/barebox.lds.S +1 -0
index adb0c22f8..45c5f2553 100644
@@ -17,6 +17,7 @@
 #include <asm-generic/barebox.lds.h>
 
 OUTPUT_FORMAT("elf32-or1k", "elf32-or1k", "elf32-or1k")
+ENTRY(__reset)
 __DYNAMIC  =  0;
 
 MEMORY
Signature · 1 line
2.26.2
Applied
#1 lore raw
Quoted 8 lines · Stafford Horne

Entry is used by qemu to find where to start booting, we define this to the 0x100 reset vector as is done by default when the CPU resets. This fixes the qemu boot issue.

---
 arch/openrisc/cpu/barebox.lds.S | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

Sascha

Quoted 17 lines
arch/openrisc/cpu/barebox.lds.S +1 -0
index adb0c22f8..45c5f2553 100644
@@ -17,6 +17,7 @@
 #include <asm-generic/barebox.lds.h>
 
 OUTPUT_FORMAT("elf32-or1k", "elf32-or1k", "elf32-or1k")
+ENTRY(__reset)
 __DYNAMIC  =  0;
 
 MEMORY
Signature · 1 line
2.26.2
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |