diff options
author | Alan Modra <amodra@gmail.com> | 2018-02-21 13:09:46 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-02-26 09:34:15 +1030 |
commit | 38f14ab8fcfa4eab8bab417a5a165b7403ef9b0e (patch) | |
tree | 9dd03091c1cec078dfdd0349309f2b686792dd03 /bfd/elf32-i370.c | |
parent | 6e05870c978aaa057b5ae0f525a2e9b803047ac8 (diff) | |
download | fsf-binutils-gdb-38f14ab8fcfa4eab8bab417a5a165b7403ef9b0e.zip fsf-binutils-gdb-38f14ab8fcfa4eab8bab417a5a165b7403ef9b0e.tar.gz fsf-binutils-gdb-38f14ab8fcfa4eab8bab417a5a165b7403ef9b0e.tar.bz2 |
assorted target messages
bfd/
* elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
* elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
* elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
* elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
* elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
* elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
* elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
* elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
* elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
* mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
error/warning messages.
ld/
* testsuite/ld-cris/pcrelcp-1.d,
* testsuite/ld-mmix/start-2.d: Update.
Diffstat (limited to 'bfd/elf32-i370.c')
-rw-r--r-- | bfd/elf32-i370.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/bfd/elf32-i370.c b/bfd/elf32-i370.c index 37e7733..79ec159 100644 --- a/bfd/elf32-i370.c +++ b/bfd/elf32-i370.c @@ -1068,7 +1068,6 @@ i370_elf_relocate_section (bfd *output_bfd, Elf_Internal_Sym *sym = NULL; asection *sec = NULL; struct elf_link_hash_entry * h = NULL; - const char *sym_name = NULL; reloc_howto_type *howto; unsigned long r_symndx; bfd_vma relocation; @@ -1094,7 +1093,6 @@ i370_elf_relocate_section (bfd *output_bfd, { sym = local_syms + r_symndx; sec = local_sections[r_symndx]; - sym_name = "<local symbol>"; relocation = _bfd_elf_rela_local_sym (output_bfd, sym, & sec, rel); addend = rel->r_addend; @@ -1111,7 +1109,6 @@ i370_elf_relocate_section (bfd *output_bfd, while (h->root.type == bfd_link_hash_indirect || h->root.type == bfd_link_hash_warning) h = (struct elf_link_hash_entry *) h->root.u.i.link; - sym_name = h->root.root.string; if (h->root.type == bfd_link_hash_defined || h->root.type == bfd_link_hash_defweak) { @@ -1301,28 +1298,15 @@ i370_elf_relocate_section (bfd *output_bfd, case (int) R_I370_COPY: case (int) R_I370_RELATIVE: - _bfd_error_handler - /* xgettext:c-format */ - (_("%pB: Relocation %s is not yet supported for symbol %s."), - input_bfd, - i370_elf_howto_table[(int) r_type]->name, - sym_name); - + /* xgettext:c-format */ + _bfd_error_handler (_("%pB: %s unsupported"), + input_bfd, + i370_elf_howto_table[(int) r_type]->name); bfd_set_error (bfd_error_invalid_operation); ret = FALSE; continue; } -#ifdef DEBUG - fprintf (stderr, "\ttype = %s (%d), name = %s, symbol index = %ld, offset = %ld, addend = %ld\n", - howto->name, - (int)r_type, - sym_name, - r_symndx, - (long) offset, - (long) addend); -#endif - r = _bfd_final_link_relocate (howto, input_bfd, input_section, contents, offset, relocation, addend); |