/* mri.c -- handle MRI style linker scripts
- Copyright 1991, 1992, 1993, 1994, 1996, 1997, 1998, 1999, 2000, 2001,
- 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1991-2014 Free Software Foundation, Inc.
Contributed by Steve Chamberlain <sac@cygnus.com>.
This file is part of the GNU Binutils.
};
static unsigned int symbol_truncate = 10000;
+static etree_type *base; /* Relocation base - or null */
+
static struct section_name_struct *order;
static struct section_name_struct *only_load;
static struct section_name_struct *address;
ptr = &((*ptr)->next);
}
- *ptr = xmalloc (sizeof (struct section_name_struct));
+ *ptr = (struct section_name_struct *)
+ xmalloc (sizeof (struct section_name_struct));
return ptr;
}
base = p->vma ? p->vma : exp_nameop (NAME, ".");
lang_enter_output_section_statement (p->name, base,
- p->ok_to_load ? 0 : noload_section,
- align, subalign, NULL, 0);
+ p->ok_to_load ? normal_section : noload_section,
+ align, subalign, NULL, 0, 0);
base = 0;
- tmp = xmalloc (sizeof *tmp);
+ tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
tmp->next = NULL;
tmp->spec.name = p->name;
tmp->spec.exclude_name_list = NULL;
tmp->spec.sorted = none;
+ tmp->spec.section_flag_list = NULL;
lang_add_wild (NULL, tmp, FALSE);
/* If there is an alias for this section, add it too. */
for (aptr = alias; aptr; aptr = aptr->next)
if (strcmp (aptr->alias, p->name) == 0)
{
- tmp = xmalloc (sizeof *tmp);
+ tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
tmp->next = NULL;
tmp->spec.name = aptr->name;
tmp->spec.exclude_name_list = NULL;
tmp->spec.sorted = none;
+ tmp->spec.section_flag_list = NULL;
lang_add_wild (NULL, tmp, FALSE);
}
void
mri_public (const char *name, etree_type *exp)
{
- lang_add_assignment (exp_assop ('=', name, exp));
+ lang_add_assignment (exp_assign (name, exp, FALSE));
}
void