diff options
author | Jens Remus <jremus@linux.ibm.com> | 2025-07-01 17:56:10 +0200 |
---|---|---|
committer | Jens Remus <jremus@linux.ibm.com> | 2025-07-01 17:56:10 +0200 |
commit | b054ff604253af016657d5c93e2f69dab14cc53a (patch) | |
tree | ee24cc99b85f5180a01ebdb8f7e3c6ffb491ed73 /libsframe/sframe.c | |
parent | dac12bc2426d5b639ad2d62d0f447dd037227c91 (diff) | |
download | binutils-master.zip binutils-master.tar.gz binutils-master.tar.bz2 |
A SFrame NULL FRE template is used as NULL value in some but not all
instances to initialize unused elements of SFrame FRE pointer arrays of
fixed size. Additionally it is erroneously used as SFrame FRE template
for PLT GOT entries.
Define a separate SFrame FRE template for PLT GOT entries with the same
properties as the SFrame NULL FRE and use that for all PLT GOT entries.
Remove the SFrame NULL FRE template, as initialization of unused array
elements is not required, as demonstrated by the instances where it was
not done.
bfd/
* elf64-x86-64.c (elf_x86_64_sframe_null_fre): Remove.
(elf_x86_64_sframe_pltgot_fre1): New SFrame FRE template for
PLT GOT entries.
(elf_x86_64_sframe_non_lazy_plt,
elf_x86_64_sframe_non_lazy_ibt_plt): Do not initialize unused
FRE array elements with elf_x86_64_sframe_null_fre. Use
elf_x86_64_sframe_pltgot_fre1 for PLT GOT.
(elf_x86_64_sframe_plt, elf_x86_64_sframe_ibt_plt): Use
elf_x86_64_sframe_pltgot_fre1 for PLT GOT.
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Diffstat (limited to 'libsframe/sframe.c')
0 files changed, 0 insertions, 0 deletions