2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
[official-gcc.git] / gcc / config / sol2-gld.h
blob5ab1582356a9cf323d86ee458d10dc4fee551f7d
1 /* Definitions of target machine for GCC, for any machine running Solaris 2
2 using the GNU linker.
4 Copyright (C) 2002, 2010 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 /* Undefine this so that attribute((init_priority)) works. */
23 #undef CTORS_SECTION_ASM_OP
24 #undef DTORS_SECTION_ASM_OP
26 #undef SUPPORTS_INIT_PRIORITY
27 #define SUPPORTS_INIT_PRIORITY 1
29 /* GNU ld needs --export-dynamic to implement -rdynamic. */
30 #undef RDYNAMIC_SPEC
31 #define RDYNAMIC_SPEC "--export-dynamic"
33 /* Solaris 11 build 135+ implements dl_iterate_phdr. */
34 #if defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR)
35 #define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
36 #endif /* HAVE_LD_EH_FRAME && TARGET_DL_ITERATE_PHDR */