aboutsummaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-core/systemd/files/microblaze-disable-stack-protector.patch
blob: 157b008ad3f8a2f06748013fc4b553825db47ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From ec286a0b613a9fa487be75b7c1c01e5c8ce62a1a Mon Sep 17 00:00:00 2001
From: Mark Hatle <mark.hatle@amd.com>
Date: Fri, 22 Sep 2023 11:01:16 -0600
Subject: [PATCH] meson.build: Microblaze does not support stack-protector

| cc1: warning: '-fstack-protector' not supported for this target
| ninja: build stopped: subcommand failed.

Upstream-Status: Inappropriate [Configuration]

Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
---
 meson.build | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/meson.build b/meson.build
index 395eca1943..8b87c5b3a2 100644
--- a/meson.build
+++ b/meson.build
@@ -405,14 +405,11 @@ possible_common_cc_flags = [
 
         '-fdiagnostics-show-option',
         '-fno-common',
-        '-fstack-protector',
-        '-fstack-protector-strong',
         '-fstrict-flex-arrays',
         '--param=ssp-buffer-size=4',
 ]
 
 possible_common_link_flags = [
-        '-fstack-protector',
 ]
 
 c_args = get_option('c_args')
-- 
2.34.1