diff options
author | Jens Remus <jremus@linux.ibm.com> | 2024-07-04 10:34:12 +0200 |
---|---|---|
committer | Jens Remus <jremus@linux.ibm.com> | 2024-07-04 10:34:12 +0200 |
commit | e24992c3341a1f8e69e74b74e7d1a813445dc0b7 (patch) | |
tree | 635d004f568a189a31889352a0fa35a4d9aa18c8 /ld/fdl.texi | |
parent | bdde1b34c4b4c08fb7e431f28b33a4144ca86f2c (diff) | |
download | binutils-e24992c3341a1f8e69e74b74e7d1a813445dc0b7.zip binutils-e24992c3341a1f8e69e74b74e7d1a813445dc0b7.tar.gz binutils-e24992c3341a1f8e69e74b74e7d1a813445dc0b7.tar.bz2 |
gas: Skip SFrame FDE if CFI specifies non-FP/SP base register
Do not generate SFrame FDE if DWARF CFI directives .cfi_def_cfa or
.cfi_def_cfa_register specify a CFA base register number other than
the architecture-specific stack-pointer (SP) or frame-pointer (FP)
register numbers.
This also causes the assembler to print a warning message, so that
skipping of the SFrame FDE does not occur silently.
Update the generic ld SFrame test case to be architecture independent.
Do not use CFI directive .cfi_def_cfa, as the specified CFA base
register number is not a valid SP/FP register number on all
architectures. An invalid SP/FP register number will now cause the
assembler to print a warning message and skip SFrame FDE generation.
Remove the offending CFI directive, that cannot be coded architecture-
independent, as the test case requires SFrame information to be
generated. This was reported by the Linaro-TCWG-CI for AArch64.
gas/
* gen-sframe.c: Skip SFrame generation if CFI specifies
non-FP/SP base register.
ld/testsuite/
* ld-sframe/discard.s: Update generic SFrame test case to be
architecture independent.
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Diffstat (limited to 'ld/fdl.texi')
0 files changed, 0 insertions, 0 deletions