From 12d83431072be7586eba1d789b51e4b79cd32ac1 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Sat, 22 Jun 2013 19:57:42 +0000 Subject: [PATCH] 2013-06-22 Sandra Loosemore bfd/ * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Don't set sh_entsize for PLT section. --- bfd/ChangeLog | 5 +++++ bfd/elf32-nios2.c | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index af0ba3a142..8dd7dd1e39 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-06-22 Sandra Loosemore + + * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Don't + set sh_entsize for PLT section. + 2013-06-20 Yufeng Zhang * bfd-in.h (bfd_elf64_aarch64_set_options): Add 'extern'. diff --git a/bfd/elf32-nios2.c b/bfd/elf32-nios2.c index eb472c16dc..a6c67201a8 100644 --- a/bfd/elf32-nios2.c +++ b/bfd/elf32-nios2.c @@ -3264,9 +3264,6 @@ nios2_elf32_finish_dynamic_sections (bfd *output_bfd, nios2_elf32_install_imm16 (splt, 4, hiadj (corrected)); nios2_elf32_install_imm16 (splt, 12, (corrected & 0xffff) + 4); nios2_elf32_install_imm16 (splt, 16, (corrected & 0xffff) + 8); - - elf_section_data (splt->output_section)->this_hdr.sh_entsize - = 24; } else { @@ -3292,9 +3289,6 @@ nios2_elf32_finish_dynamic_sections (bfd *output_bfd, (got_address & 0xffff) + 4); nios2_elf32_install_imm16 (splt, res_size + 20, (got_address & 0xffff) + 8); - - elf_section_data (splt->output_section)->this_hdr.sh_entsize - = 28 + res_size; } } } -- 2.34.1