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/bfd/libnlm.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* BFD back-end data structures for NLM (NetWare Loadable Modules) files.
    2    Copyright 1993, 1994 Free Software Foundation, Inc.
     2   Copyright 1993, 1994, 2001, 2002 Free Software Foundation, Inc.
    33   Written by Cygnus Support.
    44
     
    5353} nlmNAME(symbol_type);
    5454
    55 extern boolean nlm_mkobject PARAMS ((bfd *));
    56 extern boolean nlm_set_arch_mach PARAMS ((bfd *, enum bfd_architecture,
    57                                           unsigned long));
     55extern bfd_boolean nlm_mkobject
     56  PARAMS ((bfd *));
     57extern bfd_boolean nlm_set_arch_mach
     58  PARAMS ((bfd *, enum bfd_architecture, unsigned long));
    5859
    5960extern void nlmNAME(get_symbol_info)
    60      PARAMS ((bfd *, asymbol *, symbol_info *));
     61  PARAMS ((bfd *, asymbol *, symbol_info *));
    6162extern long nlmNAME(get_symtab_upper_bound)
    62      PARAMS ((bfd *));
     63  PARAMS ((bfd *));
    6364extern long nlmNAME(get_symtab)
    64      PARAMS ((bfd *, asymbol **));
     65  PARAMS ((bfd *, asymbol **));
    6566extern asymbol *nlmNAME(make_empty_symbol)
    66      PARAMS ((bfd *));
     67  PARAMS ((bfd *));
    6768extern void nlmNAME(print_symbol)
    68      PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type));
     69  PARAMS ((bfd *, PTR, asymbol *, bfd_print_symbol_type));
    6970extern long nlmNAME(get_reloc_upper_bound)
    70      PARAMS ((bfd *, asection *));
     71  PARAMS ((bfd *, asection *));
    7172extern long nlmNAME(canonicalize_reloc)
    72      PARAMS ((bfd *, asection *, arelent **, asymbol **));
     73  PARAMS ((bfd *, asection *, arelent **, asymbol **));
    7374extern const bfd_target *nlmNAME(object_p)
    74      PARAMS ((bfd *));
    75 extern boolean nlmNAME(set_arch_mach)
    76      PARAMS ((bfd *, enum bfd_architecture, unsigned long));
    77 extern boolean nlmNAME(set_section_contents)
    78      PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
    79 extern boolean nlmNAME(write_object_contents)
    80      PARAMS ((bfd *));
     75  PARAMS ((bfd *));
     76extern bfd_boolean nlmNAME(set_arch_mach)
     77  PARAMS ((bfd *, enum bfd_architecture, unsigned long));
     78extern bfd_boolean nlmNAME(set_section_contents)
     79  PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
     80extern bfd_boolean nlmNAME(write_object_contents)
     81  PARAMS ((bfd *));
    8182
    8283/* Some private data is stashed away for future use using the tdata pointer
     
    162163  enum bfd_architecture arch;
    163164  /* Machine.  */
    164   long mach;
     165  unsigned int mach;
    165166  /* Some NLM formats do not use the uninitialized data section, so
    166167     all uninitialized data must be put into the regular data section
    167168     instead.  */
    168   boolean no_uninitialized_data;
     169  bfd_boolean no_uninitialized_data;
    169170  /* Some NLM formats have a prefix on the file.  If this function is
    170171     not NULL, it will be called by nlm_object_p.  It should return
    171      true if this file could match this format, and it should leave
    172      the BFD such that a bfd_read will pick up the fixed header.  */
    173   boolean (*nlm_backend_object_p) PARAMS ((bfd *));
     172     TRUE if this file could match this format, and it should leave
     173     the BFD such that a bfd_bread will pick up the fixed header.  */
     174  bfd_boolean (*nlm_backend_object_p) PARAMS ((bfd *));
    174175  /* Write out the prefix.  This function may be NULL.  This must
    175176     write out the same number of bytes as is in the field
    176177     optional_prefix_size.  */
    177   boolean (*nlm_write_prefix) PARAMS ((bfd *));
     178  bfd_boolean (*nlm_write_prefix) PARAMS ((bfd *));
    178179  /* Read a relocation fixup from abfd.  The reloc information is
    179180     machine specific.  The second argument is the symbol if this is
     
    183184     not need to fill in the sym_ptr_ptr field for a reloc against an
    184185     import symbol.  */
    185   boolean (*nlm_read_reloc) PARAMS ((bfd *, nlmNAME(symbol_type) *,
    186                                     asection **, arelent *));
     186  bfd_boolean (*nlm_read_reloc)
     187    PARAMS ((bfd *, nlmNAME(symbol_type) *, asection **, arelent *));
    187188  /* To make objcopy to an i386 NLM work, the i386 backend needs a
    188189     chance to work over the relocs.  This is a bit icky.  */
    189   boolean (*nlm_mangle_relocs) PARAMS ((bfd *, asection *, PTR data,
    190                                         bfd_vma offset,
    191                                         bfd_size_type count));
     190  bfd_boolean (*nlm_mangle_relocs)
     191    PARAMS ((bfd *, asection *, PTR data, bfd_vma offset, bfd_size_type count));
    192192  /* Read an import record from abfd.  It would be nice if this
    193193     were in a machine-dependent format, but it doesn't seem to be. */
    194   boolean (*nlm_read_import) PARAMS ((bfd *, nlmNAME(symbol_type) *));
     194  bfd_boolean (*nlm_read_import) PARAMS ((bfd *, nlmNAME(symbol_type) *));
    195195  /* Write an import record to abfd. */
    196   boolean (*nlm_write_import) PARAMS ((bfd *, asection *, arelent *));
     196  bfd_boolean (*nlm_write_import) PARAMS ((bfd *, asection *, arelent *));
    197197  /* Set the section for a public symbol.  This may be NULL, in which
    198198     case a default method will be used.  */
    199   boolean (*nlm_set_public_section) PARAMS ((bfd *, nlmNAME(symbol_type) *));
     199  bfd_boolean (*nlm_set_public_section)
     200    PARAMS ((bfd *, nlmNAME(symbol_type) *));
    200201  /* Get the offset to write out for a public symbol.  This may be
    201202     NULL, in which case a default method will be used.  */
    202203  bfd_vma (*nlm_get_public_offset) PARAMS ((bfd *, asymbol *));
    203204  /* Swap the fixed header in and out */
    204   void (*nlm_swap_fhdr_in) PARAMS ((bfd *,
    205                                     PTR,
    206                                     Nlm_Internal_Fixed_Header *));
    207   void (*nlm_swap_fhdr_out) PARAMS ((bfd *,
    208                                      struct nlm_internal_fixed_header *,
    209                                      PTR));
     205  void (*nlm_swap_fhdr_in)
     206    PARAMS ((bfd *, PTR, Nlm_Internal_Fixed_Header *));
     207  void (*nlm_swap_fhdr_out)
     208    PARAMS ((bfd *, struct nlm_internal_fixed_header *, PTR));
    210209  /* Write out an external reference.  */
    211   boolean (*nlm_write_external) PARAMS ((bfd *, bfd_size_type,
    212                                          asymbol *,
    213                                          struct reloc_and_sec *));
    214   boolean (*nlm_write_export) PARAMS ((bfd *, asymbol *, bfd_vma));
     210  bfd_boolean (*nlm_write_external)
     211    PARAMS ((bfd *, bfd_size_type, asymbol *, struct reloc_and_sec *));
     212  bfd_boolean (*nlm_write_export) PARAMS ((bfd *, asymbol *, bfd_vma));
    215213};
    216214
Note: See TracChangeset for help on using the changeset viewer.