From 4c63da97a708e211a7141e29082ab589cbdbcb12 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 26 Jan 2000 22:48:31 +0000 Subject: This set of patches add support for aout emulation on the x86 assembler. ie. You will be able to do "as --em=i386aout" on an x86 linux-elf assembler to generate aout format object files, rather than using a separate assembler. The aout emulation is enabled by giving "--enable-targets=i386-linuxaout" to configure. Oh yeah, there's a couple of fixes too. Error messages shouldn't be passed to printf in the format arg just in case someone puts a `%' in the message. --- gas/gasp.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gas/gasp.c') diff --git a/gas/gasp.c b/gas/gasp.c index 42b3076..dd4674c 100644 --- a/gas/gasp.c +++ b/gas/gasp.c @@ -1,5 +1,6 @@ /* gasp.c - Gnu assembler preprocessor main program. - Copyright (C) 1994, 95, 96, 97, 98, 1999 Free Software Foundation, Inc. + Copyright (C) 1994, 95, 96, 97, 98, 99, 2000 + Free Software Foundation, Inc. Written by Steve and Judy Chamberlain of Cygnus Support, sac@cygnus.com @@ -893,7 +894,7 @@ exp_get_abs (emsg, idx, in, val) exp_t res; idx = exp_parse (idx, in, &res); if (res.add_symbol.len || res.sub_symbol.len) - ERROR ((stderr, emsg)); + ERROR ((stderr, "%s", emsg)); *val = res.value; return idx; } @@ -1384,7 +1385,7 @@ do_data (idx, in, size) idx = exp_parse (idx, in, &e); exp_string (&e, &acc); sb_add_char (&acc, 0); - fprintf (outfile, acc.ptr); + fprintf (outfile, "%s", acc.ptr); if (idx < in->len && in->ptr[idx] == ',') { fprintf (outfile, ","); @@ -1922,7 +1923,7 @@ process_file () || line.ptr[0] == '!')) { /* MRI line comment. */ - fprintf (outfile, sb_name (&line)); + fprintf (outfile, "%s", sb_name (&line)); } else { -- cgit v1.1