[binutils-gdb] Correct reloc section name
Alan Modra
amodra@sourceware.org
Fri Jul 24 05:29:00 GMT 2015
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=91cb26dac47265f178fb6635f1deebdfd244572a
commit 91cb26dac47265f178fb6635f1deebdfd244572a
Author: Alan Modra <amodra@gmail.com>
Date: Fri Jul 24 14:44:26 2015 +0930
Correct reloc section name
* elf.c (_bfd_elf_assign_file_positions_for_non_load): Use .rela
prefix for reloc section corresponding to rela section associated
with renamed debug section.
Diff:
---
bfd/ChangeLog | 6 ++++++
bfd/elf.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6a29b7a..ea2bbe7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2015-07-24 Alan Modra <amodra@gmail.com>
+ * elf.c (_bfd_elf_assign_file_positions_for_non_load): Use .rela
+ prefix for reloc section corresponding to rela section associated
+ with renamed debug section.
+
+2015-07-24 Alan Modra <amodra@gmail.com>
+
* section.c (bfd_get_section_by_name_if): Iterate over entire hash
chain.
diff --git a/bfd/elf.c b/bfd/elf.c
index 9846046..9776854 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -5654,7 +5654,7 @@ _bfd_elf_assign_file_positions_for_non_load (bfd *abfd)
if (d->rela.hdr
&& !_bfd_elf_set_reloc_sh_name (abfd,
d->rela.hdr,
- name, FALSE))
+ name, TRUE))
return FALSE;
/* Update section size and contents. */
More information about the Binutils-cvs
mailing list