diff options
| author | Philipp Tomsich <[email protected]> | 2017-10-10 16:21:12 +0200 |
|---|---|---|
| committer | Philipp Tomsich <[email protected]> | 2017-11-21 23:57:22 +0100 |
| commit | ff143d55564373c2a5e8a128a71223f26ee2420f (patch) | |
| tree | 11a1e31bf927a4f00db4e7effbf61b5c63494215 | |
| parent | 7776cc011df4565ed6cf0be65d33ccf28c2fffab (diff) | |
arm: mark save_boot_params_ret as a function
As no '.type' was set for save_boot_params_ret in start.S, binutils
did not track whether it was emitted as A32 or T32. By properly
marking save_boot_params_ret as a potential function entry, we can
make sure that the compiler will insert the appropriate instructions
for branching to save_boot_params_ret both for call-sites emitted as
A32 and T32.
Reported-by: Andy Yan <[email protected]>
Signed-off-by: Philipp Tomsich <[email protected]>
Tested-by: Andy Yan <[email protected]>
| -rw-r--r-- | arch/arm/cpu/armv7/start.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S index 7b84a7a0f16..95a0b5224b9 100644 --- a/arch/arm/cpu/armv7/start.S +++ b/arch/arm/cpu/armv7/start.S @@ -31,6 +31,7 @@ .globl reset .globl save_boot_params_ret + .type save_boot_params_ret,%function #ifdef CONFIG_ARMV7_LPAE .global switch_to_hypervisor_ret #endif |
