diff options
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile index ef48e3358..69990b772 100644 --- a/ldso/ldso/Makefile +++ b/ldso/ldso/Makefile @@ -42,6 +42,9 @@ XXFLAGS:=$(XXFLAGS:-O0=-O1) XXFLAGS+=-isystem $(shell $(CC) -print-file-name=include) LDFLAGS=$(CPU_LDFLAGS-y) -z now -Bsymbolic -shared --warn-common --export-dynamic --sort-common \ -z combreloc --discard-locals --discard-all --no-undefined +ifeq ($(UCLIBC_BUILD_RELRO),y) + LDFLAGS+=-z relro +endif CSRC= ldso.c COBJS=$(patsubst %.c,%.o, $(CSRC)) |