]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
NOTFORUPSTREAM Fix for default_get_shadow_stack_pointer
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 12 Feb 2025 23:55:01 +0000 (20:55 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Mon, 9 Jun 2025 19:35:07 +0000 (16:35 -0300)
I suggested this change in review comments on v3 of the Intel
CET patch series, and it will likely be present in v4.

It's in this branch because it affects the AArch64 GCS patch series.

gdb/arch-utils.c

index 20e00782ccfaeb82b4d66de81905d1465ab6b8ba..c86df72a6d84022e7ce36b90b56ddc4ba1d6a8f4 100644 (file)
@@ -1224,6 +1224,7 @@ std::optional<CORE_ADDR>
 default_get_shadow_stack_pointer (gdbarch *gdbarch, regcache *regcache,
                                  bool &shadow_stack_enabled)
 {
+  shadow_stack_enabled = false;
   return {};
 }