[llvm] [SSP] Accessing __stack_chk_guard when using LTO (PR #66535)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 03:50:51 PDT 2023


================
@@ -0,0 +1,40 @@
+; Confirm that we do generate one too many indirections accessing the stack guard
+; variable, when the relocation model is static.
+; This is preparation for the fix. 
+;
+; RUN: llvm-as < %s > %t.bc
+; RUN: llvm-lto -O0 -relocation-model=static -o %t.o %t.bc
+; RUN: llvm-objdump -d -r %t.o | FileCheck %s
+
----------------
RKSimon wrote:

(style) Put the RUN lines at the top and the description below them

https://github.com/llvm/llvm-project/pull/66535


More information about the llvm-commits mailing list