1292124Sbr/*-
2292124Sbr * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com>
3292124Sbr * All rights reserved.
4292124Sbr *
5292124Sbr * Portions of this software were developed by SRI International and the
6292124Sbr * University of Cambridge Computer Laboratory under DARPA/AFRL contract
7292124Sbr * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme.
8292124Sbr *
9292124Sbr * Portions of this software were developed by the University of Cambridge
10292124Sbr * Computer Laboratory as part of the CTSRD Project, with support from the
11292124Sbr * UK Higher Education Innovation Fund (HEIF).
12292124Sbr *
13292124Sbr * Redistribution and use in source and binary forms, with or without
14292124Sbr * modification, are permitted provided that the following conditions
15292124Sbr * are met:
16292124Sbr * 1. Redistributions of source code must retain the above copyright
17292124Sbr *    notice, this list of conditions and the following disclaimer.
18292124Sbr * 2. Redistributions in binary form must reproduce the above copyright
19292124Sbr *    notice, this list of conditions and the following disclaimer in the
20292124Sbr *    documentation and/or other materials provided with the distribution.
21292124Sbr *
22292124Sbr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23292124Sbr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24292124Sbr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25292124Sbr * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26292124Sbr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27292124Sbr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28292124Sbr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29292124Sbr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30292124Sbr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31292124Sbr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32292124Sbr * SUCH DAMAGE.
33292124Sbr */
34292124Sbr
35292124Sbr#include <machine/asm.h>
36292124Sbr__FBSDID("$FreeBSD$");
37292124Sbr
38292124Sbr# this puts _gp into .dynsym, so symlook_obj can now find that (see reloc.c)
39292124Sbr	.weak	_gp
40292124Sbr_gp:
41292124Sbr
42292124Sbr	.section .init,"ax",@progbits
43292124Sbr	.align	2
44292124Sbr	.globl	_init
45292124Sbr	.type	_init,@function
46292124Sbr_init:
47292124Sbr	addi	sp, sp, -16
48292124Sbr	sd	ra, 0(sp)
49292124Sbr
50292124Sbr	.section .fini,"ax",@progbits
51292124Sbr	.align	2
52292124Sbr	.globl	_fini
53292124Sbr	.type	_fini,@function
54292124Sbr_fini:
55292124Sbr	addi	sp, sp, -16
56292124Sbr	sd	ra, 0(sp)
57292124Sbr
58292124Sbr	.section .note.GNU-stack,"",%progbits
59