From 2cf96f4558b085ff2d90ed4d1387b082eabb854c Mon Sep 17 00:00:00 2001 From: guenther Date: Mon, 15 Aug 2016 03:09:02 +0000 Subject: [PATCH] Drop -z nocombreloc. It was a rev 1.1 commit like on arm, so not clear why it was needed then; perhaps fixed by the bump in binutils? Removing it enables the full relro layout for ld.so. --- libexec/ld.so/sh/Makefile.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libexec/ld.so/sh/Makefile.inc b/libexec/ld.so/sh/Makefile.inc index 6c78297fbb9..9f63b862d5b 100644 --- a/libexec/ld.so/sh/Makefile.inc +++ b/libexec/ld.so/sh/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.5 2012/09/02 16:32:52 jsg Exp $ +# $OpenBSD: Makefile.inc,v 1.6 2016/08/15 03:09:02 guenther Exp $ CFLAGS += -fpic CFLAGS+=-m4-nofpu AFLAGS += -D_STANDALONE CPPFLAGS += -I${.CURDIR}/../../lib/libc/arch/sh -ELF_LDFLAGS+=-z nocombreloc LIBCSRCDIR=${.CURDIR}/../../lib/libc LDADD= `$(CC) -print-libgcc-file-name` -- 2.20.1