[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gmp 4.1 on OpenBSD
From: |
Christian Weisgerber |
Subject: |
gmp 4.1 on OpenBSD |
Date: |
Mon, 14 Oct 2002 16:33:17 +0200 |
User-agent: |
Mutt/1.4i |
1.
OpenBSD/sparc64 is a true 64-bit platform. Currently, gmp's configure
script doesn't recognize OpenBSD/sparc64 and falls back to a Linux-
inspired 32-bit default that builds but doesn't work. I copied the
settings that appeared relevant from the Solaris section and with
the following change gmp 4.1 builds and tests fine on OpenBSD/sparc64.
I strongly suspect that the same patch is required for NetBSD/sparc64
and FreeBSD/sparc64.
--------------->
--- configure.in.orig Thu Oct 10 17:37:32 2002
+++ configure.in Thu Oct 10 17:39:42 2002
@@ -875,6 +875,12 @@ case $host in
SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
cyclecounter_size_64=2
;;
+ [*-*-openbsd*])
+ abilist="64 32"
+ path_64="sparc64"
+ SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
+ cyclecounter_size_64=2
+ ;;
esac
;;
esac
<---------------
2.
OpenBSD/i386 is still an a.out platform and it does require GSYM_PREFIX
('_') for _GLOBAL_OFFSET_TABLE_, cf. mpn/x86/README. I don't know
whether this is compatible with other i386/a.out platforms.
--------------->
--- mpn/x86/dive_1.asm.orig Mon Oct 14 02:06:16 2002
+++ mpn/x86/dive_1.asm Mon Oct 14 02:07:10 2002
@@ -71,7 +71,7 @@ L(strip_twos):
ifdef(`PIC',`
call L(movl_eip_edx)
- addl $_GLOBAL_OFFSET_TABLE_, %edx
+ addl $GSYM_PREFIX`'_GLOBAL_OFFSET_TABLE_, %edx
movl address@hidden(%edx), %edx
movzbl (%eax,%edx), %eax C inv 8 bits
',`
<---------------
--
Christian "naddy" Weisgerber address@hidden
- gmp 4.1 on OpenBSD,
Christian Weisgerber <=
- Re: gmp 4.1 on OpenBSD, Kevin Ryde, 2002/10/15
- Re: gmp 4.1 on OpenBSD, Christian Weisgerber, 2002/10/15
- Re: gmp 4.1 on OpenBSD, Kevin Ryde, 2002/10/15
- Re: gmp 4.1 on OpenBSD, Christian Weisgerber, 2002/10/18
- Re: gmp 4.1 on OpenBSD, Kevin Ryde, 2002/10/19
- Re: gmp 4.1 on OpenBSD, Christian Weisgerber, 2002/10/20
- Re: gmp 4.1 on OpenBSD, Kevin Ryde, 2002/10/20