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.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* ld-emul.h - Linker emulation header file
    2    Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000
     2   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002
    33   Free Software Foundation, Inc.
    44
     
    1818#define LDEMUL_H
    1919
    20 extern void ldemul_hll PARAMS ((char *));
    21 extern void ldemul_syslib PARAMS ((char *));
    22 extern void ldemul_after_parse PARAMS ((void));
    23 extern void ldemul_before_parse PARAMS ((void));
    24 extern void ldemul_after_open PARAMS ((void));
    25 extern void ldemul_after_allocation PARAMS ((void));
    26 extern void ldemul_before_allocation PARAMS ((void));
    27 extern void ldemul_set_output_arch PARAMS ((void));
    28 extern char *ldemul_choose_target PARAMS ((void));
    29 extern void ldemul_choose_mode PARAMS ((char *));
    30 extern void ldemul_list_emulations PARAMS ((FILE *));
    31 extern void ldemul_list_emulation_options PARAMS ((FILE *));
    32 extern char *ldemul_get_script PARAMS ((int *isfile));
    33 extern void ldemul_finish PARAMS ((void));
    34 extern void ldemul_set_symbols PARAMS ((void));
    35 extern void ldemul_create_output_section_statements PARAMS ((void));
    36 extern boolean ldemul_place_orphan
     20extern void ldemul_hll
     21  PARAMS ((char *));
     22extern void ldemul_syslib
     23  PARAMS ((char *));
     24extern void ldemul_after_parse
     25  PARAMS ((void));
     26extern void ldemul_before_parse
     27  PARAMS ((void));
     28extern void ldemul_after_open
     29  PARAMS ((void));
     30extern void ldemul_after_allocation
     31  PARAMS ((void));
     32extern void ldemul_before_allocation
     33  PARAMS ((void));
     34extern void ldemul_set_output_arch
     35  PARAMS ((void));
     36extern char *ldemul_choose_target
     37  PARAMS ((int, char**));
     38extern void ldemul_choose_mode
     39  PARAMS ((char *));
     40extern void ldemul_list_emulations
     41  PARAMS ((FILE *));
     42extern void ldemul_list_emulation_options
     43  PARAMS ((FILE *));
     44extern char *ldemul_get_script
     45  PARAMS ((int *isfile));
     46extern void ldemul_finish
     47  PARAMS ((void));
     48extern void ldemul_set_symbols
     49  PARAMS ((void));
     50extern void ldemul_create_output_section_statements
     51  PARAMS ((void));
     52extern bfd_boolean ldemul_place_orphan
    3753  PARAMS ((struct lang_input_statement_struct *, asection *));
    38 extern int ldemul_parse_args PARAMS ((int, char **));
    39 extern boolean ldemul_unrecognized_file
     54extern bfd_boolean ldemul_parse_args
     55  PARAMS ((int, char **));
     56extern void ldemul_add_options
     57  PARAMS ((int, char **, int, struct option **, int, struct option **));
     58extern bfd_boolean ldemul_handle_option
     59  PARAMS ((int));
     60extern bfd_boolean ldemul_unrecognized_file
    4061  PARAMS ((struct lang_input_statement_struct *));
    41 extern boolean ldemul_recognized_file
     62extern bfd_boolean ldemul_recognized_file
    4263  PARAMS ((struct lang_input_statement_struct *));
    43 extern boolean ldemul_open_dynamic_archive
     64extern bfd_boolean ldemul_open_dynamic_archive
    4465  PARAMS ((const char *, struct search_dirs *,
    4566           struct lang_input_statement_struct *));
    46 extern char *ldemul_default_target PARAMS ((void));
    47 extern void after_parse_default PARAMS ((void));
    48 extern void after_open_default PARAMS ((void));
    49 extern void after_allocation_default PARAMS ((void));
    50 extern void before_allocation_default PARAMS ((void));
    51 extern void set_output_arch_default PARAMS ((void));
    52 extern void syslib_default PARAMS ((char*));
    53 extern void hll_default PARAMS ((char*));
     67extern char *ldemul_default_target
     68  PARAMS ((int, char**));
     69extern void after_parse_default
     70  PARAMS ((void));
     71extern void after_open_default
     72  PARAMS ((void));
     73extern void after_allocation_default
     74  PARAMS ((void));
     75extern void before_allocation_default
     76  PARAMS ((void));
     77extern void set_output_arch_default
     78  PARAMS ((void));
     79extern void syslib_default
     80  PARAMS ((char*));
     81extern void hll_default
     82  PARAMS ((char*));
    5483extern int  ldemul_find_potential_libraries
    5584  PARAMS ((char *, struct lang_input_statement_struct *));
     85extern struct bfd_elf_version_expr *ldemul_new_vers_pattern
     86  PARAMS ((struct bfd_elf_version_expr *));
    5687
    5788typedef struct ld_emulation_xfer_struct {
     
    79110
    80111  /* Decide which target name to use.  */
    81   char * (*choose_target) PARAMS ((void));
     112  char * (*choose_target) PARAMS ((int, char**));
    82113
    83114  /* Run before allocating output sections.  */
     
    102133     is normally the empty string.  ENTRY is the lang_input_statement
    103134     that should be opened.  */
    104   boolean (*open_dynamic_archive)
     135  bfd_boolean (*open_dynamic_archive)
    105136    PARAMS ((const char *arch, struct search_dirs *,
    106137             struct lang_input_statement_struct *entry));
    107138
    108   /* Place an orphan section.  Return true if it was placed, false if
     139  /* Place an orphan section.  Return TRUE if it was placed, FALSE if
    109140     the default action should be taken.  This field may be NULL, in
    110141     which case the default action will always be taken.  */
    111   boolean (*place_orphan)
     142  bfd_boolean (*place_orphan)
    112143    PARAMS ((struct lang_input_statement_struct *, asection *));
    113144
     
    116147  void  (*set_symbols) PARAMS ((void));
    117148
    118   /* Run to parse args which the base linker doesn't
    119      understand. Return non zero on sucess.  */
    120   int (*parse_args) PARAMS ((int, char **));
     149  /* Parse args which the base linker doesn't understand.
     150     Return TRUE if the arg needs no further processing.  */
     151  bfd_boolean (*parse_args) PARAMS ((int, char **));
     152
     153  /* Hook to add options to parameters passed by the base linker to
     154     getopt_long and getopt_long_only calls.  */
     155  void (*add_options)
     156    PARAMS ((int, char **, int, struct option **, int, struct option **));
     157
     158  /* Companion to the above to handle an option.  Returns TRUE if it is
     159     one of our options.  */
     160  bfd_boolean (*handle_option) PARAMS ((int));
    121161
    122162  /* Run to handle files which are not recognized as object files or
    123      archives.  Return true if the file was handled.  */
    124   boolean (*unrecognized_file)
     163     archives.  Return TRUE if the file was handled.  */
     164  bfd_boolean (*unrecognized_file)
    125165    PARAMS ((struct lang_input_statement_struct *));
    126166
     
    129169
    130170  /* Run to specially handle files which *are* recognized as object
    131      files or archives.  Return true if the file was handled.  */
    132   boolean (*recognized_file)
     171     files or archives.  Return TRUE if the file was handled.  */
     172  bfd_boolean (*recognized_file)
    133173    PARAMS ((struct lang_input_statement_struct *));
    134174
     
    139179  int (* find_potential_libraries)
    140180    PARAMS ((char *, struct lang_input_statement_struct *));
     181
     182  /* Called when adding a new version pattern.  PowerPC64-ELF uses
     183     this hook to add a pattern matching ".foo" for every "foo".  */
     184  struct bfd_elf_version_expr * (*new_vers_pattern)
     185    PARAMS ((struct bfd_elf_version_expr *));
    141186
    142187} ld_emulation_xfer_type;
Note: See TracChangeset for help on using the changeset viewer.