summaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-core/systemd/files/microblaze-disable-stack-protector.patch
blob: 535f864aec3816023a265c245f1e3a83ce4ad011 (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
Microblaze does not support stack-protector:

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

Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>

diff --git a/meson.build b/meson.build
index 738879eb21..06ea3e389a 100644
--- a/meson.build
+++ b/meson.build
@@ -371,7 +371,6 @@ endif
 possible_link_flags = [
         '-Wl,-z,relro',
         '-Wl,-z,now',
-        '-fstack-protector',
 ]
 
 if cc.get_id() == 'clang'
@@ -388,8 +387,6 @@ possible_cc_flags = possible_common_cc_flags + [
         '-ffast-math',
         '-fno-common',
         '-fno-strict-aliasing',
-        '-fstack-protector',
-        '-fstack-protector-strong',
         '-fvisibility=hidden',
         '--param=ssp-buffer-size=4',
 ]