Apparently either gcc or ld, in their infinite wisdom, want to
put a bunch of crap before the code in .text. Since the firmware doesn't seem to honour the a.out entry point, we need to include a little assmbler file which jumps to where we want to be in C. Submitted by: jake
This commit is contained in:
parent
f4fef940b5
commit
892e01faba
8
sys/boot/sparc64/boot1/_start.S
Normal file
8
sys/boot/sparc64/boot1/_start.S
Normal file
@ -0,0 +1,8 @@
|
||||
/* $FreeBSD$ */
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
_start:
|
||||
call ofw_init
|
||||
nop
|
||||
sir
|
8
sys/boot/sparc64/boot1/_start.s
Normal file
8
sys/boot/sparc64/boot1/_start.s
Normal file
@ -0,0 +1,8 @@
|
||||
/* $FreeBSD$ */
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
_start:
|
||||
call ofw_init
|
||||
nop
|
||||
sir
|
Loading…
Reference in New Issue
Block a user