summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2023-01-10 18:06:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2023-01-10 18:06:00 +0000
commit43f407c558995573300d98f94262678c5cb29001 (patch)
tree3eee2bc38baf910a6d3fd723c79b8cd66bde78e0
parent9b50f3df19fd2ac187b46679269f8a637c8315bf (diff)
like hppa, sparc64 will need gcc's jump tables option disabled to
allow execute-only binaries ok miod
-rw-r--r--gnu/gcc/gcc/config/sparc/openbsd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/gcc/gcc/config/sparc/openbsd.h b/gnu/gcc/gcc/config/sparc/openbsd.h
index 0cca7852d34..8665f2cb8e5 100644
--- a/gnu/gcc/gcc/config/sparc/openbsd.h
+++ b/gnu/gcc/gcc/config/sparc/openbsd.h
@@ -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}}}} \