OLD | NEW |
1 /* Copyright 2008 Free Software Foundation, Inc. | 1 /* Copyright 2008, 2010 Free Software Foundation, Inc. |
2 | 2 |
3 This file is part of GAS, the GNU Assembler. | 3 This file is part of GAS, the GNU Assembler. |
4 | 4 |
5 GAS is free software; you can redistribute it and/or modify | 5 GAS is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as | 6 it under the terms of the GNU General Public License as |
7 published by the Free Software Foundation; either version 3, | 7 published by the Free Software Foundation; either version 3, |
8 or (at your option) any later version. | 8 or (at your option) any later version. |
9 | 9 |
10 GAS is distributed in the hope that it will be useful, but | 10 GAS is distributed in the hope that it will be useful, but |
11 WITHOUT ANY WARRANTY; without even the implied warranty of | 11 WITHOUT ANY WARRANTY; without even the implied warranty of |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
13 the GNU General Public License for more details. | 13 the GNU General Public License for more details. |
14 | 14 |
15 You should have received a copy of the GNU General Public License | 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 | 16 along with GAS; see the file COPYING. If not, write to the Free |
17 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA | 17 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA |
18 02110-1301, USA. */ | 18 02110-1301, USA. */ |
19 | 19 |
20 #define TE_SOLARIS | 20 #define TE_SOLARIS |
21 | 21 |
22 #define LOCAL_LABELS_DOLLAR 1 | 22 #define LOCAL_LABELS_DOLLAR 1 |
23 #define LOCAL_LABELS_FB 1 | 23 #define LOCAL_LABELS_FB 1 |
24 | 24 |
| 25 #include "obj-format.h" |
| 26 |
25 /* The Sun linker doesn't merge read-only and read-write sections into | 27 /* The Sun linker doesn't merge read-only and read-write sections into |
26 a single read-write section so we must force all EH frame sections | 28 a single section so we must force all EH frame sections to use the |
27 to be read-write. */ | 29 same flags. For SPARC and 32-bit i386 this is read-write, whilst |
28 #define DWARF2_EH_FRAME_READ_ONLY 0 | 30 for x86_64 this is read-only, matching GCC behavior. |
29 | 31 |
30 #include "obj-format.h" | 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 |
OLD | NEW |