1,7 → 1,5 |
/* ld.h -- general linker header file |
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 |
Free Software Foundation, Inc. |
Copyright (C) 1991-2015 Free Software Foundation, Inc. |
|
This file is part of the GNU Binutils. |
|
104,23 → 102,6 |
struct wildcard_spec spec; |
}; |
|
struct map_symbol_def { |
struct bfd_link_hash_entry *entry; |
struct map_symbol_def *next; |
}; |
|
/* The initial part of fat_user_section_struct has to be idential with |
lean_user_section_struct. */ |
typedef struct fat_user_section_struct { |
/* For input sections, when writing a map file: head / tail of a linked |
list of hash table entries for symbols defined in this section. */ |
struct map_symbol_def *map_symbol_def_head; |
struct map_symbol_def **map_symbol_def_tail; |
unsigned long map_symbol_def_count; |
} fat_section_userdata_type; |
|
#define get_userdata(x) ((x)->userdata) |
|
#define BYTE_SIZE (1) |
#define SHORT_SIZE (2) |
#define LONG_SIZE (4) |
180,6 → 161,9 |
/* If TRUE we'll just print the default output on stdout. */ |
bfd_boolean print_output_format; |
|
/* If set, display the target memory usage (per memory region). */ |
bfd_boolean print_memory_usage; |
|
/* Big or little endian as set on command line. */ |
enum endian_enum endian; |
|
223,6 → 207,25 |
|
typedef int token_code_type; |
|
/* Different ways we can handle orphan sections. */ |
|
enum orphan_handling_enum { |
/* The classic strategy, find a suitable section to place the orphan |
into. */ |
orphan_handling_place = 0, |
|
/* Discard any orphan sections as though they were assign to the section |
/DISCARD/. */ |
orphan_handling_discard, |
|
/* Find somewhere to place the orphan section, as with |
ORPHAN_HANDLING_PLACE, but also issue a warning. */ |
orphan_handling_warn, |
|
/* Issue a fatal error if any orphan sections are found. */ |
orphan_handling_error, |
}; |
|
typedef struct { |
bfd_boolean magic_demand_paged; |
bfd_boolean make_executable; |
245,6 → 248,9 |
/* If TRUE, only warn once about a particular undefined symbol. */ |
bfd_boolean warn_once; |
|
/* How should we deal with orphan sections. */ |
enum orphan_handling_enum orphan_handling; |
|
/* If TRUE, warn if multiple global-pointers are needed (Alpha |
only). */ |
bfd_boolean warn_multiple_gp; |