From fbebaf4a56dd03251bc2e12fa6834d90555aa82a Mon Sep 17 00:00:00 2001 From: "Jose E. Marchesi" Date: Tue, 6 Jun 2017 00:01:58 -0700 Subject: [PATCH] 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'. --- bfd/ChangeLog | 5 +++++ bfd/elflink.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a138535..80bac36 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 07d3ea5..7b001b7 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) -- 2.7.4