Downloads
| Platform |
Package |
Size |
MD5 checksum |
| Windows |
Android-ndk-r8b-windows.zip |
188724991 bytes |
6d290d4f2729ef2063c5ae5b1e335622 |
| Mac OS X (Intel) |
Android-ndk-r8b-darwin-x86.tar.bz2 |
181255568 bytes |
94fe392194ea41f8a70cfce0dee3870f |
| Linux 32/64-bit (x86) |
Android-ndk-r8b-linux-x86.tar.bz2 |
160466240 bytes |
6694ccc04d543500f0661a75f6c46526 |
Revisions
The sections below provide information and notes about successive releases ofthe ndk, as denoted by revision number.
Android ndk, revision 8b
(July 2012)
The main features of this release are a new GNU Compiler Collection (GCC) 4.6 toolchain andgnu debugger (GDB) 7.3.x which adds debugging support for the android 4.1 (API level 16) systemimage.
-
Important bug fixes:
-
- Fixed
LOCAL_SHORT_COMMANDSIssues on Mac OS, Windows cygwin environments forstatic libraries. list file generation is faster, and it is not regenerated to avoid repeatedproject rebuilds.
- Fixed several issues in
ndk-gdb:
- Updated tool to pass flags
-e,-dAnd-sTo ADB moreconsistently.
- Updated tool to accept device serial names containing spaces.
- Updated tool to retrieve
/system/bin/linkInformation, so
gdbOnthe host can set a breakpoint in__dl_rtld_db_dlactivityAnd be aware of linker activity (e.g., rescan
solibSymbols whendlopen()Is called ).
- Fixed
ndk-build cleanOn Windows, which was failing to remove./libs/*/lib*.so.
- Fixed
ndk-build.cmdTo return a non-zeroERRORLEVELWhen
makeFails.
- Fixed
libc.soTo stop incorrectly exporting__exidx_startAnd__exidx_endSymbols.
- Fixed
SEGVWhen unwinding the stack past__libc_initFor arm andmips.
-
Important changes:
-
- Added GCC 4.6 toolchain (
binutils2.21goldAnd GDB 7.3.x) Toco-exist with the original GCC 4.4.3 toolchain (binutils2.19 and GDB 6.6 ).
- GCC 4.6 is now the default toolchain. You may set
NDK_TOOLCHAIN_VERSION=4.4.3In
Application.mkTo select the original one.
- Support for
goldLinker is only available for ARM and x86ubuntures on Linux and Mac OS hosts. This support is disabled by default. Add
LOCAL_LDLIBS += -fuse-ld=goldInAndroid.mkTo enable it.
- Programs compiled
-fPIERequire the newGDBFor debugging, including binaries in Android 4.1 (API level 16) system images.
- The
binutils2.21ldTool contains back-ported fixes fromversion 2.22:
- Fixed
ld --gc-sections, Which incorrectly retains zombie references toexternal libraries. (moreinfo ).
- Fixed arm
stripCommand to preserve the originalp_alignAndp_flagsIn
GNU_RELROSection if they are valid. Without this fix, programsbuilt
-fPIECocould not be debugged. (More Info)
- Disabled
sincos()Optimization for compatibility with older platforms.
- Updated build options to enable the never execute (nx) bit and
relro/bind_nowProtections by default:
- Added branding for Android executables with
.note.ABI-tagSection (incrtbegin_static/dynamic.o) So that debugging tools can act accordingly. The structuremember and values are defined as follows:
static const struct { int32_t namesz; /* = 4, sizeof ("GNU") */ int32_t descsz; /* = 6 * sizeof(int32_t) */ int32_t type; /* = 1 */ char name[sizeof "GNU"]; /* = "GNU" */ int32_t os; /* = 0 */ int32_t major; /* = 2 */ int32_t minor; /* = 6 */ int32_t teeny; /* = 15 */ int32_t os_variant; /* = 1 */ int32_t android_api; /* = 3, 4, 5, 8, 9, 14 */}
-
Other bug fixes:
-
- Fixed
mips-linux-gnuRelocation truncated to fitR_MIPS_TLS_LDMIssue. (More Info)
- Fixed
ldTool segfaults when using--gc-sections. (More Info)
- Fixed MIPS
GOT_PAGECounting issue. (More Info)
- Fixed follow warning symbol link
mips_elf_count_got_symbols.
- Fixed follow warning symbol link
mips_elf_allocate_lazy_stub.
- Moved MIPS
.dynamicTo the data segment, so that it is writable.
- Replaced hard-coded values for symbols with correct segment sizes for MIPS.
- Removed
-mno-sharedOption from the defaults in the MIPs toolchain. The default for Android toolchain is
-fPIC(Or-fpicIf supported). If you do notexplicitly specify
-mshared,-fpic,-fPIC,-fpie, Or
-fPIE, The MIPs compiler adds-mno-sharedThat turns off pic. Fixed compiler not to add-mno-sharedIn this case.
- Fixed wrong package names in Samples
hello-jniAndtwo-libsSo thatthe
testsProject underneath it can compile.
-
Other changes:
-
- Changed locations of Binaries:
- Moved
gdbserverFromtoolchain/<arch-os-ver>/prebuilt/gdbserverToprebuilt/android-<arch>/gdbserver/gdbserver.
- Renamed x86 toolchain prefix from
i686-android-linux-Toi686-linux-android-.
- Moved
sources/cxx-stl/gnu-libstdc++/includeAndlibTosources/cxx-stl/gnu-libstdc++/4.6When compiled with GCC 4.6, orsources/cxx-stl/gnu-libstdc++/4.4.3When compiled with GCC 4.4.3.
- Moved
libbfd.aAndlibintl.aFromlib/To
lib32/.
- Added and improved various scripts in the rebuild and test ndk toolchain:
- Added
build-mingw64-toolchain.shTo generate a new Linux-hosted toolchainthat generates Win32 and win64 executables.
- Improved speed
download-toolchain-sources.shBy using
cloneCommand and only usingcheckoutFor the directories that are needed to build the ndktoolchain binaries.
- Added
build-host-gcc.shAndbuild-host-gdb.shScripts.
- Added
tests/check-release.shTo check the content of a given ndkinstallation directory, or an existing ndk package.
- Rewrote
tests/standalone/run.shStandalone tests.
- Removed
if_dl.hHeader from all platforms and ubuntures.
AF_LINKAndsockaddr_dlElements It describes are specific to BSD (I. e., They don't existin Linux ).