aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-05-09 04:53:50 +0000
committerKen Raeburn <raeburn@cygnus>1995-05-09 04:53:50 +0000
commit1e63de912e76dd1eee9babc22e04a31655c332ef (patch)
treeaede5ca198f053a7152d410075d2f63c2d5112c8 /gas
parentfd1fdba2580ad1c6149f422a57bc4c427670461b (diff)
downloadgdb-1e63de912e76dd1eee9babc22e04a31655c332ef.zip
gdb-1e63de912e76dd1eee9babc22e04a31655c332ef.tar.gz
gdb-1e63de912e76dd1eee9babc22e04a31655c332ef.tar.bz2
* obj.h (struct format_ops) [BFD_ASSEMBLER]: New type.
(this_format) [BFD_ASSEMBLER]: Declare new variable, if not already defined as a macro.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/obj.h80
2 files changed, 43 insertions, 43 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 52f1b7b..9850496d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+Tue May 9 00:47:03 1995 Ken Raeburn (raeburn@kr-pc.cygnus.com)
+
+ * obj.h (struct format_ops) [BFD_ASSEMBLER]: New type.
+ (this_format) [BFD_ASSEMBLER]: Declare new variable, if not
+ already defined as a macro.
+
Mon May 8 21:44:13 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
* subsegs.h (seg_info): Provide dummy version for
diff --git a/gas/obj.h b/gas/obj.h
index 1f48a5d..e3d45c2 100644
--- a/gas/obj.h
+++ b/gas/obj.h
@@ -19,55 +19,49 @@
along with GAS; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-#if __STDC__ == 1
-
-char *obj_default_output_file_name (void);
-void obj_crawl_symbol_chain (object_headers * headers);
-void obj_emit_relocations (char **where, fixS * fixP, relax_addressT segment_address_in_file);
-void obj_emit_strings (char **where);
-void obj_emit_symbols (char **where, symbolS * symbol_rootP);
-void obj_header_append (char **where, object_headers * headers);
-void obj_read_begin_hook (void);
-
-#ifndef obj_symbol_new_hook
-void obj_symbol_new_hook (symbolS * symbolP);
-#endif /* obj_symbol_new_hook */
-
-void obj_symbol_to_chars (char **where, symbolS * symbolP);
-
+char *obj_default_output_file_name PARAMS ((void));
+void obj_emit_relocations PARAMS ((char **where, fixS * fixP,
+ relax_addressT segment_address_in_file));
+void obj_emit_strings PARAMS ((char **where));
+void obj_emit_symbols PARAMS ((char **where, symbolS * symbols));
+void obj_read_begin_hook PARAMS ((void));
+#ifndef BFD_ASSEMBLER
+void obj_crawl_symbol_chain PARAMS ((object_headers * headers));
+void obj_header_append PARAMS ((char **where, object_headers * headers));
#ifndef obj_pre_write_hook
-void obj_pre_write_hook (object_headers * headers);
-#endif /* obj_pre_write_hook */
-
-#else /* not __STDC__ */
-
-char *obj_default_output_file_name ();
-void obj_crawl_symbol_chain ();
-void obj_emit_relocations ();
-void obj_emit_strings ();
-void obj_emit_symbols ();
-void obj_header_append ();
-void obj_read_begin_hook ();
+void obj_pre_write_hook PARAMS ((object_headers * headers));
+#endif
+#endif
#ifndef obj_symbol_new_hook
-void obj_symbol_new_hook ();
-#endif /* obj_symbol_new_hook */
-
-void obj_symbol_to_chars ();
-
-#ifndef obj_pre_write_hook
-void obj_pre_write_hook ();
-#endif /* obj_pre_write_hook */
+void obj_symbol_new_hook PARAMS ((symbolS * symbolP));
+#endif
-#endif /* not __STDC__ */
+void obj_symbol_to_chars PARAMS ((char **where, symbolS * symbolP));
extern const pseudo_typeS obj_pseudo_table[];
-/*
- * Local Variables:
- * comment-column: 0
- * fill-column: 131
- * End:
- */
+#ifdef BFD_ASSEMBLER
+struct format_ops {
+ int flavor;
+ unsigned char dfl_leading_underscore : 1;
+ unsigned char emit_section_symbols : 1;
+ void (*frob_symbol) PARAMS ((symbolS *, int *));
+ void (*frob_file) PARAMS ((void));
+ bfd_vma (*s_get_size) PARAMS ((symbolS *));
+ void (*s_set_size) PARAMS ((symbolS *, bfd_vma));
+ bfd_vma (*s_get_align) PARAMS ((symbolS *));
+ void (*s_set_align) PARAMS ((symbolS *, bfd_vma));
+ void (*copy_symbol_attributes) PARAMS ((symbolS *, symbolS *));
+ void (*generate_asm_lineno) PARAMS ((const char *, int));
+ void (*process_stab) (/* what, string, type, other, desc */);
+ int (*sec_sym_ok_for_reloc) PARAMS ((asection *));
+ void (*pop_insert) PARAMS ((void));
+};
+
+#ifndef this_format
+COMMON const struct format_ops *this_format;
+#endif
+#endif
/* end of obj.h */