aboutsummaryrefslogtreecommitdiff
path: root/ld/mri.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-12-11 22:55:55 +0000
committerIan Lance Taylor <ian@airs.com>1993-12-11 22:55:55 +0000
commitfcf276c4958f7cc906ec389f003aa2a713c98528 (patch)
tree6f9a19c2ca8cac0625898fa485a46ffeb17c6382 /ld/mri.c
parent2c6635a46f894fc4e3c0ea6a9023f0ae43b3451f (diff)
downloadfsf-binutils-gdb-fcf276c4958f7cc906ec389f003aa2a713c98528.zip
fsf-binutils-gdb-fcf276c4958f7cc906ec389f003aa2a713c98528.tar.gz
fsf-binutils-gdb-fcf276c4958f7cc906ec389f003aa2a713c98528.tar.bz2
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.
Diffstat (limited to 'ld/mri.c')
-rw-r--r--ld/mri.c21
1 files changed, 10 insertions, 11 deletions
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);