The loongson bootblocks are compiled with -mno-abicalls and do not use
gp-relative addressing.
A similar change has been made to the mips64 kernels recently.
.text : { *(.text .text.* .gnu.linkonce.t.*) }
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
- _gp = ALIGN(16) + 0x7ff0;
.data : { *(.data .data.* .gnu.linkonce.d.*) }
PROVIDE (edata = .);
.sbss : { *(.sbss .sbss.* .gnu.linkonce.sb.* .scommon) }
-/* $OpenBSD: start.S,v 1.3 2018/04/20 14:36:42 visa Exp $ */
+/* $OpenBSD: start.S,v 1.4 2021/02/17 14:42:20 visa Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
.ent __start, 0
__start:
LA t0, __start - FRAMESZ(CF_SZ)
- LA gp, _gp
PTR_S ra, pmon_ra # save pmon return address
PTR_S sp, pmon_sp # and stack
move sp, t0