]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: sframe: avoid creating more symbols than necessary for FRE offset
authorIndu Bhagat <indu.bhagat@oracle.com>
Thu, 15 May 2025 19:21:05 +0000 (12:21 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Thu, 15 May 2025 19:21:05 +0000 (12:21 -0700)
commit150a9ef22c4ef46a0001156e258a7772bb64cf89
treecd89fbd63024c901132527ea6163712f0c9d67f4
parent9b026264097aa5f328a2d23f985fde961b41ef2e
gas: sframe: avoid creating more symbols than necessary for FRE offset

Each SFrame FDE contains an offset to the start of its respective SFrame
FREs in the sfde_func_start_fre_off field.  To generate this offset,
fre_symbols[] array is being used.  The number of elements of this array
is currently set to the total number of SFrame FREs in the entire SFrame
section.  This is more than unnecessary.  We only need to track as many
points as the number of SFrame FDEs.

gas/
* gen-sframe.c (output_sframe_internal):  Size fde_fre_symbols
with the number of SFrame FDEs.
gas/gen-sframe.c