1 /* Subroutines for insn-output.c for NetWare.
2 Contributed by Jan Beulich (jbeulich@novell.com)
3 Copyright (C) 2004 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GCC is distributed in the hope that it will be useful,
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.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
24 #include "coretypes.h"
28 #include "hard-reg-set.h"
36 nwld_named_section_asm_out_constructor (rtx symbol
, int priority
)
38 #if !SUPPORTS_INIT_PRIORITY
39 const char section
[] = ".ctors"TARGET_SUB_SECTION_SEPARATOR
;
44 ".ctors"TARGET_SUB_SECTION_SEPARATOR
"%.5u",
45 /* Invert the numbering so the linker puts us in the proper
46 order; constructors are run from right to left, and the
47 linker sorts in increasing order. */
48 MAX_INIT_PRIORITY
- priority
);
51 named_section_flags (section
, 0);
52 assemble_align (POINTER_SIZE
);
53 assemble_integer (symbol
, POINTER_SIZE
/ BITS_PER_UNIT
, POINTER_SIZE
, 1);
57 nwld_named_section_asm_out_destructor (rtx symbol
, int priority
)
59 #if !SUPPORTS_INIT_PRIORITY
60 const char section
[] = ".dtors"TARGET_SUB_SECTION_SEPARATOR
;
64 sprintf (section
, ".dtors"TARGET_SUB_SECTION_SEPARATOR
"%.5u",
65 /* Invert the numbering so the linker puts us in the proper
66 order; destructors are run from left to right, and the
67 linker sorts in increasing order. */
68 MAX_INIT_PRIORITY
- priority
);
71 named_section_flags (section
, 0);
72 assemble_align (POINTER_SIZE
);
73 assemble_integer (symbol
, POINTER_SIZE
/ BITS_PER_UNIT
, POINTER_SIZE
, 1);