Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/ld/ldemul.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* 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
    33   Free Software Foundation, Inc.
    44
     
    2222#include "bfd.h"
    2323#include "sysdep.h"
     24#include "getopt.h"
    2425
    2526#include "ld.h"
     
    113114}
    114115
    115 boolean
     116bfd_boolean
    116117ldemul_open_dynamic_archive (arch, search, entry)
    117118     const char *arch;
     
    121122  if (ld_emulation->open_dynamic_archive)
    122123    return (*ld_emulation->open_dynamic_archive) (arch, search, entry);
    123   return false;
    124 }
    125 
    126 boolean
     124  return FALSE;
     125}
     126
     127bfd_boolean
    127128ldemul_place_orphan (file, s)
    128129     lang_input_statement_type *file;
     
    131132  if (ld_emulation->place_orphan)
    132133    return (*ld_emulation->place_orphan) (file, s);
    133   return false;
    134 }
    135 
    136 int
     134  return FALSE;
     135}
     136
     137void
     138ldemul_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
     151bfd_boolean
     152ldemul_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
     160bfd_boolean
    137161ldemul_parse_args (argc, argv)
    138162     int argc;
     
    141165  /* Try and use the emulation parser if there is one.  */
    142166  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;
    147169}
    148170
    149171/* Let the emulation code handle an unrecognized file.  */
    150172
    151 boolean
     173bfd_boolean
    152174ldemul_unrecognized_file (entry)
    153175     lang_input_statement_type *entry;
     
    155177  if (ld_emulation->unrecognized_file)
    156178    return (*ld_emulation->unrecognized_file) (entry);
    157   return false;
     179  return FALSE;
    158180}
    159181
    160182/* Let the emulation code handle a recognized file.  */
    161183
    162 boolean
     184bfd_boolean
    163185ldemul_recognized_file (entry)
    164186     lang_input_statement_type *entry;
     
    166188  if (ld_emulation->recognized_file)
    167189    return (*ld_emulation->recognized_file) (entry);
    168   return false;
     190  return FALSE;
    169191}
    170192
    171193char *
    172 ldemul_choose_target ()
    173 {
    174   return ld_emulation->choose_target ();
    175 }
     194ldemul_choose_target (argc, argv)
     195     int argc;
     196     char **argv;
     197{
     198  return ld_emulation->choose_target (argc, argv);
     199}
     200
    176201
    177202/* The default choose_target function.  */
    178203
    179204char *
    180 ldemul_default_target ()
     205ldemul_default_target (argc, argv)
     206     int argc ATTRIBUTE_UNUSED;
     207     char **argv ATTRIBUTE_UNUSED;
    181208{
    182209  char *from_outside = getenv (TARGET_ENVIRON);
     
    257284{
    258285  ld_emulation_xfer_type **eptr = ld_emulations;
    259   boolean first = true;
     286  bfd_boolean first = TRUE;
    260287
    261288  for (; *eptr; eptr++)
    262289    {
    263290      if (first)
    264         first = false;
     291        first = FALSE;
    265292      else
    266293        fprintf (f, " ");
     
    304331  return 0;
    305332}
     333
     334struct bfd_elf_version_expr *
     335ldemul_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}
Note: See TracChangeset for help on using the changeset viewer.