From 84b753dfd72b88e866a61bdeba93d35bdc211b4f Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 11 Jan 2023 14:30:47 +0000 Subject: [PATCH] hppa can switch over to --execute-only by default. ok kettenis --- gnu/usr.bin/binutils-2.17/ld/ldmain.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/usr.bin/binutils-2.17/ld/ldmain.c b/gnu/usr.bin/binutils-2.17/ld/ldmain.c index 023eb504ba7..0fbe2d9bdc3 100644 --- a/gnu/usr.bin/binutils-2.17/ld/ldmain.c +++ b/gnu/usr.bin/binutils-2.17/ld/ldmain.c @@ -318,6 +318,11 @@ main (int argc, char **argv) link_info.emit_gnu_hash = TRUE; #else link_info.emit_gnu_hash = FALSE; +#endif +#if defined(__hppa__) + link_info.execute_only = TRUE; +#else + link_info.execute_only = FALSE; #endif /* SVR4 linkers seem to set DT_INIT and DT_FINI based on magic _init and _fini symbols. We are compatible. */ -- 2.20.1