mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-25 15:31:05 +00:00
c175b21ce4
Bring in the fixes for GCC 7 through 13. https://rtx.meta.security/mitigation/2023/09/12/CVE-2023-4039.html https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64 Signed-off-by: Chris Packham <judge.packham@gmail.com>
39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
From 4e62049e403b141e6f916176160dac8cbd65fe47 Mon Sep 17 00:00:00 2001
|
|
From: Richard Sandiford <richard.sandiford@arm.com>
|
|
Date: Tue, 12 Sep 2023 16:07:18 +0100
|
|
Subject: [PATCH 26/32] aarch64: Minor initial adjustment tweak
|
|
|
|
This patch just changes a calculation of initial_adjust
|
|
to one that makes it slightly more obvious that the total
|
|
adjustment is frame.frame_size.
|
|
|
|
gcc/
|
|
* config/aarch64/aarch64.cc (aarch64_layout_frame): Tweak
|
|
calculation of initial_adjust for frames in which all saves
|
|
are SVE saves.
|
|
---
|
|
gcc/config/aarch64/aarch64.cc | 5 ++---
|
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc
|
|
index 31b00094c2a7..1aa79da0673c 100644
|
|
--- a/gcc/config/aarch64/aarch64.cc
|
|
+++ b/gcc/config/aarch64/aarch64.cc
|
|
@@ -8675,11 +8675,10 @@ aarch64_layout_frame (void)
|
|
{
|
|
/* Frame in which all saves are SVE saves:
|
|
|
|
- sub sp, sp, hard_fp_offset + below_hard_fp_saved_regs_size
|
|
+ sub sp, sp, frame_size - bytes_below_saved_regs
|
|
save SVE registers relative to SP
|
|
sub sp, sp, bytes_below_saved_regs */
|
|
- frame.initial_adjust = (frame.bytes_above_hard_fp
|
|
- + frame.below_hard_fp_saved_regs_size);
|
|
+ frame.initial_adjust = frame.frame_size - frame.bytes_below_saved_regs;
|
|
frame.final_adjust = frame.bytes_below_saved_regs;
|
|
}
|
|
else if (frame.bytes_above_hard_fp.is_constant (&const_above_fp)
|
|
--
|
|
2.42.0
|
|
|