From 9572f8766b571c6e0612a68c275616209cf6ec9f Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 10 Jan 2023 18:05:59 +0000 Subject: [PATCH] like hppa, sparc64 will need gcc's jump tables option disabled to allow execute-only binaries ok miod --- gnu/gcc/gcc/config/sparc/openbsd.h | 3 +++ 1 file changed, 3 insertions(+) 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}}}} \ -- 2.20.1