From fcf276c4958f7cc906ec389f003aa2a713c98528 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 11 Dec 1993 22:55:55 +0000 Subject: Made many changes to eliminate gcc warnings. Made various cosmetic changes, declared various things in header files, removed various extern declarations from .c files. No substantive changes. --- ld/mri.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'ld/mri.c') diff --git a/ld/mri.c b/ld/mri.c index 03ef260..9110cb0 100644 --- a/ld/mri.c +++ b/ld/mri.c @@ -28,10 +28,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "bfd.h" #include "sysdep.h" #include "ld.h" +#include "ldexp.h" #include "ldlang.h" +#include "ldmisc.h" #include "mri.h" #include "ldgram.h" -#include "ldexp.h" struct section_name_struct { @@ -117,8 +118,6 @@ mri_only_load (name) } -etree_type *base; - void mri_base (exp) etree_type *exp; @@ -242,10 +241,10 @@ mri_draw_tree () if (base == 0) { base = p->vma ? p->vma :exp_nameop(NAME, "."); } - lang_enter_output_section_statement(p->name, base, - p->ok_to_load ? 0 : - SEC_NEVER_LOAD, 1, - align, subalign); + lang_enter_output_section_statement (p->name, base, + p->ok_to_load ? 0 : SEC_NEVER_LOAD, + 1, align, subalign, + (etree_type *) NULL); base = 0; lang_add_wild(p->name, (char *)NULL); /* If there is an alias for this section, add it too */ @@ -306,7 +305,7 @@ void mri_name (name) CONST char *name; { - lang_add_output(name); + lang_add_output(name, 1); } @@ -317,15 +316,15 @@ mri_format (name) { if (strcmp(name, "S") == 0) { - lang_add_output_format("srec"); + lang_add_output_format("srec", 1); } else if (strcmp(name, "IEEE") == 0) { - lang_add_output_format("ieee"); + lang_add_output_format("ieee", 1); } else if (strcmp(name, "COFF") == 0) { - lang_add_output_format("coff-m68k"); + lang_add_output_format("coff-m68k", 1); } else { einfo("%P%F: unknown format type %s\n", name); -- cgit v1.1