aboutsummaryrefslogtreecommitdiff
path: root/ld/ldemul.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-11-30 08:39:46 +0000
committerAlan Modra <amodra@gmail.com>2002-11-30 08:39:46 +0000
commitb34976b65aea8f33690229600bbf4527ec3118e1 (patch)
tree6411348664ef81ca2aa2e3ff325116e6e6502edf /ld/ldemul.h
parent583d52d728c60410c0d39bae68ee536a7b9e7a6c (diff)
downloadgdb-b34976b65aea8f33690229600bbf4527ec3118e1.zip
gdb-b34976b65aea8f33690229600bbf4527ec3118e1.tar.gz
gdb-b34976b65aea8f33690229600bbf4527ec3118e1.tar.bz2
s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
Diffstat (limited to 'ld/ldemul.h')
-rw-r--r--ld/ldemul.h99
1 files changed, 62 insertions, 37 deletions
diff --git a/ld/ldemul.h b/ld/ldemul.h
index 3e27500..a048b72 100644
--- a/ld/ldemul.h
+++ b/ld/ldemul.h
@@ -1,5 +1,5 @@
/* ld-emul.h - Linker emulation header file
- Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000
+ Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002
Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -17,40 +17,65 @@
#ifndef LDEMUL_H
#define LDEMUL_H
-extern void ldemul_hll PARAMS ((char *));
-extern void ldemul_syslib PARAMS ((char *));
-extern void ldemul_after_parse PARAMS ((void));
-extern void ldemul_before_parse PARAMS ((void));
-extern void ldemul_after_open PARAMS ((void));
-extern void ldemul_after_allocation PARAMS ((void));
-extern void ldemul_before_allocation PARAMS ((void));
-extern void ldemul_set_output_arch PARAMS ((void));
-extern char *ldemul_choose_target PARAMS ((int, char**));
-extern void ldemul_choose_mode PARAMS ((char *));
-extern void ldemul_list_emulations PARAMS ((FILE *));
-extern void ldemul_list_emulation_options PARAMS ((FILE *));
-extern char *ldemul_get_script PARAMS ((int *isfile));
-extern void ldemul_finish PARAMS ((void));
-extern void ldemul_set_symbols PARAMS ((void));
-extern void ldemul_create_output_section_statements PARAMS ((void));
-extern boolean ldemul_place_orphan
+extern void ldemul_hll
+ PARAMS ((char *));
+extern void ldemul_syslib
+ PARAMS ((char *));
+extern void ldemul_after_parse
+ PARAMS ((void));
+extern void ldemul_before_parse
+ PARAMS ((void));
+extern void ldemul_after_open
+ PARAMS ((void));
+extern void ldemul_after_allocation
+ PARAMS ((void));
+extern void ldemul_before_allocation
+ PARAMS ((void));
+extern void ldemul_set_output_arch
+ PARAMS ((void));
+extern char *ldemul_choose_target
+ PARAMS ((int, char**));
+extern void ldemul_choose_mode
+ PARAMS ((char *));
+extern void ldemul_list_emulations
+ PARAMS ((FILE *));
+extern void ldemul_list_emulation_options
+ PARAMS ((FILE *));
+extern char *ldemul_get_script
+ PARAMS ((int *isfile));
+extern void ldemul_finish
+ PARAMS ((void));
+extern void ldemul_set_symbols
+ PARAMS ((void));
+extern void ldemul_create_output_section_statements
+ PARAMS ((void));
+extern bfd_boolean ldemul_place_orphan
PARAMS ((struct lang_input_statement_struct *, asection *));
-extern int ldemul_parse_args PARAMS ((int, char **));
-extern boolean ldemul_unrecognized_file
+extern int ldemul_parse_args
+ PARAMS ((int, char **));
+extern bfd_boolean ldemul_unrecognized_file
PARAMS ((struct lang_input_statement_struct *));
-extern boolean ldemul_recognized_file
+extern bfd_boolean ldemul_recognized_file
PARAMS ((struct lang_input_statement_struct *));
-extern boolean ldemul_open_dynamic_archive
+extern bfd_boolean ldemul_open_dynamic_archive
PARAMS ((const char *, struct search_dirs *,
struct lang_input_statement_struct *));
-extern char *ldemul_default_target PARAMS ((int, char**));
-extern void after_parse_default PARAMS ((void));
-extern void after_open_default PARAMS ((void));
-extern void after_allocation_default PARAMS ((void));
-extern void before_allocation_default PARAMS ((void));
-extern void set_output_arch_default PARAMS ((void));
-extern void syslib_default PARAMS ((char*));
-extern void hll_default PARAMS ((char*));
+extern char *ldemul_default_target
+ PARAMS ((int, char**));
+extern void after_parse_default
+ PARAMS ((void));
+extern void after_open_default
+ PARAMS ((void));
+extern void after_allocation_default
+ PARAMS ((void));
+extern void before_allocation_default
+ PARAMS ((void));
+extern void set_output_arch_default
+ PARAMS ((void));
+extern void syslib_default
+ PARAMS ((char*));
+extern void hll_default
+ PARAMS ((char*));
extern int ldemul_find_potential_libraries
PARAMS ((char *, struct lang_input_statement_struct *));
extern struct bfd_elf_version_expr *ldemul_new_vers_pattern
@@ -103,14 +128,14 @@ typedef struct ld_emulation_xfer_struct {
/* Try to open a dynamic library. ARCH is an architecture name, and
is normally the empty string. ENTRY is the lang_input_statement
that should be opened. */
- boolean (*open_dynamic_archive)
+ bfd_boolean (*open_dynamic_archive)
PARAMS ((const char *arch, struct search_dirs *,
struct lang_input_statement_struct *entry));
- /* Place an orphan section. Return true if it was placed, false if
+ /* Place an orphan section. Return TRUE if it was placed, FALSE if
the default action should be taken. This field may be NULL, in
which case the default action will always be taken. */
- boolean (*place_orphan)
+ bfd_boolean (*place_orphan)
PARAMS ((struct lang_input_statement_struct *, asection *));
/* Run after assigning parsing with the args, but before
@@ -122,16 +147,16 @@ typedef struct ld_emulation_xfer_struct {
int (*parse_args) PARAMS ((int, char **));
/* Run to handle files which are not recognized as object files or
- archives. Return true if the file was handled. */
- boolean (*unrecognized_file)
+ archives. Return TRUE if the file was handled. */
+ bfd_boolean (*unrecognized_file)
PARAMS ((struct lang_input_statement_struct *));
/* Run to list the command line options which parse_args handles. */
void (* list_options) PARAMS ((FILE *));
/* Run to specially handle files which *are* recognized as object
- files or archives. Return true if the file was handled. */
- boolean (*recognized_file)
+ files or archives. Return TRUE if the file was handled. */
+ bfd_boolean (*recognized_file)
PARAMS ((struct lang_input_statement_struct *));
/* Called when looking for libraries in a directory specified