Add support for DragonFlyBSD target.
[binutils.git] / gas / config / te-solaris.h
blob9c628c2f5777a02ba5cde50e9f0e9db1afdead09
1 /* Copyright 2008, 2010 Free Software Foundation, Inc.
3 This file is part of GAS, the GNU Assembler.
5 GAS is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 3,
8 or (at your option) any later version.
10 GAS is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13 the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GAS; see the file COPYING. If not, write to the Free
17 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
18 02110-1301, USA. */
20 #define TE_SOLARIS
22 #define LOCAL_LABELS_DOLLAR 1
23 #define LOCAL_LABELS_FB 1
25 #include "obj-format.h"
27 /* The Sun linker doesn't merge read-only and read-write sections into
28 a single section so we must force all EH frame sections to use the
29 same flags. For SPARC and 32-bit i386 this is read-write, whilst
30 for x86_64 this is read-only, matching GCC behavior.
32 See the definition of EH_TABLES_CAN_BE_READ_ONLY in
33 gcc/config/i386/sol2.h in the GCC sources and the thread starting at
34 http://sourceware.org/ml/binutils/2010-01/msg00401.html. */
35 #ifdef TC_SPARC
36 #define DWARF2_EH_FRAME_READ_ONLY SEC_NO_FLAGS
37 #else
38 #define DWARF2_EH_FRAME_READ_ONLY \
39 (bfd_get_arch_size (stdoutput) == 64 ? SEC_READONLY : SEC_NO_FLAGS)
40 #endif