home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / binutils-2.7-src.tgz / tar.out / fsf / binutils / gas / obj.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  3KB  |  78 lines

  1. /* obj.h - defines the object dependent hooks for all object
  2.    format backends.
  3.  
  4.    Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
  5.  
  6.    This file is part of GAS, the GNU Assembler.
  7.  
  8.    GAS is free software; you can redistribute it and/or modify
  9.    it under the terms of the GNU General Public License as published by
  10.    the Free Software Foundation; either version 2, or (at your option)
  11.    any later version.
  12.  
  13.    GAS is distributed in the hope that it will be useful,
  14.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.    GNU General Public License for more details.
  17.  
  18.    You should have received a copy of the GNU General Public License
  19.    along with GAS; see the file COPYING.  If not, write to
  20.    the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  21.  
  22. char *obj_default_output_file_name PARAMS ((void));
  23. void obj_emit_relocations PARAMS ((char **where, fixS * fixP,
  24.                    relax_addressT segment_address_in_file));
  25. void obj_emit_strings PARAMS ((char **where));
  26. void obj_emit_symbols PARAMS ((char **where, symbolS * symbols));
  27. #ifndef obj_read_begin_hook
  28. void obj_read_begin_hook PARAMS ((void));
  29. #endif
  30. #ifndef BFD_ASSEMBLER
  31. void obj_crawl_symbol_chain PARAMS ((object_headers * headers));
  32. void obj_header_append PARAMS ((char **where, object_headers * headers));
  33. #ifndef obj_pre_write_hook
  34. void obj_pre_write_hook PARAMS ((object_headers * headers));
  35. #endif
  36. #endif
  37.  
  38. #ifndef obj_symbol_new_hook
  39. void obj_symbol_new_hook PARAMS ((symbolS * symbolP));
  40. #endif
  41.  
  42. void obj_symbol_to_chars PARAMS ((char **where, symbolS * symbolP));
  43.  
  44. extern const pseudo_typeS obj_pseudo_table[];
  45.  
  46. #ifdef BFD_ASSEMBLER
  47. struct format_ops {
  48.   int flavor;
  49.   unsigned dfl_leading_underscore : 1;
  50.   unsigned emit_section_symbols : 1;
  51.   void (*frob_symbol) PARAMS ((symbolS *, int *));
  52.   void (*frob_file) PARAMS ((void));
  53.   bfd_vma (*s_get_size) PARAMS ((symbolS *));
  54.   void (*s_set_size) PARAMS ((symbolS *, bfd_vma));
  55.   bfd_vma (*s_get_align) PARAMS ((symbolS *));
  56.   void (*s_set_align) PARAMS ((symbolS *, bfd_vma));
  57.   void (*copy_symbol_attributes) PARAMS ((symbolS *, symbolS *));
  58.   void (*generate_asm_lineno) PARAMS ((const char *, int));
  59.   void (*process_stab) PARAMS ((segT, int, const char *, int, int, int));
  60.   int (*sec_sym_ok_for_reloc) PARAMS ((asection *));
  61.   void (*pop_insert) PARAMS ((void));
  62.   /* For configurations using ECOFF_DEBUGGING, this callback is used.  */
  63.   void (*ecoff_set_ext) PARAMS ((symbolS *, struct ecoff_extr *));
  64.  
  65.   void (*read_begin_hook) PARAMS ((void));
  66.   void (*symbol_new_hook) PARAMS ((symbolS *));
  67. };
  68.  
  69. extern const struct format_ops elf_format_ops;
  70. extern const struct format_ops ecoff_format_ops;
  71.  
  72. #ifndef this_format
  73. COMMON const struct format_ops *this_format;
  74. #endif
  75. #endif
  76.  
  77. /* end of obj.h */
  78.