]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config/frv/frvend.c
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / frv / frvend.c
CommitLineData
36a05131 1/* Frv initialization file linked after all user modules
85ec4feb 2 Copyright (C) 1999-2018 Free Software Foundation, Inc.
36a05131
BS
3 Contributed by Red Hat, Inc.
4
7ec022b2 5 This file is part of GCC.
36a05131 6
7ec022b2 7 GCC is free software ; you can redistribute it and/or modify
36a05131 8 it under the terms of the GNU General Public License as published by
748086b7 9 the Free Software Foundation; either version 3, or (at your option)
36a05131
BS
10 any later version.
11
7ec022b2 12 GCC is distributed in the hope that it will be useful,
36a05131
BS
13 but WITHOUT ANY WARRANTY ; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
748086b7
JJ
17 Under Section 7 of GPL version 3, you are granted additional
18 permissions described in the GCC Runtime Library Exception, version
19 3.1, as published by the Free Software Foundation.
36a05131 20
748086b7
JJ
21 You should have received a copy of the GNU General Public License and
22 a copy of the GCC Runtime Library Exception along with this program;
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 <http://www.gnu.org/licenses/>. */
00051260 25
36a05131 26#include <stddef.h>
0fad9ab9 27#include "../libgcc/unwind-dw2-fde.h"
36a05131
BS
28
29#ifdef __FRV_UNDERSCORE__
30#define UNDERSCORE "_"
31#else
32#define UNDERSCORE ""
33#endif
34
35#define FINI_SECTION_ZERO(SECTION, FLAGS, NAME) \
36__asm__ (".section " SECTION "," FLAGS "\n\t" \
37 ".globl " UNDERSCORE NAME "\n\t" \
38 ".type " UNDERSCORE NAME ",@object\n\t" \
39 ".p2align 2\n" \
40 UNDERSCORE NAME ":\n\t" \
41 ".word 0\n\t" \
42 ".previous")
43
44#define FINI_SECTION(SECTION, FLAGS, NAME) \
45__asm__ (".section " SECTION "," FLAGS "\n\t" \
46 ".globl " UNDERSCORE NAME "\n\t" \
47 ".type " UNDERSCORE NAME ",@object\n\t" \
48 ".p2align 2\n" \
49 UNDERSCORE NAME ":\n\t" \
50 ".previous")
51
52/* End of .ctor/.dtor sections that provides a list of constructors and
53 destructors to run. */
54
55FINI_SECTION_ZERO (".ctors", "\"aw\"", "__CTOR_END__");
56FINI_SECTION_ZERO (".dtors", "\"aw\"", "__DTOR_END__");
57
58/* End of .eh_frame section that provides all of the exception handling
59 tables. */
60
61FINI_SECTION_ZERO (".eh_frame", "\"aw\"", "__FRAME_END__");
62
34208acf
AO
63#if ! __FRV_FDPIC__
64/* In FDPIC, the linker itself generates this. */
36a05131
BS
65/* End of .rofixup section that provides a list of pointers that we
66 need to adjust. */
67
68FINI_SECTION (".rofixup", "\"a\"", "__ROFIXUP_END__");
34208acf 69#endif /* __FRV_FDPIC__ */