xref: /minix3/lib/csu/arch/powerpc/crtend.S (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc/*	$NetBSD: crtend.S,v 1.3 2014/02/27 16:47:48 matt Exp $	*/
2f14fb602SLionel Sambuc/*-
3f14fb602SLionel Sambuc * Copyright (c) 2011 The NetBSD Foundation, Inc.
4f14fb602SLionel Sambuc * All rights reserved.
5f14fb602SLionel Sambuc *
6f14fb602SLionel Sambuc * This code is derived from software contributed to The NetBSD Foundation
7f14fb602SLionel Sambuc * by Matt Thomas of 3am Software Foundry.
8f14fb602SLionel Sambuc *
9f14fb602SLionel Sambuc * Redistribution and use in source and binary forms, with or without
10f14fb602SLionel Sambuc * modification, are permitted provided that the following conditions
11f14fb602SLionel Sambuc * are met:
12f14fb602SLionel Sambuc * 1. Redistributions of source code must retain the above copyright
13f14fb602SLionel Sambuc *    notice, this list of conditions and the following disclaimer.
14f14fb602SLionel Sambuc * 2. Redistributions in binary form must reproduce the above copyright
15f14fb602SLionel Sambuc *    notice, this list of conditions and the following disclaimer in the
16f14fb602SLionel Sambuc *    documentation and/or other materials provided with the distribution.
17f14fb602SLionel Sambuc *
18f14fb602SLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19f14fb602SLionel Sambuc * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20f14fb602SLionel Sambuc * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21f14fb602SLionel Sambuc * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22f14fb602SLionel Sambuc * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23f14fb602SLionel Sambuc * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24f14fb602SLionel Sambuc * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25f14fb602SLionel Sambuc * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26f14fb602SLionel Sambuc * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27f14fb602SLionel Sambuc * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28f14fb602SLionel Sambuc * POSSIBILITY OF SUCH DAMAGE.
29f14fb602SLionel Sambuc */
30f14fb602SLionel Sambuc
31f14fb602SLionel Sambuc#include <powerpc/asm.h>
32f14fb602SLionel Sambuc
33*0a6a1f1dSLionel SambucRCSID("$NetBSD: crtend.S,v 1.3 2014/02/27 16:47:48 matt Exp $")
34f14fb602SLionel Sambuc
35f14fb602SLionel Sambuc	.section	.ctors, "aw", @progbits
36*0a6a1f1dSLionel Sambuc	.p2align P2SZREG
37f14fb602SLionel Sambuc	.global		__CTOR_LIST_END__
38f14fb602SLionel Sambuc	.hidden 	__CTOR_LIST_END__
39f14fb602SLionel Sambuc__CTOR_LIST_END__:
40*0a6a1f1dSLionel Sambuc#ifdef _LP64
41*0a6a1f1dSLionel Sambuc	.quad 0
42*0a6a1f1dSLionel Sambuc#else
43f14fb602SLionel Sambuc	.long 0
44*0a6a1f1dSLionel Sambuc#endif
45f14fb602SLionel Sambuc
46f14fb602SLionel Sambuc	.section	.dtors, "aw", @progbits
47*0a6a1f1dSLionel Sambuc	.p2align P2SZREG
4884d9c625SLionel Sambuc	.global		__DTOR_LIST_END__
4984d9c625SLionel Sambuc	.hidden 	__DTOR_LIST_END__
5084d9c625SLionel Sambuc__DTOR_LIST_END__:
51*0a6a1f1dSLionel Sambuc#ifdef _LP64
52*0a6a1f1dSLionel Sambuc	.quad 0
53*0a6a1f1dSLionel Sambuc#else
54f14fb602SLionel Sambuc	.long 0
55*0a6a1f1dSLionel Sambuc#endif
56f14fb602SLionel Sambuc
57f14fb602SLionel Sambuc	.section	.eh_frame, "a", @progbits
58*0a6a1f1dSLionel Sambuc	.p2align P2SZREG
59*0a6a1f1dSLionel Sambuc#ifdef _LP64
60*0a6a1f1dSLionel Sambuc	.quad 0
61*0a6a1f1dSLionel Sambuc#else
62f14fb602SLionel Sambuc	.long 0
63*0a6a1f1dSLionel Sambuc#endif
64f14fb602SLionel Sambuc
65f14fb602SLionel Sambuc	.section	.jcr, "aw", @progbits
66*0a6a1f1dSLionel Sambuc	.p2align P2SZREG
67*0a6a1f1dSLionel Sambuc#ifdef _LP64
68*0a6a1f1dSLionel Sambuc	.quad 0
69*0a6a1f1dSLionel Sambuc#else
70f14fb602SLionel Sambuc	.long 0
71*0a6a1f1dSLionel Sambuc#endif
72