From ace68c4ed92c1d7820a3bda5d78f56a5a34932c2 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Tue, 26 Nov 1991 02:15:13 +0000 Subject: 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) --- gas/subsegs.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'gas/subsegs.h') 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 */ -- cgit v1.1