This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=22d9a0dee3a69973858000b326cf8eaa14ce7180 commit 22d9a0dee3a69973858000b326cf8eaa14ce7180 Author: Hans-Peter Nilsson <hp@bitrange.com> Date: Fri Jan 27 09:12:14 2017 +0100 Fix unused-but-set warning in elf32-cris.c:elf_cris_finish_dynamic_symbol * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused local variable dynobj. Diff: --- bfd/ChangeLog | 3 +++ bfd/elf32-cris.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d5fd77c..4fc1bc0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2017-01-27 Hans-Peter Nilsson <hp@axis.com> + * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused + local variable dynobj. + PR ld/20995 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. (elf_cris_adjust_dynamic_symbol): Place variables copied into the diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index 0c8945e..a69c7e4 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -2057,7 +2057,6 @@ elf_cris_finish_dynamic_symbol (bfd *output_bfd, Elf_Internal_Sym *sym) { struct elf_cris_link_hash_table * htab; - bfd *dynobj; /* Where in the plt entry to put values. */ int plt_off1 = 2, plt_off2 = 10, plt_off3 = 16; @@ -2089,8 +2088,6 @@ elf_cris_finish_dynamic_symbol (bfd *output_bfd, plt_pic_entry = elf_cris_pic_plt_entry_v32; } - dynobj = htab->root.dynobj; - if (h->plt.offset != (bfd_vma) -1) { asection *splt;
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |