Changeset 609 for branches/GNU/src/binutils/ld/ldemul.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/ld/ldemul.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* ldemul.c -- clearing house for ld emulation states 2 Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000 2 Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2003 3 3 Free Software Foundation, Inc. 4 4 … … 22 22 #include "bfd.h" 23 23 #include "sysdep.h" 24 #include "getopt.h" 24 25 25 26 #include "ld.h" … … 113 114 } 114 115 115 b oolean116 bfd_boolean 116 117 ldemul_open_dynamic_archive (arch, search, entry) 117 118 const char *arch; … … 121 122 if (ld_emulation->open_dynamic_archive) 122 123 return (*ld_emulation->open_dynamic_archive) (arch, search, entry); 123 return false;124 } 125 126 b oolean124 return FALSE; 125 } 126 127 bfd_boolean 127 128 ldemul_place_orphan (file, s) 128 129 lang_input_statement_type *file; … … 131 132 if (ld_emulation->place_orphan) 132 133 return (*ld_emulation->place_orphan) (file, s); 133 return false; 134 } 135 136 int 134 return FALSE; 135 } 136 137 void 138 ldemul_add_options (ns, shortopts, nl, longopts, nrl, really_longopts) 139 int ns; 140 char **shortopts; 141 int nl; 142 struct option **longopts; 143 int nrl; 144 struct option **really_longopts; 145 { 146 if (ld_emulation->add_options) 147 (*ld_emulation->add_options) (ns, shortopts, nl, longopts, 148 nrl, really_longopts); 149 } 150 151 bfd_boolean 152 ldemul_handle_option (optc) 153 int optc; 154 { 155 if (ld_emulation->handle_option) 156 return (*ld_emulation->handle_option) (optc); 157 return FALSE; 158 } 159 160 bfd_boolean 137 161 ldemul_parse_args (argc, argv) 138 162 int argc; … … 141 165 /* Try and use the emulation parser if there is one. */ 142 166 if (ld_emulation->parse_args) 143 { 144 return ld_emulation->parse_args (argc, argv); 145 } 146 return 0; 167 return (*ld_emulation->parse_args) (argc, argv); 168 return FALSE; 147 169 } 148 170 149 171 /* Let the emulation code handle an unrecognized file. */ 150 172 151 b oolean173 bfd_boolean 152 174 ldemul_unrecognized_file (entry) 153 175 lang_input_statement_type *entry; … … 155 177 if (ld_emulation->unrecognized_file) 156 178 return (*ld_emulation->unrecognized_file) (entry); 157 return false;179 return FALSE; 158 180 } 159 181 160 182 /* Let the emulation code handle a recognized file. */ 161 183 162 b oolean184 bfd_boolean 163 185 ldemul_recognized_file (entry) 164 186 lang_input_statement_type *entry; … … 166 188 if (ld_emulation->recognized_file) 167 189 return (*ld_emulation->recognized_file) (entry); 168 return false;190 return FALSE; 169 191 } 170 192 171 193 char * 172 ldemul_choose_target () 173 { 174 return ld_emulation->choose_target (); 175 } 194 ldemul_choose_target (argc, argv) 195 int argc; 196 char **argv; 197 { 198 return ld_emulation->choose_target (argc, argv); 199 } 200 176 201 177 202 /* The default choose_target function. */ 178 203 179 204 char * 180 ldemul_default_target () 205 ldemul_default_target (argc, argv) 206 int argc ATTRIBUTE_UNUSED; 207 char **argv ATTRIBUTE_UNUSED; 181 208 { 182 209 char *from_outside = getenv (TARGET_ENVIRON); … … 257 284 { 258 285 ld_emulation_xfer_type **eptr = ld_emulations; 259 b oolean first = true;286 bfd_boolean first = TRUE; 260 287 261 288 for (; *eptr; eptr++) 262 289 { 263 290 if (first) 264 first = false;291 first = FALSE; 265 292 else 266 293 fprintf (f, " "); … … 304 331 return 0; 305 332 } 333 334 struct bfd_elf_version_expr * 335 ldemul_new_vers_pattern (entry) 336 struct bfd_elf_version_expr *entry; 337 { 338 if (ld_emulation->new_vers_pattern) 339 entry = (*ld_emulation->new_vers_pattern) (entry); 340 return entry; 341 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.