Browse Source

Merge pull request #1582 from svaarala/add-no-stack-protector

Add -fno-stack-protector to repo build
pull/1583/head
Sami Vaarala 7 years ago
committed by GitHub
parent
commit
c212aaf675
  1. 2
      Makefile
  2. 4
      testrunner/run_commit_test.py

2
Makefile

@ -140,7 +140,7 @@ CCOPTS_SHARED += -I./extras/module-duktape
#CCOPTS_SHARED += -mx32 # force X32 compilation on a 64-bit host
CCOPTS_NONDEBUG = $(CCOPTS_SHARED) $(CCOPTS_FEATURES)
CCOPTS_NONDEBUG += -Os -fomit-frame-pointer
CCOPTS_NONDEBUG += -Os -fomit-frame-pointer -fno-stack-protector
CCOPTS_NONDEBUG += -g -ggdb
CCOPTS_DEBUG = $(CCOPTS_SHARED) $(CCOPTS_FEATURES)

4
testrunner/run_commit_test.py

@ -336,6 +336,7 @@ def context_linux_x64_gcc_defsize_fltoetc():
execute([
'gcc', '-oduk',
'-Os', '-fomit-frame-pointer',
'-fno-stack-protector',
'-flto', '-fno-asynchronous-unwind-tables',
'-ffunction-sections', '-Wl,--gc-sections',
'-I' + os.path.join('dist', 'src'),
@ -369,6 +370,7 @@ def context_helper_minsize_fltoetc(archopt, strip):
execute([
'gcc', '-oduk', archopt,
'-Os', '-fomit-frame-pointer',
'-fno-stack-protector',
'-flto', '-fno-asynchronous-unwind-tables',
'-ffunction-sections', '-Wl,--gc-sections',
'-I' + os.path.join('prep'),
@ -709,6 +711,7 @@ def context_helper_hello_ram(archopt):
execute([
'gcc', '-ohello', archopt,
'-Os', '-fomit-frame-pointer',
'-fno-stack-protector',
'-flto', '-fno-asynchronous-unwind-tables',
'-ffunction-sections', '-Wl,--gc-sections',
'-I' + os.path.join('prep'),
@ -794,6 +797,7 @@ def mandel_test(archopt, genconfig_opts):
execute([
'gcc', '-oduk', archopt,
'-Os', '-fomit-frame-pointer',
'-fno-stack-protector',
'-flto', '-fno-asynchronous-unwind-tables',
'-ffunction-sections', '-Wl,--gc-sections',
'-DDUK_CMDLINE_PRINTALERT_SUPPORT',

Loading…
Cancel
Save