Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wim Lewis
nettle
Commits
5c8127d4
Commit
5c8127d4
authored
11 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Attempt to get asm rodata working on macosx.
parent
a692074f
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
config.m4.in
+1
-0
1 addition, 0 deletions
config.m4.in
configure.ac
+9
-0
9 additions, 0 deletions
configure.ac
x86_64/gcm-hash8.asm
+1
-1
1 addition, 1 deletion
x86_64/gcm-hash8.asm
with
16 additions
and
1 deletion
ChangeLog
+
5
−
0
View file @
5c8127d4
2013-12-17 Niels Möller <nisse@lysator.liu.se>
* configure.ac (ASM_RODATA): New substituted variable. Needed for
portability to darwin.
* config.m4.in: Define RODATA, using configure variable ASM_RODATA
* x86_64/gcm-hash8.asm: Use RODATA macro.
* bignum-random-prime.c (_nettle_generate_pocklington_prime): Use
stronger variants of Pocklington's theorem, to allow p0 of size
down to bits/3.
...
...
This diff is collapsed.
Click to expand it.
config.m4.in
+
1
−
0
View file @
5c8127d4
...
...
@@ -6,6 +6,7 @@ define(<TYPE_PROGBITS>, <@ASM_TYPE_PROGBITS@>)dnl
define(<ALIGN_LOG>, <@ASM_ALIGN_LOG@>)dnl
define(<ALIGNOF_UINT64_T>, <@ALIGNOF_UINT64_T@>)dnl
define(<W64_ABI>, <@W64_ABI@>)dnl
define(<RODATA>, <@ASM_RODATA@>)dnl
divert(1)
@ASM_MARK_NOEXEC_STACK@
divert
This diff is collapsed.
Click to expand it.
configure.ac
+
9
−
0
View file @
5c8127d4
...
...
@@ -332,10 +332,19 @@ EOF
AC_MSG_WARN([No assembler files found.])
fi
fi
case "$host_os" in
darwin*)
ASM_RODATA='.section __TEXT,__const'
;;
*)
ASM_RODATA='.section .rodata'
;;
esac
fi
AC_SUBST([OPT_ASM_NETTLE_SOURCES])
AC_SUBST([OPT_ASM_HOGWEED_SOURCES])
AC_SUBST([ASM_RODATA])
AH_VERBATIM([HAVE_NATIVE],
[/* Define to 1 each of the following for which a native (ie. CPU specific)
...
...
This diff is collapsed.
Click to expand it.
x86_64/gcm-hash8.asm
+
1
−
1
View file @
5c8127d4
...
...
@@ -188,7 +188,7 @@ ALIGN(16)
EPILOGUE
(
_nettle_gcm_hash8
)
define
(
<
W
>
,
<
0
x$2$1
>
)
.section
.rodata
RODATA
ALIGN
(
2
)
.Lshift_table:
.short
W
(
00
,
00
),
W
(
01
,
c2
),
W
(
03
,
84
),
W
(
02
,
46
),
W
(
07
,
08
),
W
(
06
,
ca
),
W
(
04
,
8
c
),
W
(
05
,
4
e
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment