Back to index

cell-binutils  2.17cvs20070401
Classes | Typedefs | Enumerations | Functions | Variables
ldemul.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ld_emulation_xfer_struct

Typedefs

typedef struct
ld_emulation_xfer_struct 
ld_emulation_xfer_type

Enumerations

enum  lang_emulation_mode_enum_type { intel_ic960_ld_mode_enum, default_mode_enum, intel_gld960_ld_mode_enum }

Functions

void ldemul_hll (char *)
void ldemul_syslib (char *)
void ldemul_after_parse (void)
void ldemul_before_parse (void)
void ldemul_after_open (void)
void ldemul_after_allocation (void)
void ldemul_before_allocation (void)
void ldemul_set_output_arch (void)
char * ldemul_choose_target (int, char **)
void ldemul_choose_mode (char *)
void ldemul_list_emulations (FILE *)
void ldemul_list_emulation_options (FILE *)
char * ldemul_get_script (int *isfile)
void ldemul_finish (void)
void ldemul_set_symbols (void)
void ldemul_create_output_section_statements (void)
bfd_boolean ldemul_place_orphan (asection *)
bfd_boolean ldemul_parse_args (int, char **)
void ldemul_add_options (int, char **, int, struct option **, int, struct option **)
bfd_boolean ldemul_handle_option (int)
bfd_boolean ldemul_unrecognized_file (struct lang_input_statement_struct *)
bfd_boolean ldemul_recognized_file (struct lang_input_statement_struct *)
bfd_boolean ldemul_open_dynamic_archive (const char *, struct search_dirs *, struct lang_input_statement_struct *)
char * ldemul_default_target (int, char **)
void after_parse_default (void)
void after_open_default (void)
void after_allocation_default (void)
void before_allocation_default (void)
void finish_default (void)
void set_output_arch_default (void)
void syslib_default (char *)
void hll_default (char *)
int ldemul_find_potential_libraries (char *, struct lang_input_statement_struct *)
struct bfd_elf_version_exprldemul_new_vers_pattern (struct bfd_elf_version_expr *)

Variables

ld_emulation_xfer_typeld_emulations []

Typedef Documentation


Enumeration Type Documentation

Enumerator:
intel_ic960_ld_mode_enum 
default_mode_enum 
intel_gld960_ld_mode_enum 

Definition at line 196 of file ldemul.h.


Function Documentation

void after_allocation_default ( void  )

Definition at line 207 of file ldemul.c.

{
}
void after_open_default ( void  )

Definition at line 202 of file ldemul.c.

{
}
void after_parse_default ( void  )

Definition at line 197 of file ldemul.c.

{
}
void before_allocation_default ( void  )

Definition at line 212 of file ldemul.c.

{
  if (!link_info.relocatable)
    strip_excluded_output_sections ();
}

Here is the call graph for this function:

void finish_default ( void  )

Definition at line 219 of file ldemul.c.

{
  if (!link_info.relocatable)
    _bfd_fix_excluded_sec_syms (output_bfd, &link_info);
}

Here is the call graph for this function:

void hll_default ( char *  )
void ldemul_add_options ( int  ,
char **  ,
int  ,
struct option **  ,
int  ,
struct option **   
)

Definition at line 132 of file ldemul.c.

{
  if (ld_emulation->add_options)
    (*ld_emulation->add_options) (ns, shortopts, nl, longopts,
                              nrl, really_longopts);
}

Here is the caller graph for this function:

void ldemul_after_allocation ( void  )

Definition at line 71 of file ldemul.c.

Here is the caller graph for this function:

void ldemul_after_open ( void  )

Definition at line 65 of file ldemul.c.

Here is the caller graph for this function:

void ldemul_after_parse ( void  )

Definition at line 53 of file ldemul.c.

Here is the caller graph for this function:

void ldemul_before_allocation ( void  )

Definition at line 77 of file ldemul.c.

Here is the caller graph for this function:

void ldemul_before_parse ( void  )

Definition at line 59 of file ldemul.c.

Here is the caller graph for this function:

void ldemul_choose_mode ( char *  )

Definition at line 248 of file ldemul.c.

