source: branches/libc-0.6/src/binutils/ld/ldctor.h

Last change on this file was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.0 KB
Line 
1/* ldctor.h - linker constructor support
2 Copyright 1991, 1992, 1993, 1994, 1995, 1998, 2000, 2002
3 Free Software Foundation, Inc.
4
5This file is part of GLD, the Gnu Linker.
6
7GLD is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GLD is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GLD; see the file COPYING. If not, write to the Free
19Software Foundation, 59 Temple Place - Suite 330, Boston, MA
2002111-1307, USA. */
21
22#ifndef LDCTOR_H
23#define LDCTOR_H
24
25/* List of statements needed to handle constructors */
26extern lang_statement_list_type constructor_list;
27
28/* Whether the constructors should be sorted. Note that this is
29 global for the entire link; we assume that there is only a single
30 CONSTRUCTORS command in the linker script. */
31extern bfd_boolean constructors_sorted;
32
33/* We keep a list of these structures for each set we build. */
34
35struct set_info {
36 struct set_info *next; /* Next set. */
37 struct bfd_link_hash_entry *h; /* Hash table entry. */
38 bfd_reloc_code_real_type reloc; /* Reloc to use for an entry. */
39 size_t count; /* Number of elements. */
40 struct set_element *elements; /* Elements in set. */
41};
42
43struct set_element {
44 struct set_element *next; /* Next element. */
45 const char *name; /* Name in set (may be NULL). */
46 asection *section; /* Section of value in set. */
47 bfd_vma value; /* Value in set. */
48};
49
50/* The sets we have seen. */
51
52extern struct set_info *sets;
53
54extern void ldctor_add_set_entry
55 PARAMS ((struct bfd_link_hash_entry *, bfd_reloc_code_real_type,
56 const char *, asection *, bfd_vma));
57extern void ldctor_build_sets
58 PARAMS ((void));
59
60#endif
Note: See TracBrowser for help on using the repository browser.