blob: aa1e18d618e3c44df648049aee808db299b0167b [file] [log] [blame]
Bruce Beare39640842011-06-20 10:29:50 -07001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
12 * the documentation and/or other materials provided with the
13 * distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
22 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#ifndef CRT_LEGACY_WORKAROUND
30 .arch armv5te
31 .fpu softvfp
32 .eabi_attribute 20, 1
33 .eabi_attribute 21, 1
34 .eabi_attribute 23, 3
35 .eabi_attribute 24, 1
36 .eabi_attribute 25, 1
37 .eabi_attribute 26, 2
38 .eabi_attribute 30, 4
39 .eabi_attribute 18, 4
40 .code 16
41 .section .text.atexit,"ax",%progbits
42 .align 2
43 .global atexit
44 .hidden atexit
45 .code 16
46 .thumb_func
47 .type atexit, %function
48atexit:
49 .fnstart
50.LFB0:
51 .save {r4, lr}
52 push {r4, lr}
53.LCFI0:
54 ldr r3, .L3
55 mov r1, #0
56 @ sp needed for prologue
57.LPIC0:
58 add r3, pc
59 ldr r2, [r3]
60 bl __cxa_atexit
61 pop {r4, pc}
62.L4:
63 .align 2
64.L3:
65 .word __dso_handle-(.LPIC0+4)
66.LFE0:
67 .fnend
68 .size atexit, .-atexit
69#endif