From 892e01faba0cd32c5768c1515e6ef167aacfa135 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 28 Mar 2002 02:41:52 +0000 Subject: [PATCH] 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 --- sys/boot/sparc64/boot1/_start.S | 8 ++++++++ sys/boot/sparc64/boot1/_start.s | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 sys/boot/sparc64/boot1/_start.S create mode 100644 sys/boot/sparc64/boot1/_start.s diff --git a/sys/boot/sparc64/boot1/_start.S b/sys/boot/sparc64/boot1/_start.S new file mode 100644 index 000000000000..30f8019cc863 --- /dev/null +++ b/sys/boot/sparc64/boot1/_start.S @@ -0,0 +1,8 @@ +/* $FreeBSD$ */ + + .text + .globl _start +_start: + call ofw_init + nop + sir diff --git a/sys/boot/sparc64/boot1/_start.s b/sys/boot/sparc64/boot1/_start.s new file mode 100644 index 000000000000..30f8019cc863 --- /dev/null +++ b/sys/boot/sparc64/boot1/_start.s @@ -0,0 +1,8 @@ +/* $FreeBSD$ */ + + .text + .globl _start +_start: + call ofw_init + nop + sir