Skip to content

Commit

Permalink
Make sure librustrt.so is linked with a non-executable stack.
Browse files Browse the repository at this point in the history
Fixes #798.
  • Loading branch information
Austin Seipp authored and brson committed Oct 24, 2011
1 parent 1703e9e commit 7a8e12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mk/platform.mk
Expand Up @@ -31,7 +31,7 @@ ifneq ($(findstring linux,$(CFG_OSTYPE)),)
CFG_GCCISH_LINK_FLAGS += -shared -fPIC -ldl -lpthread -lrt
CFG_GCCISH_DEF_FLAG := -Wl,--export-dynamic,--dynamic-list=
CFG_GCCISH_PRE_LIB_FLAGS := -Wl,-whole-archive
CFG_GCCISH_POST_LIB_FLAGS := -Wl,-no-whole-archive
CFG_GCCISH_POST_LIB_FLAGS := -Wl,-no-whole-archive -Wl,-znoexecstack
ifeq ($(CFG_CPUTYPE), x86_64)
CFG_GCCISH_CFLAGS += -m32
CFG_GCCISH_LINK_FLAGS += -m32
Expand Down

0 comments on commit 7a8e12c

Please sign in to comment.