[openwrt/openwrt] toolchain: glibc: Enable --enable-bind-now

LEDE Commits lede-commits at lists.infradead.org
Fri Jan 7 16:28:35 PST 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/77df120bc8b220a79a8b158a457847d0d3d3c94b

commit 77df120bc8b220a79a8b158a457847d0d3d3c94b
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Tue Dec 28 21:37:21 2021 +0100

    toolchain: glibc: Enable --enable-bind-now
    
    Enable --enable-bind-now when CONFIG_PKG_RELRO_FULL is set. This option
    is activated by default. This will enable full RELRO protection.
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 toolchain/glibc/common.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/toolchain/glibc/common.mk b/toolchain/glibc/common.mk
index 19610c1e90..e957ff52e5 100644
--- a/toolchain/glibc/common.mk
+++ b/toolchain/glibc/common.mk
@@ -63,6 +63,7 @@ GLIBC_CONFIGURE:= \
 		--$(if $(CONFIG_SOFT_FLOAT),without,with)-fp \
 		  $(if $(CONFIG_PKG_CC_STACKPROTECTOR_REGULAR),--enable-stack-protector=yes) \
 		  $(if $(CONFIG_PKG_CC_STACKPROTECTOR_STRONG),--enable-stack-protector=strong) \
+		  $(if $(CONFIG_PKG_RELRO_FULL),--enable-bind-now) \
 		--enable-kernel=5.4.0
 
 export libc_cv_ssp=no



More information about the lede-commits mailing list