mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-27 03:54:29 +00:00
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.
This commit is contained in:
parent
485f23cf5c
commit
b4b0e149fa
@ -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>
|
2015-10-13 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* elf.c (_bfd_elf_map_sections_to_segments): Don't set
|
* elf.c (_bfd_elf_map_sections_to_segments): Don't set
|
||||||
|
@ -3608,8 +3608,7 @@ sh_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
|
|||||||
|| ! add_dynamic_entry (DT_JMPREL, 0))
|
|| ! add_dynamic_entry (DT_JMPREL, 0))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else if ((elf_elfheader (output_bfd)->e_flags & EF_SH_FDPIC)
|
else if ((elf_elfheader (output_bfd)->e_flags & EF_SH_FDPIC))
|
||||||
&& htab->sgot->size != 0)
|
|
||||||
{
|
{
|
||||||
if (! add_dynamic_entry (DT_PLTGOT, 0))
|
if (! add_dynamic_entry (DT_PLTGOT, 0))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user