/* evax-emh.c -- BFD back-end for ALPHA EVAX (openVMS/Alpha) files.
- Copyright 1996, 1997 Free Software Foundation, Inc.
+ Copyright 1996, 1997, 1998 Free Software Foundation, Inc.
EMH record handling functions
and
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#include <stdio.h>
#include <ctype.h>
#include "bfd.h"
{
static unsigned char tbuf[18];
#ifndef VMS
-#include <sys/types.h>
#include <time.h>
char *pnt;
char *fname, *fout, *fptr;
- fname = strdup (bfd_get_filename (abfd));
- if (fname == 0)
- {
- bfd_set_error (bfd_error_no_memory);
- return -1;
- }
+ fptr = bfd_get_filename (abfd);
+ fname = (char *) alloca (strlen (fptr) + 1);
+ strcpy (fname, fptr);
fout = strrchr (fname, ']');
if (fout == 0)
fout = strchr (fname, ':');
*fptr = 0;
}
_bfd_evax_output_counted (abfd, fout);
- free (fname);
}
else
_bfd_evax_output_counted (abfd, "NONAME");
PRIV(eeom_data).eeom_b_comcod = *(evax_rec + 8);
if (PRIV(eeom_data).eeom_b_comcod > 1)
{
- (*_bfd_error_handler) ("Object module NOT error-free !\n");
+ (*_bfd_error_handler) (_("Object module NOT error-free !\n"));
bfd_set_error (bfd_error_bad_value);
return -1;
}