]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86: SFrame FDE for PLT0 does not use repetition block size
authorJens Remus <jremus@linux.ibm.com>
Fri, 21 Feb 2025 10:28:23 +0000 (11:28 +0100)
committerJens Remus <jremus@linux.ibm.com>
Tue, 25 Feb 2025 12:29:02 +0000 (13:29 +0100)
The SFrame FDE for the PLT0 entry is of type PCINC, which does does not
make use of the type PCMASK repetition block size.  Therefore generate
the FDE with a repetition block size of zero.

bfd/
* elfxx-x86.c (_bfd_x86_elf_create_sframe_plt): Use FDE
repetition block size of zero for PLT0.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
bfd/elfxx-x86.c

index d6433ed790b3d9282cec66178c7d1efad6cd8333..6ea41f29af1f1664894bf8d1961a7dea51aefff1 100644 (file)
@@ -1925,7 +1925,7 @@ _bfd_x86_elf_create_sframe_plt (bfd *output_bfd,
                                      0, /* func start addr.  */
                                      plt0_entry_size,
                                      func_info,
-                                     16,
+                                     0,
                                      0 /* Num FREs.  */);
       sframe_frame_row_entry plt0_fre;
       unsigned int num_plt0_fres = htab->sframe_plt->plt0_num_fres;