diff options
author | Rich Felker <dalias@libc.org> | 2015-10-15 07:14:43 +0900 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2015-10-15 07:14:43 +0900 |
commit | b4b0e149fa667b3907382e3492b53759665fe979 (patch) | |
tree | b93c739e6a6d1e7a43bc734eb965b3f47e968a31 /bfd/elf32-sh.c | |
parent | 485f23cf5c890c037053c3a1580c1139fc5c6ab6 (diff) | |
download | gdb-b4b0e149fa667b3907382e3492b53759665fe979.zip gdb-b4b0e149fa667b3907382e3492b53759665fe979.tar.gz gdb-b4b0e149fa667b3907382e3492b53759665fe979.tar.bz2 |
bfd: [SH] Emit DT_PLTGOT for FDPIC output unconditionally
PR ld/19091
* elf32-sh.c (sh_elf_size_dynamic_sections): Always emit DT_PLTGOT for FDPIC output.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r-- | bfd/elf32-sh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index 9fa3636..eebf380 100644 --- a/bfd/elf32-sh.c +++ b/bfd/elf32-sh.c @@ -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; |