Skip to content

Commit

Permalink
build: add noexecstack flag
Browse files Browse the repository at this point in the history
Newer linker versions (>= 2.39) issues a warning if stack is executable. Setting
-z stack-size without -z noexecstack can cause this issue. On Phoenix
stack is currently never executable.

JIRA: RTOS-909
  • Loading branch information
badochov committed Sep 17, 2024
1 parent 52927a8 commit 74f5709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ EXPORT_LDFLAGS := $(LDFLAGS)
# add our coding-style related options
CFLAGS += -Wall -Wstrict-prototypes -fno-common
CXXFLAGS += -Wall
LDFLAGS += -z noexecstack

# always produce binaries with debug information
CFLAGS += -ggdb3
Expand Down

0 comments on commit 74f5709

Please sign in to comment.