bfd: [SH] Emit DT_PLTGOT for FDPIC output unconditionally
authorRich Felker <dalias@libc.org>
Wed, 14 Oct 2015 22:14:43 +0000 (07:14 +0900)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Wed, 14 Oct 2015 22:14:43 +0000 (07:14 +0900)
PR ld/19091
* elf32-sh.c (sh_elf_size_dynamic_sections): Always emit DT_PLTGOT for FDPIC output.

bfd/ChangeLog
bfd/elf32-sh.c

index 6cd68de5a2b0dd2e6125830ae1af3b2b2ba22595..5bd8d55ccecf67db8b5bd1c376e9e92be9c672de 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-14  Rich Felker  <dalias@libc.org>
+
+       PR ld/19091
+       * elf32-sh.c (sh_elf_size_dynamic_sections): Always emit
+       DT_PLTGOT for FDPIC output.
+
 2015-10-13  Alan Modra  <amodra@gmail.com>
 
        * elf.c (_bfd_elf_map_sections_to_segments): Don't set
index 9fa363615ddbb7629628b7fe500df93d0a27a8b0..eebf380152dea916d7aacf0df280c84327b0c266 100644 (file)
@@ -3608,8 +3608,7 @@ sh_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
              || ! add_dynamic_entry (DT_JMPREL, 0))
            return FALSE;
        }
-      else if ((elf_elfheader (output_bfd)->e_flags & EF_SH_FDPIC)
-              && htab->sgot->size != 0)
+      else if ((elf_elfheader (output_bfd)->e_flags & EF_SH_FDPIC))
        {
          if (! add_dynamic_entry (DT_PLTGOT, 0))
            return FALSE;
This page took 0.030272 seconds and 4 git commands to generate.