/* Renesas RX specific support for 32-bit ELF.
- Copyright (C) 2008-2020 Free Software Foundation, Inc.
+ Copyright (C) 2008-2021 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
return TRUE;
error_return:
- if (free_contents != NULL)
- free (free_contents);
+ free (free_contents);
if (shndx_buf != NULL)
{
free (shndx_buf);
}
- if (free_intsyms != NULL)
- free (free_intsyms);
+ free (free_intsyms);
return FALSE;
}
Returns a static pointer. */
static const char *
-describe_flags (flagword flags)
+describe_flags (flagword flags, char *buf)
{
- static char buf [128];
-
buf[0] = 0;
if (flags & E_FLAG_RX_64BIT_DOUBLES)
}
else
{
+ char buf[128];
+
_bfd_error_handler (_("there is a conflict merging the"
" ELF header flags from %pB"),
ibfd);
_bfd_error_handler (_(" the input file's flags: %s"),
- describe_flags (new_flags));
+ describe_flags (new_flags, buf));
_bfd_error_handler (_(" the output file's flags: %s"),
- describe_flags (old_flags));
+ describe_flags (old_flags, buf));
error = TRUE;
}
}
{
FILE * file = (FILE *) ptr;
flagword flags;
+ char buf[128];
BFD_ASSERT (abfd != NULL && ptr != NULL);
flags = elf_elfheader (abfd)->e_flags;
fprintf (file, _("private flags = 0x%lx:"), (long) flags);
- fprintf (file, "%s", describe_flags (flags));
+ fprintf (file, "%s", describe_flags (flags, buf));
return TRUE;
}