From: Jose E. Marchesi Date: Tue, 6 Jun 2017 07:01:58 +0000 (-0700) Subject: bfd: remove unused local variable in elflink.c:init_reloc_cookie_rels X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbebaf4a56dd03251bc2e12fa6834d90555aa82a;p=binutils-gdb.git bfd: remove unused local variable in elflink.c:init_reloc_cookie_rels bfd/ChangeLog: 2017-06-06 Jose E. Marchesi * elflink.c (init_reloc_cookie_rels): Remove unused variable `bed'. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a13853503f6..80bac36a13e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-06-06 Jose E. Marchesi + + * elflink.c (init_reloc_cookie_rels): Remove unused variable + `bed'. + 2017-06-06 Maciej W. Rozycki * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Subtract `count' diff --git a/bfd/elflink.c b/bfd/elflink.c index 07d3ea5d9c5..7b001b78106 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -12572,8 +12572,6 @@ init_reloc_cookie_rels (struct elf_reloc_cookie *cookie, struct bfd_link_info *info, bfd *abfd, asection *sec) { - const struct elf_backend_data *bed; - if (sec->reloc_count == 0) { cookie->rels = NULL; @@ -12581,8 +12579,6 @@ init_reloc_cookie_rels (struct elf_reloc_cookie *cookie, } else { - bed = get_elf_backend_data (abfd); - cookie->rels = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, info->keep_memory); if (cookie->rels == NULL)