summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-05-26 18:57:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-05-26 18:57:09 +0000
commit81f38a7b4ea6a52aed2db65a5a9b382e2be1c195 (patch)
tree95970afbbaa1c0a4d5ab97f63209cc77dc4d0e01 /gnu/usr.bin
parentbfa750f2d30c087c589b7043cf9ede0f73fd63f1 (diff)
Improve diffability against m68k.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils-2.17/bfd/elf32-m88k.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/usr.bin/binutils-2.17/bfd/elf32-m88k.c b/gnu/usr.bin/binutils-2.17/bfd/elf32-m88k.c
index ac436d4f15a..174f2cecdf6 100644
--- a/gnu/usr.bin/binutils-2.17/bfd/elf32-m88k.c
+++ b/gnu/usr.bin/binutils-2.17/bfd/elf32-m88k.c
@@ -359,7 +359,7 @@ elf_m88k_link_hash_table_create (abfd)
struct elf_m88k_link_hash_table *ret;
bfd_size_type amt = sizeof (struct elf_m88k_link_hash_table);
- ret = (struct elf_m88k_link_hash_table *) bfd_alloc (abfd, amt);
+ ret = (struct elf_m88k_link_hash_table *) bfd_malloc (amt);
if (ret == (struct elf_m88k_link_hash_table *) NULL)
return NULL;
@@ -879,7 +879,6 @@ elf_m88k_gc_sweep_hook (abfd, info, sec, relocs)
{
case R_88K_GOT_16L:
case R_88K_GOT_16H:
- r_symndx = ELF32_R_SYM (rel->r_info);
if (h != NULL)
{
if (h->got.refcount > 0)
@@ -1197,7 +1196,7 @@ elf_m88k_size_dynamic_sections (output_bfd, info)
}
}
else if (strncmp (name, ".got", 4) != 0
- && strncmp (name, ".dynbss", 4) != 0)
+ && strcmp (name, ".dynbss") != 0)
{
/* It's not one of our sections, so don't allocate space. */
continue;
@@ -1400,7 +1399,6 @@ elf_m88k_relocate_section (output_bfd, info, input_bfd, input_section,
{
sym = local_syms + r_symndx;
sec = local_sections[r_symndx];
-
relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
}
else