Subversion Repositories Kolibri OS

Rev

Rev 5199 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5199 Rev 6324
Line 1... Line 1...
1
/* ld.h -- general linker header file
1
/* ld.h -- general linker header file
2
   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-
 
3
   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-
 
4
   Free Software Foundation, Inc.
2
   Copyright (C) 1991-2015 Free Software Foundation, Inc.
Line 5... Line 3...
5
 
3
 
Line 6... Line 4...
6
   This file is part of the GNU Binutils.
4
   This file is part of the GNU Binutils.
7
 
5
 
Line 102... Line 100...
102
struct wildcard_list {
100
struct wildcard_list {
103
  struct wildcard_list *next;
101
  struct wildcard_list *next;
104
  struct wildcard_spec spec;
102
  struct wildcard_spec spec;
105
};
103
};
Line 106... Line -...
106
 
-
 
107
struct map_symbol_def {
-
 
108
  struct bfd_link_hash_entry *entry;
-
 
109
  struct map_symbol_def *next;
-
 
110
};
-
 
111
 
-
 
112
/* The initial part of fat_user_section_struct has to be idential with
-
 
113
   lean_user_section_struct.  */
-
 
114
typedef struct fat_user_section_struct {
-
 
115
  /* For input sections, when writing a map file: head / tail of a linked
-
 
116
     list of hash table entries for symbols defined in this section.  */
-
 
117
  struct map_symbol_def *map_symbol_def_head;
-
 
118
  struct map_symbol_def **map_symbol_def_tail;
-
 
119
  unsigned long map_symbol_def_count;
-
 
120
} fat_section_userdata_type;
-
 
121
 
-
 
122
#define get_userdata(x) ((x)->userdata)
-
 
123
 
104
 
124
#define BYTE_SIZE	(1)
105
#define BYTE_SIZE	(1)
125
#define SHORT_SIZE	(2)
106
#define SHORT_SIZE	(2)
126
#define LONG_SIZE	(4)
107
#define LONG_SIZE	(4)
Line 178... Line 159...
178
  bfd_boolean accept_unknown_input_arch;
159
  bfd_boolean accept_unknown_input_arch;
Line 179... Line 160...
179
 
160
 
180
  /* If TRUE we'll just print the default output on stdout.  */
161
  /* If TRUE we'll just print the default output on stdout.  */
Line -... Line 162...
-
 
162
  bfd_boolean print_output_format;
-
 
163
 
-
 
164
  /* If set, display the target memory usage (per memory region).  */
181
  bfd_boolean print_output_format;
165
  bfd_boolean print_memory_usage;
182
 
166
 
Line 183... Line 167...
183
  /* Big or little endian as set on command line.  */
167
  /* Big or little endian as set on command line.  */
184
  enum endian_enum endian;
168
  enum endian_enum endian;
Line 221... Line 205...
221
 
205
 
Line 222... Line 206...
222
extern args_type command_line;
206
extern args_type command_line;
Line -... Line 207...
-
 
207
 
-
 
208
typedef int token_code_type;
-
 
209
 
-
 
210
/* Different ways we can handle orphan sections.  */
-
 
211
 
-
 
212
enum orphan_handling_enum {
-
 
213
  /* The classic strategy, find a suitable section to place the orphan
-
 
214
     into.  */
-
 
215
  orphan_handling_place = 0,
-
 
216
 
-
 
217
  /* Discard any orphan sections as though they were assign to the section
-
 
218
     /DISCARD/.  */
-
 
219
  orphan_handling_discard,
-
 
220
 
-
 
221
  /* Find somewhere to place the orphan section, as with
-
 
222
     ORPHAN_HANDLING_PLACE, but also issue a warning.  */
-
 
223
  orphan_handling_warn,
-
 
224
 
-
 
225
  /* Issue a fatal error if any orphan sections are found.  */
223
 
226
  orphan_handling_error,
224
typedef int token_code_type;
227
};
225
 
228
 
Line 226... Line 229...
226
typedef struct {
229
typedef struct {
Line 243... Line 246...
243
  bfd_boolean warn_common;
246
  bfd_boolean warn_common;
Line 244... Line 247...
244
 
247
 
245
  /* If TRUE, only warn once about a particular undefined symbol.  */
248
  /* If TRUE, only warn once about a particular undefined symbol.  */
Line -... Line 249...
-
 
249
  bfd_boolean warn_once;
-
 
250
 
-
 
251
  /* How should we deal with orphan sections.  */
246
  bfd_boolean warn_once;
252
  enum orphan_handling_enum orphan_handling;
247
 
253
 
248
  /* If TRUE, warn if multiple global-pointers are needed (Alpha
254
  /* If TRUE, warn if multiple global-pointers are needed (Alpha
Line 249... Line 255...
249
     only).  */
255
     only).  */