curve25519, poly1305: mark constants as RODATA

Fixes tests when using Go tip.  Without this the link steps
fails with errors like:

missing Go type information for global symbol: google3/third_party/golang/go_crypto/curve25519/curve25519.REDMASK51 size 8

LGTM=agl
R=agl
CC=golang-codereviews
https://golang.org/cl/156810043
This commit is contained in:
Ian Lance Taylor
2014-10-07 16:59:07 -07:00
parent 72116d5c17
commit 20b2ab3f62
2 changed files with 26 additions and 22 deletions
+6 -4
View File
@@ -7,14 +7,16 @@
// +build amd64,!gccgo
#include "textflag.h"
DATA ·REDMASK51(SB)/8, $0x0007FFFFFFFFFFFF
GLOBL ·REDMASK51(SB), $8
GLOBL ·REDMASK51(SB), RODATA, $8
DATA ·_121666_213(SB)/8, $996687872
GLOBL ·_121666_213(SB), $8
GLOBL ·_121666_213(SB), RODATA, $8
DATA ·_2P0(SB)/8, $0xFFFFFFFFFFFDA
GLOBL ·_2P0(SB), $8
GLOBL ·_2P0(SB), RODATA, $8
DATA ·_2P1234(SB)/8, $0xFFFFFFFFFFFFE
GLOBL ·_2P1234(SB), $8
GLOBL ·_2P1234(SB), RODATA, $8