New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix chacha-armv4.pl with clang -fno-integrated-as. #3694
Conversation
The __clang__-guarded #defines cause gas to complain if clang is passed -fno-integrated-as. Emitting .syntax unified when those are used fixes this. This matches the change made to ghash-armv4.pl in 6cf412c.
By the way, what's the reason not to just use |
You mean unconditionally? I.e. with no |
Concern is extra #if condition few lines below. I mean I need to cross-check this a bit more, especially with iOS... |
You mean the |
The __clang__-guarded #defines cause gas to complain if clang is passed -fno-integrated-as. Emitting .syntax unified when those are used fixes this. This matches the change made to ghash-armv4.pl in upstream's 6cf412c473d8145562b76219ce3da73b201b3255. See also openssl/openssl#3694. This fixes the build with the latest Android NDK (use the NDK-supplied toolchain file) with the armeabi ABI. Bug: chromium:732066 Change-Id: Ic6ca633a58edbe8ae8c7d501bd9515c2476fd7c2 Reviewed-on: https://boringssl-review.googlesource.com/17404 Commit-Queue: Steven Valdez <svaldez@google.com> Reviewed-by: Steven Valdez <svaldez@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
FWIW, this seems to build fine for us on iOS. This file does not have a |
@dot-asm is this still on your radar? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I apologize that it effectively slipped. But I recalled this [and double-checked] when looking at recent problems triggered by latest binutils :-)
Merged. Thanks! |
The __clang__-guarded #defines cause gas to complain if clang is passed -fno-integrated-as. Emitting .syntax unified when those are used fixes this. This matches the change made to ghash-armv4.pl in 6cf412c. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Kurt Roeckx <kurt@roeckx.be> (Merged from #3694)
@dot-asm, does this look right? I'm not fully up to speed with all the details around ARM assembly syntax variants and am piecing things together as I go.
The
__clang__
-guarded#define
s causegas
to complain ifclang
is passed-fno-integrated-as
. Emitting.syntax unified
when those are used fixesthis. This matches the change made to ghash-armv4.pl in
6cf412c.