From: deraadt Date: Wed, 11 Jan 2023 14:30:47 +0000 (+0000) Subject: hppa can switch over to --execute-only by default. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=84b753dfd72b88e866a61bdeba93d35bdc211b4f;p=openbsd hppa can switch over to --execute-only by default. ok kettenis --- 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. */