From: akuster808 <akuster808@gmail.com>
To: Mark Hatle <mark.hatle@windriver.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH][dizzy] nss: define MP_USE_UINT_DIGIT when compile mpi_x86.s
Date: Mon, 24 Nov 2014 19:07:33 -0800 [thread overview]
Message-ID: <5473F275.1000907@gmail.com> (raw)
In-Reply-To: <1416364893-213981-1-git-send-email-mark.hatle@windriver.com>
thanks,
staging for dizzy merge.
- armin
On 11/18/2014 06:41 PM, Mark Hatle wrote:
> From: Roy Li <rongqing.li@windriver.com>
>
> Backport patch to fix the segfault when do multiple.
>
> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
> ---
> .../nss/files/Using-correct-macro-for-x86.patch | 42 ++++++++++++++++++++++
> meta/recipes-support/nss/nss.inc | 1 +
> 2 files changed, 43 insertions(+)
> create mode 100644 meta/recipes-support/nss/files/Using-correct-macro-for-x86.patch
>
> diff --git a/meta/recipes-support/nss/files/Using-correct-macro-for-x86.patch b/meta/recipes-support/nss/files/Using-correct-macro-for-x86.patch
> new file mode 100644
> index 0000000..21d2ef7
> --- /dev/null
> +++ b/meta/recipes-support/nss/files/Using-correct-macro-for-x86.patch
> @@ -0,0 +1,42 @@
> +Using correct macro for x86
> +
> +Upstream-Status: Backport
> +
> +squash 11040 and 11043 as one patch
> +
> +changeset: 11040:60412aa39b8d
> +user: Stephan Bergmann <sbergman@redhat.com>
> +date: Fri Feb 14 17:45:40 2014 -0800
> +files: lib/freebl/Makefile
> +description:
> +Bug 972450: Define -DMP_USE_UINT_DIGIT for Linux x86 because mpi_x86.s
> +requires mp_digit to be an unsigned int. The MP_USE_UINT_DIGIT macro
> +ensures that. We were previously relying on ULLONG_MAX being undefined
> +in the compilation environment, which isn't true in C99 mode. Also
> +define -DMP_NO_MP_WORD to match Windows x86. r=wtc.
> +
> +
> +changeset: 11043:fa9a3a970910
> +parent: 11040:60412aa39b8d
> +user: Wan-Teh Chang <wtc@google.com>
> +date: Tue Feb 18 14:26:25 2014 -0800
> +files: lib/freebl/Makefile
> +description:
> +Bug 972450: Don't define -DMP_NO_MP_WORD for Linux x86 (unless one
> +can show it improves performance).
> +
> +Signed-off-by: Roy Li <rongqing.li@windriver.com>
> +
> +diff -r f451ea1a2b12 -r 60412aa39b8d nss/lib/freebl/Makefile
> +--- a/nss/lib/freebl/Makefile Thu Feb 13 18:55:13 2014 -0800
> ++++ b/nss/lib/freebl/Makefile Fri Feb 14 17:45:40 2014 -0800
> +@@ -195,7 +195,7 @@
> + ifeq ($(CPU_ARCH),x86)
> + ASFILES = mpi_x86.s
> + DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE
> +- DEFINES += -DMP_ASSEMBLY_DIV_2DX1D
> ++ DEFINES += -DMP_ASSEMBLY_DIV_2DX1D -DMP_USE_UINT_DIGIT
> + DEFINES += -DMP_CHAR_STORE_SLOW -DMP_IS_LITTLE_ENDIAN
> + # The floating point ECC code doesn't work on Linux x86 (bug 311432).
> + #ECL_USE_FP = 1
> +
> diff --git a/meta/recipes-support/nss/nss.inc b/meta/recipes-support/nss/nss.inc
> index 7919ddd..c284e63 100644
> --- a/meta/recipes-support/nss/nss.inc
> +++ b/meta/recipes-support/nss/nss.inc
> @@ -24,6 +24,7 @@ SRC_URI = "\
> file://nss-CVE-2013-5606.patch \
> file://nss-CVE-2014-1544.patch \
> file://nss-CVE-2014-1568.patch \
> + file://Using-correct-macro-for-x86.patch \
> "
> SRC_URI_append = "\
> file://nss.pc.in \
>
prev parent reply other threads:[~2014-11-25 3:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 2:41 [PATCH][dizzy] nss: define MP_USE_UINT_DIGIT when compile mpi_x86.s Mark Hatle
2014-11-25 3:07 ` akuster808 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5473F275.1000907@gmail.com \
--to=akuster808@gmail.com \
--cc=mark.hatle@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox