aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-06-30 18:27:41 +0000
committerIan Lance Taylor <ian@airs.com>1993-06-30 18:27:41 +0000
commit267389df6dab1af0e4de221d7caffd2d0e166c47 (patch)
tree73bcfb702512b450f4df3c604b64639a65c5c55c /gas/config
parent41532f54c685028bc19c12140f6822dc5c9ec029 (diff)
downloadgdb-267389df6dab1af0e4de221d7caffd2d0e166c47.zip
gdb-267389df6dab1af0e4de221d7caffd2d0e166c47.tar.gz
gdb-267389df6dab1af0e4de221d7caffd2d0e166c47.tar.bz2
* read.c (cons): Conditionalize parsing of expression. Move
putting value into object file into separate function. Separate out MRI and WANT_BITFIELDS cases into separate functions. (emit_expr): New function to write data into object file. Conditionalize on TC_CONS_FIX_NEW and TC_CONS_RELOC rather than on processor types. (parse_bitfield_cons): New function to parse bitfield expressions as used by i960 assemblers. Only compiled if BITFIELD_CONS_EXPRESSIONS is defined. (parse_mri_cons): New function to parse MRI style strings. Only compiled if MRI is defined. (parse_repeat_cons): New function to parse repeat counts. Only compiled if REPEAT_CONS_EXPRESSIONS is defined. * read.h (emit_expr): Added declaration of new function. * config/tc-a29k.h (TC_CONS_RELOC): Define to be RELOC_32. * config/tc-h8300.h (TC_CONS_RELOC): Define to be R_RELWORD. * config/tc-hppa.c (parse_cons_expression_hppa): New function to parse a HPPA expression, rather than special case in cons function. (cons_fix_new_hppa): New function to emit an HPPA fixup, rather than special case in emit_expr function. * config/tc-hppa.h (TC_PARSE_CONS_EXPRESSION, TC_CONS_FIX_NEW): Define to use new functions from tc-hppa.c. * config/tc-i960.h (BITFIELD_CONS_EXPRESSIONS): Define. (WANT_BITFIELDS): Removed; now obsolete. * config/tc-mips.h (REPEAT_CONS_EXPRESSIONS): Define. * config/tc-ns32k.c (cons_fix_new_ns32k): New function to emit an NS32K fixup, rather than special case in emit_expr function. * config/tc-ns32k.h (TC_CONS_FIX_NEW): Define to be cons_fix_new_ns32k. Also use PARAMS rather than checking __STDC__. * config/tc-sparc.h (TC_CONS_RELOC): Define to RELOC_32. * write.c (relax_and_size_seg, adjust_reloc_syms, write_contents): Don't core dump if gas has no information about a section.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-a29k.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/config/tc-a29k.h b/gas/config/tc-a29k.h
index 6c2f641..2096098 100644
--- a/gas/config/tc-a29k.h
+++ b/gas/config/tc-a29k.h
@@ -33,10 +33,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
on the h8, this is allways true, since no fixup is done
*/
#define TC_COUNT_RELOC(x) (x->fx_addsy)
-/* end of tc-a29k.h */
+#define TC_CONS_RELOC RELOC_32
#define COFF_FLAGS F_AR32W
#define reloc_type int
#define NEED_FX_R_TYPE
#define ZERO_BASED_SEGMENTS
+
+/* end of tc-a29k.h */