Correct reloc section name
authorAlan Modra <amodra@gmail.com>
Fri, 24 Jul 2015 05:14:26 +0000 (14:44 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 24 Jul 2015 05:18:55 +0000 (14:48 +0930)
* 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.

bfd/ChangeLog
bfd/elf.c

index 6a29b7a439f3fc0975756af6f56f7915cb1b893c..ea2bbe77b2e103a2574f081b28c04910ebfa126f 100644 (file)
@@ -1,3 +1,9 @@
+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
index 98460467d0c32908e98b068320e1e2c94ec750be..977685407a862b6f1c19863609d2e482f9b557af 100644 (file)
--- 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.  */