From 6e9bcedb5bb3e11a901bb5eec27e782e0f0c8519 Mon Sep 17 00:00:00 2001 From: William Hart Date: Mon, 9 Jun 2014 20:35:26 +0100 Subject: [PATCH] Fix for section headers too long on Mac. Thanks Leif Lionhardy. --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 936c2310..dc7ec55f 100755 --- a/configure +++ b/configure @@ -25408,7 +25408,7 @@ $as_echo "determined" >&6; } # Defined in mpn/x86_64/x86_64-defs.m4, but there currently # hardcoded just for ELF, so redefine it here for Mach-O: -echo "define(\`JUMPTABSECT',RODATA)" >> $gmp_tmpconfigm4p +echo "define(\`JUMPTABSECT',\` .section __DATA,__const')" >> $gmp_tmpconfigm4p OBJECT_FORMAT="-f macho64" ;; *-w64-mingw*|*-*-cygwin*) diff --git a/configure.ac b/configure.ac index fe5dc1a3..0e131b66 100644 --- a/configure.ac +++ b/configure.ac @@ -2847,7 +2847,7 @@ if test "$gmp_asm_syntax_testing" != no; then *-*-darwin*) # Defined in mpn/x86_64/x86_64-defs.m4, but there currently # hardcoded just for ELF, so redefine it here for Mach-O: - GMP_DEFINE_RAW(["define(\`JUMPTABSECT',RODATA)"],POST) + GMP_DEFINE_RAW(["define(\`JUMPTABSECT',\` .section __DATA,__const')"],POST) OBJECT_FORMAT="-f macho64" ;; *-w64-mingw*|*-*-cygwin*) OBJECT_FORMAT="-f x64" ;;