Missing TEXT and ALIGN()

Andrew Nicholson abhuman at gmail.com
Wed Mar 22 23:37:58 CET 2006


Hello,

I've recently run into a problem with gmp where the pentium versions of
mpn_com_n, mpn_copyd, and mpn_copyi are missing the TEXT and ALIGN()
directives.  This causes the functions to be placed in the
'.note.GNU-stack' section which gets stripped out at link time.  This is
the case for both the released 4.1.4 and the 4.2 release candidate,
4.1.99.  I've attached a small patch to add the missing directives to
the three files.

Andrew
-------------- next part --------------
diff -Nru gmp-4.1.4.orig/mpn/x86/pentium/com_n.asm gmp-4.1.4/mpn/x86/pentium/com_n.asm
--- gmp-4.1.4.orig/mpn/x86/pentium/com_n.asm	2002-04-19 15:39:28.000000000 -0700
+++ gmp-4.1.4/mpn/x86/pentium/com_n.asm	2006-03-22 14:09:37.000000000 -0800
@@ -44,6 +44,8 @@
 defframe(PARAM_SRC, 8)
 defframe(PARAM_DST, 4)
 
+	TEXT
+	ALIGN(8)
 PROLOGUE(mpn_com_n)
 deflit(`FRAME',0)
 
diff -Nru gmp-4.1.4.orig/mpn/x86/pentium/copyd.asm gmp-4.1.4/mpn/x86/pentium/copyd.asm
--- gmp-4.1.4.orig/mpn/x86/pentium/copyd.asm	2002-03-30 14:20:30.000000000 -0800
+++ gmp-4.1.4/mpn/x86/pentium/copyd.asm	2006-03-22 14:09:42.000000000 -0800
@@ -33,6 +33,8 @@
 defframe(PARAM_SRC, 8)
 defframe(PARAM_DST, 4)
 
+	TEXT
+	ALIGN(8)
 PROLOGUE(mpn_copyd)
 deflit(`FRAME',0)
 
diff -Nru gmp-4.1.4.orig/mpn/x86/pentium/copyi.asm gmp-4.1.4/mpn/x86/pentium/copyi.asm
--- gmp-4.1.4.orig/mpn/x86/pentium/copyi.asm	2002-03-30 14:20:30.000000000 -0800
+++ gmp-4.1.4/mpn/x86/pentium/copyi.asm	2006-03-22 14:09:47.000000000 -0800
@@ -49,6 +49,8 @@
 defframe(PARAM_SRC, 8)
 defframe(PARAM_DST, 4)
 
+	TEXT
+	ALIGN(8)
 PROLOGUE(mpn_copyi)
 deflit(`FRAME',0)
 


More information about the gmp-bugs mailing list