like hppa, sparc64 will need gcc's jump tables option disabled to
authorderaadt <deraadt@openbsd.org>
Tue, 10 Jan 2023 18:05:59 +0000 (18:05 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 10 Jan 2023 18:05:59 +0000 (18:05 +0000)
allow execute-only binaries
ok miod

gnu/gcc/gcc/config/sparc/openbsd.h

index 0cca785..8665f2c 100644 (file)
@@ -75,6 +75,9 @@ Boston, MA 02110-1301, USA.  */
 #undef LONG_DOUBLE_TYPE_SIZE
 #define LONG_DOUBLE_TYPE_SIZE 64
 
+#undef JUMP_TABLES_DEFAULT
+#define JUMP_TABLES_DEFAULT 0  /* incompatible with --executable-text */
+
 #undef LINK_SPEC
 #define LINK_SPEC \
   "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e __start}}}} \