mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
PowerPC64 DT_RELR local PLT
Similarly to the local GOT case. * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate space for PLT relocs against local syms when enable_dt_relr.
This commit is contained in:
@ -10356,7 +10356,8 @@ ppc64_elf_size_dynamic_sections (bfd *output_bfd,
|
|||||||
s = htab->pltlocal;
|
s = htab->pltlocal;
|
||||||
ent->plt.offset = s->size;
|
ent->plt.offset = s->size;
|
||||||
s->size += LOCAL_PLT_ENTRY_SIZE (htab);
|
s->size += LOCAL_PLT_ENTRY_SIZE (htab);
|
||||||
if (bfd_link_pic (info))
|
if (bfd_link_pic (info)
|
||||||
|
&& !(info->enable_dt_relr && !htab->opd_abi))
|
||||||
htab->relpltlocal->size += sizeof (Elf64_External_Rela);
|
htab->relpltlocal->size += sizeof (Elf64_External_Rela);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user