Drop -z nocombreloc. It was a rev 1.1 commit like on arm, so not clear
authorguenther <guenther@openbsd.org>
Mon, 15 Aug 2016 03:09:02 +0000 (03:09 +0000)
committerguenther <guenther@openbsd.org>
Mon, 15 Aug 2016 03:09:02 +0000 (03:09 +0000)
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

index 6c78297..9f63b86 100644 (file)
@@ -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`