]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: ld: sframe: add new internal header
authorIndu Bhagat <indu.bhagat@oracle.com>
Tue, 8 Jul 2025 19:10:04 +0000 (12:10 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Wed, 9 Jul 2025 08:40:41 +0000 (01:40 -0700)
commit61be4420118b4039b80894ff57ad25f063218bfe
tree92939cbc6747dc324c75d9a21f18cd5aff58071f
parent5942dd991311115f7f3454fb59e6ec0a9b912d96
gas: ld: sframe: add new internal header

for SFRAME_V2_GNU_AS_LD_ENCODING_FLAGS.

The intention of creating an abstraction like
SFRAME_V2_GNU_AS_LD_ENCODING_FLAGS is to address the concern that there
should be a central place to enforce harmonious flags between GNU as and
ld.  At the moment, the only flag that needs to be enforced is
SFRAME_F_FDE_FUNC_START_PCREL.

sframe.h and sframe-api.h are installed headers by libsframe for the
specification and implementation respectively.  Adding a definition like
SFRAME_V2_GNU_AS_LD_ENCODING_FLAGS does not fit in either.  Create a
new internal header instead to keep the definition uncoupled from
sframe.h and sframe-api.h.  Rename the previously added
SFRAME_F_LD_MUSTHAVE_FLAGS to define the new
SFRAME_V2_GNU_AS_LD_ENCODING_FLAGS.

bfd/
* elf-sframe.c (_bfd_elf_merge_section_sframe): Use the new
internal header and SFRAME_V2_GNU_AS_LD_ENCODING_FLAGS.
gas/
* gen-sframe.c (output_sframe_internal): Likewise.
include/
* sframe-api.h (SFRAME_F_LD_MUSTHAVE_FLAGS): Move from..
* sframe-internal.h: ..to here.  New file.
bfd/elf-sframe.c
gas/gen-sframe.c
include/sframe-api.h
include/sframe-internal.h [new file with mode: 0644]