[PATCH] Fix sparc64 hardcoded .rodata et al.

David Miller davem at davemloft.net
Tue Apr 16 02:11:49 CEST 2013


Let's take care of this while it's still fresh in our minds.

2013-04-15  David S. Miller  <davem at davemloft.net>

	* mpn/sparc64/gcd_1.asm: Use RODATA, TYPE, and SIZE.

diff -r 5ea92466ab67 mpn/sparc64/gcd_1.asm
--- a/mpn/sparc64/gcd_1.asm	Mon Apr 15 23:00:14 2013 +0200
+++ b/mpn/sparc64/gcd_1.asm	Mon Apr 15 17:04:08 2013 -0700
@@ -37,13 +37,14 @@
 deflit(MAXSHIFT, 7)
 deflit(MASK, eval((m4_lshift(1,MAXSHIFT))-1))
 
-	.section	".rodata"
+	RODATA
+	TYPE(ctz_table,object)
 ctz_table:
 	.byte	MAXSHIFT
 forloop(i,1,MASK,
 `	.byte	m4_count_trailing_zeros(i)
 ')
-
+	SIZE(ctz_table,.-ctz_table)
 
 C Threshold of when to call bmod when U is one limb.  Should be about
 C (time_in_cycles(bmod_1,1) + call_overhead) / (cycles/bit).


More information about the gmp-devel mailing list