blob: beea6858ab0be6eea49a7d305532706c00c88b40 [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
Bruce Beare39640842011-06-20 10:29:50 -070040 .hidden atexit
41 .code 16
42 .thumb_func
Evgeniy Stepanov487b6132011-10-04 14:22:15 +040043ENTRY(atexit)
Bruce Beare39640842011-06-20 10:29:50 -070044.LFB0:
45 .save {r4, lr}
46 push {r4, lr}
47.LCFI0:
48 ldr r3, .L3
49 mov r1, #0
50 @ sp needed for prologue
51.LPIC0:
52 add r3, pc
53 ldr r2, [r3]
54 bl __cxa_atexit
55 pop {r4, pc}
56.L4:
57 .align 2
58.L3:
59 .word __dso_handle-(.LPIC0+4)
60.LFE0:
Evgeniy Stepanov487b6132011-10-04 14:22:15 +040061END(atexit)
Bruce Beare39640842011-06-20 10:29:50 -070062#endif