summaryrefslogtreecommitdiff
path: root/config/libc/uClibc.in
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-12-05 00:15:37 (GMT)
committerAlexey Neyman <stilor@att.net>2018-12-05 00:15:37 (GMT)
commitf5b57504d28d0bdcda26a06ec21d80906bfbf11e (patch)
tree6423e6e670f1c3df38b546e1fe306fe634cd968a /config/libc/uClibc.in
parent893932e90f967169fcf494e36ac9001f2f1b90a5 (diff)
Add configuration options for enabling SSP
... in uClibc and glibc. Fixes #681. While here, relocate additional "sources" for uClibc/binutils into packages/ directory. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'config/libc/uClibc.in')
-rw-r--r--config/libc/uClibc.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in
index 7bdd03f..2b11e0c 100644
--- a/config/libc/uClibc.in
+++ b/config/libc/uClibc.in
@@ -207,6 +207,23 @@ config LIBC_UCLIBC_RPC
help
Enable support for remote procedure calls (RPC) in uClibc.
+config LIBC_UCLIBC_HAS_SSP
+ bool
+ prompt "Support stack smashing protection (SSP)"
+ default y
+ help
+ Enable support for building programs with -fstack-protector family
+ of options. If this option is disabled, one can also use a standalone
+ libssp library from GCC.
+
+config LIBC_UCLIBC_BUILD_SSP
+ bool
+ prompt "Build uClibc with SSP"
+ depends on LIBC_UCLIBC_HAS_SSP
+ help
+ Build uClibc with -fstack-protector. This adds runtime overhead
+ to many function calls and is disabled by default.
+
if ARCH_ARM
config LIBC_UCLIBC_USE_GNU_SUFFIX
bool