aboutsummaryrefslogtreecommitdiff
path: root/gas/subsegs.h
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1991-11-26 02:15:13 +0000
committerSteve Chamberlain <sac@cygnus>1991-11-26 02:15:13 +0000
commitace68c4ed92c1d7820a3bda5d78f56a5a34932c2 (patch)
tree222f709334f5834961c01a2f754ea3c1ecc496b1 /gas/subsegs.h
parent605fe2b1b0f21095057f3869e632424ba92b4c84 (diff)
downloadgdb-ace68c4ed92c1d7820a3bda5d78f56a5a34932c2.zip
gdb-ace68c4ed92c1d7820a3bda5d78f56a5a34932c2.tar.gz
gdb-ace68c4ed92c1d7820a3bda5d78f56a5a34932c2.tar.bz2
Mon Nov 25 17:26:22 1991 Steve Chamberlain (sac at cygnus.com)
* as.c: (perform_an_assembly_pass): moved declaration of i to avoid a syntax error. Now always create the three default sections when in MANY_SEGMENTS mode. * as.h: New improved way of specifying MANY_SEGMENTS * configure.in: hds object format is now coff-bfd * subsegs.h: add line numbers and section stuff to the segment_info structure. (But go back later and fix.. this is COFF specific)
Diffstat (limited to 'gas/subsegs.h')
-rw-r--r--gas/subsegs.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/gas/subsegs.h b/gas/subsegs.h
index b8dbaf7..fa0f499 100644
--- a/gas/subsegs.h
+++ b/gas/subsegs.h
@@ -5,7 +5,7 @@ This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
+the Free Software Foundation; either version 2, or (at your option)
any later version.
GAS is distributed in the hope that it will be useful,
@@ -56,10 +56,32 @@ extern frchainS * frchain_now;
/* chain, even if it contains no (complete) */
/* frags. */
+
+#ifdef MANY_SEGMENTS
+typedef struct
+{
+ frchainS *frchainP;
+ int hadone;
+ int user_stuff;
+ struct frag *frag_root;
+ struct frag *last_frag;
+ fixS *fix_root;
+ fixS *fix_tail;
+ struct internal_scnhdr scnhdr;
+ symbolS *dot;
+
+ struct lineno_list *lineno_list_head;
+ struct lineno_list *lineno_list_tail;
+
+} segment_info_type;
+segment_info_type segment_info[];
+#else
extern frchainS * data0_frchainP;
/* Sentinel for frchain crawling. */
/* Points to the 1st data-segment frchain. */
/* (Which is pointed to by the last text- */
/* segment frchain.) */
+#endif
+
/* end: subsegs.h */