forked from Imagelibrary/binutils-gdb
Use bool in ld
* sysdep.h (POISON_BFD_BOOLEAN): Define. * configure.ac (elf_list_options, elf_shlib_list_options=false), (elf_plt_unwind_list_options=false): Replace FALSE with false, and TRUE with true. * emulparams/call_nop.sh, * emulparams/cet.sh, * emulparams/dynamic_undefined_weak.sh, * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh, * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh, * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh, * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh, * emulparams/reloc_overflow.sh, * emulparams/static.sh, * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em, * emultempl/aix.em, * emultempl/alphaelf.em, * emultempl/armcoff.em, * emultempl/armelf.em, * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em, * emultempl/cr16elf.em, * emultempl/crxelf.em, * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em, * emultempl/hppaelf.em, * emultempl/linux.em, * emultempl/m68hc1xelf.em, * emultempl/metagelf.em, * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em, * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em, * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em, * emultempl/pep.em, * emultempl/ppc32elf.em, * emultempl/ppc64elf.em, * emultempl/rxelf.em, * emultempl/rxlinux.em, * emultempl/scoreelf.em, * emultempl/solaris2.em, * emultempl/spuelf.em, * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em, * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h, * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h, * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c, * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h, * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h, * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c, * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h, * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace bfd_boolean with bool, FALSE with false, and TRUE with true. * configure: Regenerate.
This commit is contained in:
56
ld/ldlang.h
56
ld/ldlang.h
@@ -65,7 +65,7 @@ typedef struct memory_region_struct
|
||||
union lang_statement_union *last_os;
|
||||
flagword flags;
|
||||
flagword not_flags;
|
||||
bfd_boolean had_full_message;
|
||||
bool had_full_message;
|
||||
} lang_memory_region_type;
|
||||
|
||||
enum statement_enum
|
||||
@@ -131,7 +131,7 @@ typedef struct lang_output_section_phdr_list
|
||||
{
|
||||
struct lang_output_section_phdr_list *next;
|
||||
const char *name;
|
||||
bfd_boolean used;
|
||||
bool used;
|
||||
} lang_output_section_phdr_list;
|
||||
|
||||
typedef struct lang_output_section_statement_struct
|
||||
@@ -343,7 +343,7 @@ typedef struct input_section_userdata_struct
|
||||
unsigned long map_symbol_def_count;
|
||||
} input_section_userdata_type;
|
||||
|
||||
static inline bfd_boolean
|
||||
static inline bool
|
||||
bfd_input_just_syms (const bfd *abfd)
|
||||
{
|
||||
lang_input_statement_type *is = bfd_usrdata (abfd);
|
||||
@@ -360,8 +360,8 @@ typedef void (*walk_wild_section_handler_t) (lang_wild_statement_type *,
|
||||
callback_t callback,
|
||||
void *data);
|
||||
|
||||
typedef bfd_boolean (*lang_match_sec_type_func) (bfd *, const asection *,
|
||||
bfd *, const asection *);
|
||||
typedef bool (*lang_match_sec_type_func) (bfd *, const asection *,
|
||||
bfd *, const asection *);
|
||||
|
||||
/* Binary search tree structure to efficiently sort sections by
|
||||
name. */
|
||||
@@ -377,9 +377,9 @@ struct lang_wild_statement_struct
|
||||
{
|
||||
lang_statement_header_type header;
|
||||
const char *filename;
|
||||
bfd_boolean filenames_sorted;
|
||||
bool filenames_sorted;
|
||||
struct wildcard_list *section_list;
|
||||
bfd_boolean keep_sections;
|
||||
bool keep_sections;
|
||||
lang_statement_list_type children;
|
||||
struct name_list *exclude_name_list;
|
||||
|
||||
@@ -421,7 +421,7 @@ typedef struct
|
||||
{
|
||||
lang_statement_header_type header;
|
||||
const char *where;
|
||||
bfd_boolean is_before;
|
||||
bool is_before;
|
||||
} lang_insert_statement_type;
|
||||
|
||||
typedef union lang_statement_union
|
||||
@@ -451,8 +451,8 @@ struct lang_phdr
|
||||
struct lang_phdr *next;
|
||||
const char *name;
|
||||
unsigned long type;
|
||||
bfd_boolean filehdr;
|
||||
bfd_boolean phdrs;
|
||||
bool filehdr;
|
||||
bool phdrs;
|
||||
etree_type *at;
|
||||
etree_type *flags;
|
||||
};
|
||||
@@ -472,7 +472,7 @@ struct lang_nocrossrefs
|
||||
{
|
||||
struct lang_nocrossrefs *next;
|
||||
lang_nocrossref_type *list;
|
||||
bfd_boolean onlyfirst;
|
||||
bool onlyfirst;
|
||||
};
|
||||
|
||||
/* This structure is used to hold a list of input section names which
|
||||
@@ -510,14 +510,14 @@ extern const char *output_target;
|
||||
extern lang_output_section_statement_type *abs_output_section;
|
||||
extern lang_statement_list_type lang_os_list;
|
||||
extern struct lang_input_statement_flags input_flags;
|
||||
extern bfd_boolean lang_has_input_file;
|
||||
extern bool lang_has_input_file;
|
||||
extern lang_statement_list_type statement_list;
|
||||
extern lang_statement_list_type *stat_ptr;
|
||||
extern bfd_boolean delete_output_file_on_failure;
|
||||
extern bool delete_output_file_on_failure;
|
||||
|
||||
extern struct bfd_sym_chain entry_symbol;
|
||||
extern const char *entry_section;
|
||||
extern bfd_boolean entry_from_cmdline;
|
||||
extern bool entry_from_cmdline;
|
||||
extern lang_statement_list_type file_chain;
|
||||
extern lang_statement_list_type input_file_chain;
|
||||
|
||||
@@ -533,7 +533,7 @@ extern void lang_init
|
||||
extern void lang_finish
|
||||
(void);
|
||||
extern lang_memory_region_type * lang_memory_region_lookup
|
||||
(const char * const, bfd_boolean);
|
||||
(const char * const, bool);
|
||||
extern void lang_memory_region_alias
|
||||
(const char *, const char *);
|
||||
extern void lang_map
|
||||
@@ -548,19 +548,19 @@ extern lang_output_section_statement_type *lang_enter_output_section_statement
|
||||
extern void lang_final
|
||||
(void);
|
||||
extern void lang_relax_sections
|
||||
(bfd_boolean);
|
||||
(bool);
|
||||
extern void lang_process
|
||||
(void);
|
||||
extern void lang_section_start
|
||||
(const char *, union etree_union *, const segment_type *);
|
||||
extern void lang_add_entry
|
||||
(const char *, bfd_boolean);
|
||||
(const char *, bool);
|
||||
extern void lang_default_entry
|
||||
(const char *);
|
||||
extern void lang_add_target
|
||||
(const char *);
|
||||
extern void lang_add_wild
|
||||
(struct wildcard_spec *, struct wildcard_list *, bfd_boolean);
|
||||
(struct wildcard_spec *, struct wildcard_list *, bool);
|
||||
extern void lang_add_map
|
||||
(const char *);
|
||||
extern void lang_add_fill
|
||||
@@ -572,7 +572,7 @@ extern void lang_add_attribute
|
||||
extern void lang_startup
|
||||
(const char *);
|
||||
extern void lang_float
|
||||
(bfd_boolean);
|
||||
(bool);
|
||||
extern void lang_leave_output_section_statement
|
||||
(fill_type *, const char *, lang_output_section_phdr_list *,
|
||||
const char *);
|
||||
@@ -617,7 +617,7 @@ extern lang_output_section_statement_type *lang_output_section_statement_lookup
|
||||
extern lang_output_section_statement_type *next_matching_output_section_statement
|
||||
(lang_output_section_statement_type *, int);
|
||||
extern void ldlang_add_undef
|
||||
(const char *const, bfd_boolean);
|
||||
(const char *const, bool);
|
||||
extern void ldlang_add_require_defined
|
||||
(const char *const);
|
||||
extern void lang_add_output_format
|
||||
@@ -646,9 +646,9 @@ extern void lang_clear_os_map
|
||||
extern void dprint_statement
|
||||
(lang_statement_union_type *, int);
|
||||
extern void lang_size_sections
|
||||
(bfd_boolean *, bfd_boolean);
|
||||
(bool *, bool);
|
||||
extern void one_lang_size_sections_pass
|
||||
(bfd_boolean *, bfd_boolean);
|
||||
(bool *, bool);
|
||||
extern void lang_add_insert
|
||||
(const char *, int);
|
||||
extern void lang_enter_group
|
||||
@@ -659,7 +659,7 @@ extern void lang_add_section
|
||||
(lang_statement_list_type *, asection *, struct wildcard_list *,
|
||||
struct flag_info *, lang_output_section_statement_type *);
|
||||
extern void lang_new_phdr
|
||||
(const char *, etree_type *, bfd_boolean, bfd_boolean, etree_type *,
|
||||
(const char *, etree_type *, bool, bool, etree_type *,
|
||||
etree_type *);
|
||||
extern void lang_add_nocrossref
|
||||
(lang_nocrossref_type *);
|
||||
@@ -676,7 +676,7 @@ extern void lang_leave_overlay
|
||||
lang_output_section_phdr_list *, const char *);
|
||||
|
||||
extern struct bfd_elf_version_expr *lang_new_vers_pattern
|
||||
(struct bfd_elf_version_expr *, const char *, const char *, bfd_boolean);
|
||||
(struct bfd_elf_version_expr *, const char *, const char *, bool);
|
||||
extern struct bfd_elf_version_tree *lang_new_vers_node
|
||||
(struct bfd_elf_version_expr *, struct bfd_elf_version_expr *);
|
||||
extern struct bfd_elf_version_deps *lang_add_vers_depend
|
||||
@@ -692,7 +692,7 @@ extern void lang_add_unique
|
||||
extern const char *lang_get_output_target
|
||||
(void);
|
||||
extern void add_excluded_libs (const char *);
|
||||
extern bfd_boolean load_symbols
|
||||
extern bool load_symbols
|
||||
(lang_input_statement_type *, lang_statement_list_type *);
|
||||
|
||||
struct elf_sym_strtab;
|
||||
@@ -703,9 +703,9 @@ extern void ldlang_ctf_new_dynsym
|
||||
(int symidx, struct elf_internal_sym *);
|
||||
extern void ldlang_write_ctf_late
|
||||
(void);
|
||||
extern bfd_boolean
|
||||
extern bool
|
||||
ldlang_override_segment_assignment
|
||||
(struct bfd_link_info *, bfd *, asection *, asection *, bfd_boolean);
|
||||
(struct bfd_link_info *, bfd *, asection *, asection *, bool);
|
||||
|
||||
extern void
|
||||
lang_ld_feature (char *);
|
||||
@@ -716,7 +716,7 @@ lang_print_memory_usage (void);
|
||||
extern void
|
||||
lang_add_gc_name (const char *);
|
||||
|
||||
extern bfd_boolean
|
||||
extern bool
|
||||
print_one_symbol (struct bfd_link_hash_entry *hash_entry, void *ptr);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user