Because gen-platforms.sh includes the current *bionic* directories, this
mistake in the android-9 crtbegin.c wasn't being noticed. It was using
the platform __stack_chk_fail_local.h instead of the missing local one.
crtbegin.c:63:59: fatal error: ../../arch-x86/bionic/__stack_chk_fail_local.h: No such file or directory
# include "../../arch-x86/bionic/__stack_chk_fail_local.h"
Bug: N/A
Test: builds
Change-Id: I8306cee1cf6d974ac5c3dae0c2927af3ceeb2cf6
Without this, we won't copy the android-26 libraries even though we
have them because the platforms directory is built based on what
directories we have here.
It would be better to rewrite gen-platforms.sh to be less awful, but
given that the whole script can be deleted when we drop the
deprecated headers in r16, there's not much point in doing so.
Test: ndk/checkbuild.py && ndk/run_tests.py --filter aaudio
Bug: None
Change-Id: I3c1861f50c8e779d5489e12887180ef1f2099e4a
This fixes some issues with using boost's asio (which wrongly assumes
_BSD_SOURCE implies that these things are available) following our
change from -isystem to --sysroot.
Test: Manual, check that we can build when using cfsetspeed on ICS.
Bug: https://github.com/android-ndk/ndk/issues/302
Change-Id: Iab50221e4864f9a09a8fb00691252170eb6e8d09
This reverts commit 45e5c53e91.
Reason for revert: jmgao's versioner is still using them
Bug: http://b/35243030
Change-Id: I17779695c443f3353082d122eacaffba5e5663d3
These aren't part of the current UAPI headers. They're already gone
from the unified headers, but it would be good to remove them from
the legacy headers as well since it will help find the people that
are still using them (if any).
Test: ndk/checkbuild.py
Bug: None
Change-Id: I04f78e06116a7fba3c894c710dee014cda4030f4
Also allow the variables to be set directly by -D rather
than using sed.
Bug: http://b/34779141
Test: builds
Change-Id: Ie81b2f0194d11bdfeffc2ded29ae456420a9f20d
Not needed for x86 because it has always had a working fenv
implementation.
We want to add the fixed implementations of fenv to libandroid_support
rather than dirtying up the bionic headers for these, but with the
inlines and the types in the same header we can't do this easily.
Backport machine/fenv.h for these architectures so we can simplify
this.
These are just copied from the android-21 directory. They aren't
moved because gen-platforms.sh actually removes all the currently
accumulated headers for android-21, so android-21 needs to have a
full set of headers...
Test: ndk/checkbuild.py
Bug: https://github.com/android-ndk/ndk/issues/120
Change-Id: Idc3bebc533230afca563c6911c65e90b51342a4b
I'd actually fixed sys/cdefs.h quite some time ago, but that
definition of __pure2 was being clobbered by the bogus one in math.h.
Test: clang -E -dM --sysroot $NDK/platforms/android-9/arch-arm/ \
platforms/android-9/include/math.h | grep __pure2
Bug: http://b.android.com/62020
Change-Id: I9b93a7c46075a02ed1ea0ca2cc77624b15955c7f
Most NDK libraries don't have version scripts yet, so add a --create
mode that will generate one based on what we know.
Also rename the script to annotate_version_script.py since that's
more accurate.
Test: ./annotate_version_script.py --create libcamera2ndk.so.json \
../../frameworks/av/camera/ndk/libcamera2ndk.map.txt
Bug: None
Change-Id: I62040612118ffb65fabb93157faed79b135f3230
Function file is up above, this should be the variables file.
Test: ./build_symbol_db.py libcamera2ndk
Bug: None
Change-Id: I5ec8a7f3b10a46c984f3e8d3b74caf43ccc77910
Ugh. We had redefinitions of all the __builtin_* math functions in
here.
Test: ./checkbuild.py
Bug: https://github.com/android-ndk/ndk/issues/142
Change-Id: Iec187c3a542e2dc9b3d628c2a9aa3fb45d7986ef
This function is already exported by libc.so there
is no need for it in libstdc++.so
Bug: http://b/28987948
Test: python tests/run-all.py --abi armeabi --platform android-21 --suite build /ssd/aosp/master-ndk/out/android-ndk-r13-beta1
Test: python tests/run-all.py --abi arm64-v8a --platform android-21 --suite build /ssd/aosp/master-ndk/out/android-ndk-r13-beta1
Change-Id: Ia67fd60d31b9427db27ffc2ba980b331da3a8e6a
There are not present in current platform version of the library.
Bug: http://b/28987948
Test: python checkbuild.py
Change-Id: Iace0af9f7ee0d9fa424ea4f27035894499f4aa8c
We need to update these for the multinetwork and atrace APIs. Copy
the baseline android-21 into place first to make the review simpler.
Bug: http://b/29936226
Change-Id: Ieb6d9f68b0474f0ec86a79b43bbd9f682d3b6aea
I did a bad job of reviewing this. This is libandroid.so, not a new
library. We need to keep all the old symbols here too. I'll copy in
android-21 first, then add these back.
This reverts commit 00b322bb05.
Bug: http://b/29936226
Change-Id: Ia3d7762599c29cc97add0c3f8a93b9562bed53f6
The only difference between crtbegin_static.c and crtbegin_dynamic.c
is the inclusion of the atexit implementation. Until android-21,
atexit was included in libc.a. After android-21, it's expected to
come from crtbegin. In true NDK fashion, this isn't true across all
architectures. x86 and mips always had this coming from crtbegin.
Copy the android-9 ARM CRT files to android-21 and merge the crtbegin
implementations.
We should probably take a closer look at everything going on here at
some point to make sure we don't need anything new from the bionic
sources.
Test: Improved tests/device/static-executable in the NDK, built ARM
NDK, tested with and without `--platform android-21`.
Bug: https://github.com/android-ndk/ndk/issues/132
Change-Id: Ibc73984db25359590384391583bf24f738c8dd30
Remove android-14 symbols for libc.so there is nothing new in
android-14. Also move version scripts for libc to android-12.
Bug: http://b/26143749
Change-Id: I854e142c1c06f099eef908518bcc5ddec257f3cb