{
  ld_emulation_xfer_type **eptr = ld_emulations;
  /* Ignore "gld" prefix.  */
  if (target[0] == 'g' && target[1] == 'l' && target[2] == 'd')
    target += 3;
  for (; *eptr; eptr++)
    {
      if (strcmp (target, (*eptr)->emulation_name) == 0)
       {
         ld_emulation = *eptr;
         return;
       }
    }
  einfo (_("%P: unrecognised emulation mode: %s\n"), target);
  einfo (_("Supported emulations: "));
  ldemul_list_emulations (stderr);
  einfo ("%F\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

char* ldemul_choose_target ( int  ,
char **   
)

Definition at line 179 of file ldemul.c.

{
  return ld_emulation->choose_target (argc, argv);
}

Here is the caller graph for this function:

Definition at line 102 of file ldemul.c.

Here is the caller graph for this function:

char* ldemul_default_target ( int  ,
char **   
)

Definition at line 309 of file ldemul.c.

Here is the caller graph for this function:

void ldemul_finish ( void  )

Definition at line 89 of file ldemul.c.

Here is the caller graph for this function:

char* ldemul_get_script ( int isfile)

Definition at line 109 of file ldemul.c.

{
  return ld_emulation->get_script (isfile);
}

Here is the caller graph for this function:

Definition at line 142 of file ldemul.c.

{
  if (ld_emulation->handle_option)
    return (*ld_emulation->handle_option) (optc);
  return FALSE;
}

Here is the caller graph for this function:

void ldemul_hll ( char *  )

Definition at line 41 of file ldemul.c.

void ldemul_list_emulation_options ( FILE *  )

Definition at line 285 of file ldemul.c.

{
  ld_emulation_xfer_type **eptr;
  int options_found = 0;

  for (eptr = ld_emulations; *eptr; eptr++)
    {
      ld_emulation_xfer_type *emul = *eptr;

      if (emul->list_options)
       {
         fprintf (f, "%s: \n", emul->emulation_name);

         emul->list_options (f);

         options_found = 1;
       }
    }

  if (! options_found)
    fprintf (f, _("  no emulation specific options.\n"));
}

Here is the call graph for this function:

Here is the caller graph for this function:

void ldemul_list_emulations ( FILE *  )

Definition at line 269 of file ldemul.c.

{
  ld_emulation_xfer_type **eptr = ld_emulations;
  bfd_boolean first = TRUE;

  for (; *eptr; eptr++)
    {
      if (first)
       first = FALSE;
      else
       fprintf (f, " ");
      fprintf (f, "%s", (*eptr)->emulation_name);
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 318 of file ldemul.c.

{
  if (ld_emulation->new_vers_pattern)
    entry = (*ld_emulation->new_vers_pattern) (entry);
  return entry;
}

Here is the caller graph for this function:

bfd_boolean ldemul_parse_args ( int  ,
char **   
)

Definition at line 150 of file ldemul.c.

{
  /* Try and use the emulation parser if there is one.  */
  if (ld_emulation->parse_args)
    return (*ld_emulation->parse_args) (argc, argv);
  return FALSE;
}

Here is the caller graph for this function:

Definition at line 124 of file ldemul.c.

{
  if (ld_emulation->place_orphan)
    return (*ld_emulation->place_orphan) (s);
  return FALSE;
}

Here is the caller graph for this function:

Definition at line 171 of file ldemul.c.

{
  if (ld_emulation->recognized_file)
    return (*ld_emulation->recognized_file) (entry);
  return FALSE;
}

Here is the caller graph for this function:

void ldemul_set_output_arch ( void  )

Definition at line 83 of file ldemul.c.

Here is the caller graph for this function:

void ldemul_set_symbols ( void  )

Definition at line 95 of file ldemul.c.

Here is the caller graph for this function:

void ldemul_syslib ( char *  )

Definition at line 47 of file ldemul.c.

Definition at line 161 of file ldemul.c.

{
  if (ld_emulation->unrecognized_file)
    return (*ld_emulation->unrecognized_file) (entry);
  return FALSE;
}

Here is the caller graph for this function:

void set_output_arch_default ( void  )

Definition at line 226 of file ldemul.c.

{
  /* Set the output architecture and machine if possible.  */
  bfd_set_arch_mach (output_bfd,
                   ldfile_output_architecture, ldfile_output_machine);
}
void syslib_default ( char *  )

Variable Documentation

Definition at line 245 of file ldemul.c.