# This shell script emits a C file. -*- C -*-
-# Copyright (C) 2000-2015 Free Software Foundation, Inc.
+# Copyright (C) 2000-2018 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
fragment <<EOF
#include "libiberty.h"
-#include "libbfd.h"
#include "elf-bfd.h"
#include "elf/sh.h"
#include "elf32-sh64.h"
also look through incoming relocs and kill the ones marking
relaxation areas, but that wouldn't be TRT. */
einfo
- (_("%P: Sorry, turning off relaxing: .cranges section in input.\n"));
+ (_("%P: sorry, turning off relaxing: .cranges section in input\n"));
einfo (_(" A .cranges section is present in:\n"));
{
= bfd_get_section_by_name (f->the_bfd,
SH64_CRANGES_SECTION_NAME);
if (input_cranges != NULL)
- einfo (" %I\n", f);
+ einfo (" %pI\n", f);
}
}
if (elf_section_data (isec)->this_hdr.sh_flags
& (SHF_SH5_ISA32 | SHF_SH5_ISA32_MIXED))
{
- einfo (_("%P: Sorry, turning off relaxing: SHmedia sections present.\n"));
- einfo (" %I\n", f);
+ einfo (_("%P: sorry, turning off relaxing: SHmedia sections present\n"));
+ einfo (" %pI\n", f);
DISABLE_RELAXATION;
goto done_scanning_shmedia_sections;
}
bfd_vma iflags_isa = 0;
if (bfd_get_flavour (link_info.output_bfd) != bfd_target_elf_flavour)
- einfo (_("%FError: non-ELF output formats are not supported by this target's linker.\n"));
+ einfo (_("%F%P: error: non-ELF output formats are not supported by this target's linker\n"));
sh64_sec_data = sh64_elf_section_data (osec)->sh64_info;
break_1:
/* Check that all input sections have the same contents-type flags
- as the first input section. */
+ as the first input section. */
{
LANG_FOR_EACH_INPUT_STATEMENT (f)
{
| SEC_DEBUGGING);
if (cranges == NULL)
einfo
- (_("%P%E%F: Can't make .cranges section\n"));
+ (_("%F%P: can't make .cranges section: %E\n"));
}
/* We don't need to look at more input sections,
break_1:
/* Check that all input sections have the same contents-type flags
- as the first input section. */
+ as the first input section. */
{
LANG_FOR_EACH_INPUT_STATEMENT (f)
{
{
oflags_isa = SHF_SH5_ISA32_MIXED;
- BFD_ASSERT (sh64_elf_section_data (osec)->sh64_info);
+ ASSERT (sh64_elf_section_data (osec)->sh64_info);
sh64_elf_section_data (osec)->sh64_info->contents_flags
= SHF_SH5_ISA32_MIXED;
if (cranges->contents != NULL)
free (cranges->contents);
- BFD_ASSERT (sh64_elf_section_data (cranges)->sh64_info != NULL);
+ ASSERT (sh64_elf_section_data (cranges)->sh64_info != NULL);
/* Make sure we have .cranges in memory even if there were only
assembler-generated .cranges. */
/* If we emit relocatable contents, we need a
relocation for the start address. */
- if (link_info.relocatable || link_info.emitrelocations)
+ if (bfd_link_relocatable (&link_info)
+ || link_info.emitrelocations)
{
/* FIXME: We could perhaps use lang_add_reloc and
friends here, but I'm not really sure that
if (cr_addr_order == NULL)
{
- einfo (_("%P%F: bfd_new_link_order failed\n"));
+ einfo (_("%F%P: bfd_new_link_order failed\n"));
return;
}