hppa can switch over to --execute-only by default.
authorderaadt <deraadt@openbsd.org>
Wed, 11 Jan 2023 14:30:47 +0000 (14:30 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 11 Jan 2023 14:30:47 +0000 (14:30 +0000)
ok kettenis

gnu/usr.bin/binutils-2.17/ld/ldmain.c

index 023eb50..0fbe2d9 100644 (file)
@@ -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.  */