[PATCH] gas: ld: sframe: add new internal header

Jens Remus jremus@linux.ibm.com
Wed Jul 9 07:18:19 GMT 2025


Hello Indu!

thank you for addressing the issue I have run into with my s390x SFrame
support patch series!

On 08.07.2025 23:30, Indu Bhagat wrote:
> for SFRAME_V2_GNU_GAS_LD_ENCODING_FLAGS.
> 
> The intention of creating an abstraction like
> SFRAME_V2_GNU_GAS_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.

Wouldn't that also apply to any other assembler and linker?  For example
LLVM mc and lld?

> sframe.h and sframe-api.h are installed headers by libsframe for the
> specification and implementation respectively.  Adding a definition like
> SFRAME_V2_GNU_GAS_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.

Would it make sense to mention that you are renaming the flag set?

> 
> bfd/
>         * elf-sframe.c (_bfd_elf_merge_section_sframe): Use the new
> 	internal header and SFRAME_V2_GNU_GAS_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.

	* sframe-internal.h: ..to here and rename to
	SFRAME_V2_GNU_GAS_LD_ENCODING_FLAGS.  New file.

Nit: It seems you used spaces instead of a tab to indent the
GNU ChangeLog.

Regards,
Jens
-- 
Jens Remus
Linux on Z Development (D3303)
+49-7031-16-1128 Office
jremus@de.ibm.com

IBM

IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/



More information about the Binutils mailing list