summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-02-10 18:24:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-02-10 18:24:32 +0000
commitf9afed12586b22d33fe7b79b56abeabbd5ec488e (patch)
treec3ea6bf449ce2e680920a07db391465a4eee5e10 /gnu
parentd16263dd8fad1ba24c9e1074afc921dab663c3f3 (diff)
force jump tables into .text for they get screwed in .rodata for -fpic; espie@ ok
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gcc/gcc/config/i386/openbsd64.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/i386/openbsd64.h b/gnu/usr.bin/gcc/gcc/config/i386/openbsd64.h
index 1bd17d75686..e2181a237d0 100644
--- a/gnu/usr.bin/gcc/gcc/config/i386/openbsd64.h
+++ b/gnu/usr.bin/gcc/gcc/config/i386/openbsd64.h
@@ -116,6 +116,9 @@ Boston, MA 02111-1307, USA. */
#define OBSD_HAS_CORRECT_SPECS
+#undef JUMP_TABLES_IN_TEXT_SECTION
+#define JUMP_TABLES_IN_TEXT_SECTION (flag_pic)
+
/* pick up defines for mprotect (used in TRANSFER_FROM_TRANPOLINE) */
#include <sys/types.h>
#include <sys/mman.h>