diff options
author | Jerome Forissier <jerome@forissier.org> | 2020-09-03 14:37:31 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2020-09-04 14:25:44 +0200 |
commit | 3513f961cda064f90d10f7de72af6330427a2013 (patch) | |
tree | d034d13b91a2e19cfe1954618e26629426f5721d /ta | |
parent | 827be46c173f31c57006af70ca3a15a5b1a7fba3 (diff) |
arm32: fold UNWIND(.fnstart/.fnend) into the FUNC macros
This change applies to arm32 assembler sources.
Instead of using UNWIND(.fnstart) after FUNC or LOCAL_FUNC and
UNWIND(.fnend) before END_FUNC, let's fold these statements into the
FUNC macros.
The .fnstart/.fnend directives mark the start and end of a function
with an unwind table entry (.ARM.exidx) and therefore a function
without them has no entry and cannot be unwound. This means that a
stack dump (on abort or panic) would stop when reaching such a
function.
As a result of this patch, a small number of functions now have an
entry in the unwind table when they had none before (the functions
which were using FUNC or LOCAL_FUNC but had no .fnstart/.fnend). It was
almost always a bug and this pacth only increases the size of the
.ARM.exidx section by a few bytes (tested on QEMU).
Signed-off-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'ta')
-rw-r--r-- | ta/arch/arm/ta_entry_a32.S | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ta/arch/arm/ta_entry_a32.S b/ta/arch/arm/ta_entry_a32.S index f73e3915..d2f8a69d 100644 --- a/ta/arch/arm/ta_entry_a32.S +++ b/ta/arch/arm/ta_entry_a32.S @@ -16,8 +16,6 @@ * ^ */ FUNC __ta_entry, : -UNWIND( .fnstart) UNWIND( .cantunwind) bl __ta_entry_c -UNWIND( .fnend) END_FUNC __ta_entry |