1page.title=NDK Revision History 2@jd:body 3 4<p>This page provides information on previous releases of the NDK, enumerating the changes that 5took place in each new version.</p> 6 7 8<div class="toggle-content closed"> 9<a name="11b"></a> 10 <p> 11 <a href="#" onclick="return toggleContent(this)"> <img 12 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 13 >Android NDK, Revision 11c</a> <em>(March 2016)</em> 14 </p> 15 <div class="toggle-content-toggleme"> 16 17<dl> 18 <dd> 19 <ul> 20 <li>Changes 21 <ul> 22 <li>Applied additional fixes to the {@code ndk-gdb.py} script. 23 </li> 24 <li>Added an optional package name argument to the {@code ndk-gdb} 25 command {@code --attach} option. 26 (<a href="https://github.com/android-ndk/ndk/issues/13">Issue 13</a>) 27 </li> 28 <li>Fixed invalid toolchain paths for 32-bit Windows platform. 29 (<a href="https://github.com/android-ndk/ndk/issues/45">Issue 45</a>) 30 </li> 31 <li>Fixed the relative path for the {@code ndk-which} command. 32 (<a href="https://github.com/android-ndk/ndk/issues/29">Issue 29</a>) 33 </li> 34 <li>Fixed use of cygpath for the libgcc compiler. 35 (Android <a href="http://b.android.com/195486">Issue 195486</a>) 36 </li> 37 </ul> 38 </li> 39 </ul> 40 </dd> 41</dl> 42 43 </div> 44</div> 45 46<div class="toggle-content closed"> 47<a name="11b"></a> 48 <p> 49 <a href="#" onclick="return toggleContent(this)"> <img 50 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 51 >Android NDK, Revision 11b</a> <em>(March 2016)</em> 52 </p> 53 <div class="toggle-content-toggleme"> 54 55 <dl> 56 <dt>NDK</dt> 57 <dd> 58 <ul> 59 <li>Important announcements 60 <ul> 61 <li>We’ve moved our bug tracker to <a href="https://github.com/android-ndk/ndk/issues"> 62 GitHub.</a></li> 63 </ul> 64 </li> 65 66 <li>Changes 67 <ul> 68 <li>{@code ndk-gdb.py} is fixed. It had 69 <a href="https://github.com/android-ndk/ndk/issues/3">regressed entirely</a> 70 in r11.</li> 71 <li>{@code ndk-gdb} for Mac <a href="https://github.com/android-ndk/ndk/issues/2"> 72 is fixed</a>.</li> 73 <li>Added more top-level shortcuts for command line tools: 74 <ul> 75 <li>{@code ndk-depends}.</li> 76 <li>{@code ndk-gdb}.</li> 77 <li>{@code ndk-stack}.</li> 78 <li>{@code ndk-which}. This command had been entirely absent from previous 79 releases.</li> 80 </ul> 81 </li> 82 <li>Fixed standalone toolchains for libc++, which had been missing 83 {@code __cxxabi_config.h}.</li> 84 <li>Fixed help documentation for {@code --toolchain} in 85 {@code make-standalone-toolchain.sh}.</li> 86 </li> 87 </ul> 88 </dd> 89 90 <dt>Clang</dt> 91 <dd> 92 <ul> 93 <li>Errata</li> 94 <ul> 95 <li>Contrary to what we reported in the r11 Release Notes, {@code __thread} 96 does not work. This is because the version of Clang we ship is missing a bug fix for 97 emulated TLS support.</li> 98 </ul> 99 </ul> 100 </dd> 101 </dl> 102 103 104 </div> 105</div> 106 107<div class="toggle-content closed"> 108<a name="11"></a> 109 <p> 110 <a href="#" onclick="return toggleContent(this)"> <img 111 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 112 >Android NDK, Revision 11</a> <em>(March 2016)</em> 113 </p> 114 <div class="toggle-content-toggleme"> 115 <dl> 116 <dt>Clang</dt> 117 <dd> 118 <ul> 119 <li>Important announcements 120 <ul> 121 <li>We strongly recommend switching to Clang. 122 <ul> 123 <li>If you experience problems with Clang, file bugs 124 <a href="https://github.com/android-ndk/ndk/issues">here</a> for issues 125 specific to Clang in the NDK. For more general Clang issues, 126 file bugs by following the instructions on 127 <a href="http://llvm.org/docs/HowToSubmitABug.html">this page</a>.</li> 128 </ul> 129 </li> 130 <li>Clang has been updated to 3.8svn (r243773, build 2481030). 131 <ul> 132 <li>This version is a nearly pure upstream Clang.</li> 133 <li>The Windows 64-bit downloadable NDK package contains a 32-bit 134 version of Clang.</li> 135 </ul> 136 </li> 137 </ul> 138 </li> 139 140 <li>Additions 141 <ul> 142 <li>Clang now provides support for emulated TLS. 143 <ul> 144 <li>The compiler now supports {@code __thread} by emulating 145 ELF TLS with pthread thread-specific data.</li> 146 <li>C++11 {@code thread_local} works in some cases, but not 147 for data with non-trivial destructors, because those cases 148 require support from libc. This limitation does not 149 apply when running on Android 6.0 (API level 23) or newer.</li> 150 <li>Emulated TLS does not yet work with Aarch64 when 151 TLS variables are accessed from a shared library.</li> 152 </ul> 153 </li> 154 </ul> 155 </dd> 156 </dl> 157 158 <dl> 159 <dt>GCC</dt> 160 <dd> 161 <ul> 162 <li>Important announcements</li> 163 <ul> 164 <li>GCC in the NDK is now deprecated in favor of Clang. 165 <ul> 166 <li>The NDK will neither be upgrading to 5.x, nor accept 167 non-critical backports.</li> 168 <li>Maintenance for miscompiles and internal compiler errors 169 in 4.9 will be handled on a case by case basis.</li> 170 </ul> 171 </li> 172 </ul> 173 <li>Removals 174 <ul> 175 <li>Removed GCC 4.8. All targets now use GCC 4.9.</li> 176 </ul> 177 </li> 178 <li>Other changes 179 <ul> 180 <li>Synchronized google/gcc-4_9 to r224707. Previously, it had been 181 synchronized with r214835.</li> 182 </ul> 183 </li> 184 </ul> 185 </dd> 186 </dl> 187 <dl> 188 <dt>NDK</dt> 189 <dd> 190 <ul> 191 <li>Important announcements 192 <ul> 193 <li>The samples are no longer included in the NDK package. 194 They are instead available on 195 <a href="https://github.com/googlesamples/android-ndk">GitHub.</a> 196 </li> 197 <li>The documentation is no longer included in the NDK package. 198 Instead, it is on the <a href="{@docRoot}ndk/index.html">Android 199 developer website.</a></li> 200 </ul> 201 </li> 202 203 <li>Additions 204 <ul> 205 <li>Added a native tracing API to {@code android-23}.</li> 206 <li>Added a native multinetwork API to {@code android-23}.</li> 207 <li>Enabled libc, m, and dl to provide versioned symbols, starting 208 from API level 21.</li> 209 <li>Added Vulkan headers and library to API level N.</li> 210 </ul> 211 </li> 212 213 <li>Removals 214 <ul> 215 <li>Removed support for {@code _WCHAR_IS_8BIT}.</li> 216 <li>Removed sed.</li> 217 <li>Removed mclinker.</li> 218 <li>Removed Perl.</li> 219 <li>Removed from all versions of NDK libc, m, and dl all symbols which 220 the platform versions of those libs do not support.</li> 221 <li>Partially removed support for mips64r2. The rest will be removed 222 in the future.</li> 223 </ul> 224 </li> 225 226 <li>Other changes 227 <ul> 228 <li>Changed ARM standalone toolchains to default to arm7. 229 <ul> 230 <li>You can restore the old behavior by passing specifying the 231 {@code -target} option as {@code armv5te-linux-androideabi}. 232 </li> 233 </ul> 234 </li> 235 <li>Changed the build system to use {@code -isystem} for platform 236 includes. 237 <ul> 238 <li>Warnings that bionic causes no longer break app builds.</li> 239 </ul> 240 </li> 241 <li>Fixed a segfault that occurred when a binary threw exceptions 242 via gabi++. (Issue <a href="http://b.android.com/179410">179410</a>) 243 </li> 244 <li>Changed libc++’s inline namespace to {@code std::__ndk1} 245 to prevent ODR issues with platform libc++.</li> 246 247 <li>All libc++ libraries are now built with libc++abi. 248 <li>Bumped default {@code APP_PLATFORM} to Gingerbread. 249 <ul> 250 <li>Expect support for Froyo and older to be dropped in a 251 future release.</ul> 252 </ul> 253 <li>Updated gabi++ {@code _Unwind_Exception} struct for 64 bits. 254 <li>Added the following capabilities to cpufeatures: 255 <ul> 256 <li>Detect SSE4.1 and SSE4.2.</li> 257 <li>Detect cpu features on x86_64.</li> 258 </ul> 259 </li> 260 <li>Updated libc++abi to upstream 261 <a href="http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20150302/124603.html"> 262 r231075</a>. 263 <li>Updated {@code byteswap.h}, {@code endian.h}, {@code sys/procfs.h}, 264 {@code sys/ucontext.h}, {@code sys/user.h}, and {@code uchar.h} from 265 ToT Bionic. 266 <li>Synchronized {@code sys/cdefs.h} across all API levels. 267 268 <li>Fixed {@code fegetenv and fesetenv} for arm. 269 <li>Fix end pointer size/alignment of {@code crtend_*} for mips64 270 and x86_64. 271 </ul> 272 </li> 273 </ul> 274 </ul> 275 </dd> 276 <dl> 277 <dl> 278 <dt>Binutils</dt> 279 <dd> 280 <ul> 281 <li>Additions 282 <ul> 283 <li>Added a new option: {@code --pic-veneer}.</li> 284 </ul> 285 </li> 286 287 <li>Removals 288 <ul> 289 <li>The 32-bit Windows package no longer contains ld.gold. 290 You can instead get ld.gold from the 64-bit Windows package.</li> 291 </ul> 292 </li> 293 294 <li>Changes 295 <ul> 296 <li>Unified binutils source between Android and ChromiumOS. 297 For more information on this change, see the comments 298 <a href="https://android-review.googlesource.com/#/c/182865/"> 299 here.</a></li> 300 <li>Improved reliability of Gold for aarch64. Use 301 {@code -fuse-ld=gold} at link time to use gold instead of bfd. 302 The default will likely switch in the next release.</li> 303 <li>Improved linking time for huge binaries for Gold ARM back end 304 (up to 50% linking time reduction for debuggable Chrome Browser). 305 </li> 306 </ul> 307 </li> 308 </ul> 309 </dd> 310 <dl> 311 <dl> 312 <dt>GDB</dt> 313 <dd> 314 <ul> 315 316 <li>Removals 317 <ul> 318 <li>Removed ndk-gdb in favor of ndk-gdb.py.</li> 319 </ul> 320 </li> 321 322 <li>Changes 323 <ul> 324 <li>Updated gdb to version 7.10.</li> 325 <li>Improved performance.</li> 326 <li>Improved error messages.</li> 327 <li>Fixed relative project paths.</li> 328 <li>Stopped Ctrl-C from killing the backgrounded gdbserver.</li> 329 <li>Improved Windows support.</li> 330 </ul> 331 </li> 332 </ul> 333 </dd> 334 335 <dl> 336 <dl> 337 <dt>YASM</dt> 338 <dd> 339 <ul> 340 341 <li>Changes 342 <ul> 343 <li>Updated YASM to version 1.3.0.</li> 344 </ul> 345 </li> 346 </ul> 347 </dd> 348 349 <dl> 350 <dl> 351 <dt>Known issues</dt> 352 <dd> 353 <ul> 354 <li>x86 ASAN does not currently work. For more information, see the 355 discussion <a href="https://android-review.googlesource.com/#/c/186276/"> 356 here.</a></li> 357 <li>The combination of Clang, x86, stlport_static, and optimization 358 levels higher than {@code -O0} causes test failures with 359 {@code dynamic_cast}. For more information, see the comments 360 <a href="https://android-review.googlesource.com/#/c/185920">here</a>. 361 </li> 362 <li>Exception handling often fails with c++_shared on ARM32. The root 363 cause is incompatibility between the LLVM unwinder that libc++abi uses 364 for ARM32 and libgcc. This behavior is not a regression from r10e.</li> 365 </ul> 366 </dd> 367 </dl> 368 369 </div> 370</div> 371 372<div class="toggle-content closed"> 373<a name="10e"></a> 374 <p> 375 <a href="#" onclick="return toggleContent(this)"> <img 376 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 377 >Android NDK, Revision 10e</a> <em>(May 2015)</em> 378 </p> 379 <div class="toggle-content-toggleme"> 380 <dl> 381 <dt>Important changes:</dt> 382 <dd> 383 <ul> 384 <li>Integrated the workaround for Cortex-A53 Erratum 843419 into the 385 {@code aarch64-linux-android-4.9} linker. For more information on this workaround, see 386 <a href="https://sourceware.org/ml/binutils/2015-03/msg00446.html">Workaround for cortex-a53 387 erratum 843419.</a></li> 388 389 <li>Added Clang 3.6; {@code NDK_TOOLCHAIN_VERSION=clang} now picks that version 390 of Clang by default.</li> 391 392 <li>Removed Clang 3.4.</li> 393 394 <li>Removed GCC 4.6.</li> 395 396 <li>Implemented multithreading support in {@code ld.gold} for all architectures. It can 397 now link with or without support for multithreading; the default is to do it without. 398 <ul> 399 <li>To compile with multithreading, use the {@code --threads} option.</li> 400 <li>To compile without multithreading, use the {@code --no-threads} option.</li> 401 </ul> 402 </li> 403 404 <li>Upgraded GDB/gdbserver to 7.7 for all architectures.</li> 405 406 <li>Removed the NDK package for 32-bit Darwin.</li> 407 </ul> 408 </dd> 409 <dl> 410 411 412 <dt>Important bug fixes:</dt> 413 <dd> 414 <ul> 415 <li>Fixed a crash that occurred when there were OpenMP loops outside of the main thread.</li> 416 417 <li>Fixed a GCC 4.9 internal compiler error (<i>ICE</i>) that occured when the user declared 418 {@code #pragma GCC optimize ("O0")}, but had a different level of optimization specified 419 on the command line. The {@code pragma} takes precedence.</li> 420 421 <li>Fixed an error that used to produce a crash with the following error message: 422<pre> 423in add_stores, at var-tracking.c:6000 424</pre> 425 </li> 426 427 <li>Implemented a workaround for a Clang 3.5 issue in which LLVM auto-vectorization 428 generates {@code llvm.cttz.v2i64()}, an instruction with no counterpart in the ARM 429 instruction set.</li> 430 </ul> 431 </dd> 432 433 <dt>Other bug fixes:</dt> 434 <dd> 435 <ul> 436 <li>Made the following header and library fixes:</li> 437 <ul> 438 <li>Fixed {@code PROPERTY_*} in {@code media/NdkMediaDrm.h}.</li> 439 <li>Fixed {@code sys/ucontext.h} for {@code mips64}.</li> 440 <li>Dropped the Clang version check for {@code __builtin_isnan} and 441 {@code __builtin_isinf}.</li> 442 <li>Added {@code android-21/arch-mips/usr/include/asm/reg.h} 443 and {@code android-21/arch-mips64/usr/include/asm/reg.h}.</li> 444 </ul> 445 </li> 446 447 <li>Fixed a spurious array-bounds warning that GCC 4.9 produced for x86, and reenabled the 448 array bounds warning that GCC 4.9 had produced for ARM. The warning for ARM had 449 previously been unconditionally disabled.</li> 450 451 <li>Fixed Clang 3.5 for {@code mips} and {@code mips64} to create a writable 452 {@code .gcc_except_table} section, thus matching GCC behavior. This change allows you 453 to avoid the following linker warning: 454 455<pre> 456.../ld: warning: creating a DT_TEXTREL in a shared object 457</pre> 458 </li> 459 460 <li>Backported a fix for {@code compiler-rt} issues that were causing crashes when Clang 461 compiled for {@code mips64}. For more information, see LLVM Issue 462 <a href="http://llvm.org/bugs/show_bug.cgi?id=20098">20098</a>.</li> 463 464 <li>Fixed Clang 3.5 crashes that occurred on non-ASCII comments. (Issue 465 <a href="https://code.google.com/p/android/issues/detail?id=81440">81440</a>)</li> 466 467 <li>Fixed {@code stlport collate::compare} to return {@code -1} and {@code 1}. Previously, 468 it had returned arbitrary signed numbers.</li> 469 470 <li>Fixed {@code ndk-gdb} for 64-bit ABIs. (Issue 471 <a href="https://code.google.com/p/android/issues/detail?id=118300">118300</a>)</li> 472 473 <li>Fixed the crash that the HelloComputeNDK sample for RenderScript was producing on 474 Android 4.4 (Android API level 19). For more information, see 475 <a href="http://stackoverflow.com/questions/28057049/targeting-pre-lollipop-devices-using-renderscript-from-ndk-c">this page</a>.</li> 476 477 <li>Fixed {@code libc++ __wrap_iter} for GCC. For more information, see LLVM Issue 478 <a href="http://llvm.org/bugs/show_bug.cgi?id=22355">22355</a>.</li> 479 480 <li>Fixed {@code .asm} support for ABI {@code x86_64}.</li> 481 482 <li>Implemented a workaround for the GCC 4.8 {@code stlport} issue. (Issue 483 <a href="https://android-review.googlesource.com/#/c/127773">127773</a>)</li> 484 485 <li>Removed the trailing directory separator {@code \\} from the project path in Windows. 486 (Issue <a href="https://code.google.com/p/android/issues/detail?id=160584">160584</a>) 487 </li> 488 489 <li>Fixed a {@code no rule to make target} error that occurred when compiling a single 490 {@code .c} file by executing the {@code ndk-build.cmd} command from {@code gradle}. (Issue 491 <a href="https://code.google.com/p/android/issues/detail?id=66937">66937</a>)</li> 492 493 <li>Added the {@code libatomic.a} and {@code libgomp.a} libraries that had been missing from 494 the following host toolchains: 495 <ul> 496 <li>{@code aarch64-linux-android-4.9}</li> 497 <li>{@code mips64el-linux-android-4.9}</li> 498 <li>{@code mipsel-linux-android-4.9}</li> 499 <li>{@code x86_64-4.9}</li> 500 </ul> 501 </ul> 502 </dd> 503 504 <dt>Other changes:</dt> 505 <dd> 506 <ul> 507 <li>Added {@code ld.gold} for {@code aarch64}. The default linker remains {@code ld.bfd}. 508 To explicitly enable {@code ld.gold}, add {@code -fuse-ld=gold} to the 509 {@code LOCAL_LDFLAGS} or {@code APP_LDFLAGS} variable.</li> 510 511 <li>Built the MIPS and MIPS64 toolchains with {@code binutils-2.25}, which provides improved 512 R6 support.</li> 513 514 <li>Made {@code -fstandalone-debug} (full debug info) a default option for Clang.</li> 515 516 <li>Replaced {@code -fstack-protector} with {@code -fstack-protector-strong} for 517 the ARM, AArch64, X86, and X86_64 toolchains for GCC 4.9, Clang 3.5, and 518 Clang 3.6.</li> 519 520 <li>Added the {@code --package} command-line switch to {@code ndk-gdb} to allow the build 521 system to override the package name. (Issue 522 <a href="https://code.google.com/p/android/issues/detail?id=56189">56189</a>)</li> 523 524 <li> Deprecated {@code -mno-ldc1-stc1} for MIPS. This option may not work with the new 525 {@code -fpxx} and {@code -mno-odd-spreg} options, or with the FPXX ABI.</li> 526 527 <li>Added MIPS MSA and R6 detection to {@code cpu-features}.</li> 528 529 </ul> 530 </dd> 531 </dl> 532 533 </div> 534</div> 535 536<div class="toggle-content closed"> 537<a name="10d"></a> 538 <p> 539 <a href="#" onclick="return toggleContent(this)"> <img 540 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 541 >Android NDK, Revision 10d</a> <em>(December 2014)</em> 542 </p> 543 <div class="toggle-content-toggleme"> 544 <dl> 545 <dt>Important changes:</dt> 546 <dd> 547 <ul> 548 <li>Made GCC 4.8 the default for all 32-bit ABIs. Deprecated GCC 4.6, and 549 will remove it next release. To restore previous behavior, either add 550 <code>NDK_TOOLCHAIN_VERSION=4.6</code> to ndk-build, or 551 add <code>--toolchain=arm-linux-androideabi-4.6</code> when executing 552 <code>make-standalone-toolchain.sh</code> on the command line. GCC 4.9 remains the 553 default for 64-bit ABIs.</li> 554 555 <li>Stopped all x86[_64] toolchains from adding <code>-mstackrealign</code> by default. The 556 NDK toolchain assumes a 16-byte stack alignment. The tools and options used by default 557 enforce this rule. A user writing assembly code must make sure to preserve stack 558 alignment, and ensure that other compilers also comply with this rule. 559 (GCC bug <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38496">38496</a>)</li> 560 561 <li>Added Address Sanitizer functionality to Clang 3.5 support to the ARM and x86 ABIs. 562 For more information on this change, see the 563 <a href="https://code.google.com/p/address-sanitizer/wiki/Android">Address 564 Sanitizer</a> project.</li> 565 566 <li>Introduced the requirement, starting from API level 21, to use <code>-fPIE -pie 567 </code> when building. In API levels 16 and higher, ndk-build uses <code>PIE</code> 568 when building. This change has a number of implications, which are discussed in 569 <a href="https://code.google.com/p/android-developer-preview/issues/detail?id=888"> 570 Developer Preview Issue 888</a>. 571 These implications do not apply to shared libraries.</li> 572 </ul> 573 </dd> 574 <dl> 575 576 577 <dt>Important bug fixes:</dt> 578 <dd> 579 <ul> 580 <li>Made more fixes related to 581 <a href="https://gcc.gnu.org/ml/gcc-patches/2014-10/msg00906.html"> 582 A53 Errata #835769</a> in the aarch64-linux-android-4.9 linker. As part of this, GCC 583 passes a new option, <code>--fix-cortex-a53-835769</code>, when 584 <code>-mfix-cortex-a53-835769</code> (enabled by default) is specified. 585 For more information, see this 586 <a href="https://sourceware.org/ml/binutils/2014-10/msg00198.html">binutils message</a> 587 and this 588 <a href="https://sourceware.org/ml/binutils/2014-11/msg00287.html">binutils message</a>. 589 </li> 590 591 <li>Documented a fix to a libc++ <code>sscanf/vsscanf</code> hang that occurred in API level 592 21. The fix itself had been implemented in r10c. 593 (Issue <a href="http://b.android.com/77988">77988</a>)</li> 594 595 <li>Fixed an AutoFDO (<code>-fauto-profile</code>) crash that occurred with GCC 4.9 when 596 <code>-Os</code> was specified. (Issue <a href="http://b.android.com/77571">77571</a>)</li> 597 </ul> 598 </dd> 599 600 601 <dt>Other bug fixes:</dt> 602 <dd> 603 <ul> 604 <li>Made the following header and library fixes:</li> 605 <ul> 606 <li>Added <code>posix_memalign</code> to API level 16. Also, added a prototype in 607 <code>stdlib.h</code> to API levels 16 to 19. 608 (Issue <a href="http://b.android.com/77861">77861</a>)</li> 609 <li>Fixed <code>stdatomic.h</code> so that it includes <code><atomic></code> only for 610 C++11.</li> 611 <li>Modified the following headers for standalone use: <code>sys/user.h</code>, and 612 <code>gl2ext.h</code>, <code>dlext.h</code>, <code>fts.h</code>, <code>sgidefs.h</code> 613 for API level 21.</li> 614 <li>Modified <code>sys/user.h</code> to rename <code>mxcsr_mask</code> as <code>mxcr_mask</code>, 615 and to change the data type for <code>u_ar0</code></li> from <code>unsigned long</code> 616 to </code>struct user_regs_struct*</code>. 617 <li>Changed <code>sysconf()</code> return value type from <code>int</code> to 618 <code>long</code>.</li> 619 </ul> 620 621 <li>Fixed ndk-build's handling of <code>thumb</code> for <code>LOCAL_ARM_MODE</code>: In 622 r10d, ndk-build adds <code>LOCAL_LDFLAGS+=-mthumb</code> by default, unless one of the 623 following conditions applies:</li> 624 <ul> 625 <li>You have set <code>LOCAL_ARM_MODE</code> equal to <code>arm</code>.</li> 626 <li>You are doing a debug build (with settings such as <code>APP_OPTIM=debug</code> and 627 <code>AndroidManifest.xml</code> containing <code>android:debuggable="true"</code>), 628 where ARM mode is the default in order to retain compatibility with earlier toolchains. 629 (Issue <a href="http://b.android.com/74040">74040</a>)</li> 630 </ul> 631 632 <li>Fixed <code>LOCAL_SRC_FILES</code> in ndk-build to use Windows absolute paths. 633 (Issue <a href="http://b.android.com/74333">74333</a>)</li> 634 635 <li>Removed bash-specific code from ndk-gdb. (Issue <a href="http://b.android.com/73338">73338</a>)</li> 636 637 <li>Removed bash-specific code from <code>make-standalone-toolchain.sh</code>. 638 (Issue <a href="http://b.android.com/74145">74145)</a></li> 639 640 <li>Revised documentation concerning a fix for <code>System.loadLibrary()</code> transitive 641 dependencies. (Issue <a href="http://b.android.com/41790">41790</a>)</li> 642 643 <li>Fixed a problem that was preventing 64-bit packages from extracting on Ubuntu 14.04 and 644 OS X 10.10 (Yosemite). (Issue <a href="http://b.android.com/78148">78148</a>)</li> 645 646 <li>Fixed an issue with <code>LOCAL_PCH</code> to improve Clang support. (Issue 647 <a href="http://b.android.com/77575">77575</a>)</li> 648 649 <li>Clarified "requires executable stack" warning from ld.gold. (Issue 650 <a href="http://b.android.com/79115">79115</a>)</li> 651 </ul> 652 </dd> 653 654 </dl> 655 </div> 656</div> 657 658 659 660 661 662 663 664<div class="toggle-content closed"> 665<a name="10c"></a> 666 <p> 667 <a href="#" onclick="return toggleContent(this)"> <img 668 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 669 >Android NDK, Revision 10c</a> <em>(October 2014)</em> 670 </p> 671 <div class="toggle-content-toggleme"> 672 <dl> 673 <dt>Important changes:</dt> 674 <dd> 675 <ul> 676 <li>Made the following changes to download structure:</li> 677 <ul> 678 <li>Each package now contains both the 32- and the 64-bit headers, libraries, and tools for 679 its respective platform.</li> 680 <li>STL libraries with debugging info no longer need be downloaded separately.</li> 681 </ul> 682 <li>Changed everything previously called <code>Android-L</code> to the official release 683 designation: <code>android-21</code>.</li> 684 <li>Updated GCC 4.9 by rebasing to the <code>google</code> branch 685 of the GCC repository. Major differences from the upstream version of GCC 4.9 include:</li> 686 687 <ul> 688 <li>The <code>-O2</code> option now turns on vectorization, without loop peeling but with more 689 aggressive unrolling.</li> 690 <li>Enhancements to FDO and <a href="https://gcc.gnu.org/wiki/LightweightIpo#LIPO_-_Profile_Feedback_Based_Lightweight_IPO"> 691 LIPO</a></li> 692 <p>For more detailed information, see <em>Important bug fixes</em> below.</p> 693 </ul> 694 695 <li>Added Clang 3.5 support to all hosts: <code>NDK_TOOLCHAIN_VERSION=clang</code> 696 now picks Clang 3.5. Note that:</li> 697 <ul> 698 699 <li>ARM and x86 default to using the integrated assembler. If this causes issues, use 700 <code>-fno-integrated-as</code> as a workaround.</code> 701 <li>Clang 3.5 issues more warnings for unused flags, such as the <code>-finline-functions</code> 702 option that GCC supports.</li> 703 <p>When migrating from projects using GCC, you can use 704 <code>-Wno-invalid-command-line-argument</code> and <code>-Wno-unused-command-line-argument</code> 705 to ignore the unused flags until you're able decide on what to do with them longer-term.</p> 706 707 </ul> 708 <li>Made it possible to enter ART debugging mode, when debugging on an Android 5.0 device using 709 ART as its virtual machine, by specifying the <code>art-on</code> option. For more information, 710 see <code>prebuilt/common/gdb/common.setup</code> in the directory containing the NDK.</li> 711 <li>Removed support for Clang 3.3.</li> 712 <li>Deprecated GCC 4.6, and may remove it from future releases.</li> 713 <li>Updated mclinker to 2.8 with Identical Code Folding ("ICF") support. Specify ICF using the 714 <code>--icf</code> option.</li> 715 <li>Broadened <code>arm_neon.h</code> support in x86 and x86_64, attaining coverage of ~93% of 716 NEON intrinsics. For more information about NEON support: 717 <ul> 718 <li>Navigate to the NDK Programmer's Guide (<code>docs/Programmers_Guide/html/</code>), and see 719 Architectures and CPUs > Neon.</li> 720 <li>Examine the updated <code>hello-neon</code> sample in <code>samples/</code>. 721 <li>See Intel's guide to <a href="https://software.intel.com/en-us/blogs/2012/12/12/from-arm-neon-to-intel-mmxsse-automatic-porting-solution-tips-and-tricks"> porting from ARM NEON to Intel SSE.</a></li> 722 </ul> 723 <li>Documented support for <code>_FORTIFY_SOURCE</code> in <code>headers/libs/android-21</code>, 724 which appeared in r10 (when <code>android-21</code> was still called <code>Android-L</code>), 725 but had no documentation.</li> 726 </ul> 727 </dd> 728 <dl> 729 730 731 <dt>Important bug fixes:</dt> 732 <dd> 733 <ul> 734 <li>Fixed an internal compiler error with GCC4.9/aarch64 that was causing the following 735 error message (Issue <a href="http://b.android.com/77564">77564</a>):</li> 736<pre> 737internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1539 738</pre> 739 <li>Fixed incorrect code generation from GCC4.9/arm. (Issue 740 <a href="http://b.android.com/77567">77567<a>)</li> 741 <li>Fixed an internal compiler error with GCC4.9/mips involving inline-assembly. (Issue 742 <a href="http://b.android.com/77568">77568</a>)</li> 743 <li>Fixed incorrect code that GCC4.9/arm was generating for <code>x = (cond) ? y : x</code>. 744 (Issue <a href="http://b.android.com/77569">77569</a>)</li> 745 <li>Fixed GCC4.9/aarch64 and Clang3.5/aarch64 to work around the 746 <a href="http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20141006/116322.html"> 747 Cortex-A53 erratum (835769)</a> by default. Disable the workaround by specifying 748 <code>-mno-fix-cortex-a53-835769</code>.</li> 749 </ul> 750 </dd> 751 752 753 <dt>Other bug fixes:</dt> 754 <dd> 755 <ul> 756 <li>Made the following header and library fixes to <code>android-21</code>: 757 <ul> 758 759 <li>Added more TV keycodes: <code>android/keycodes.h</code></li> 760 <li>Added more constants and six new sensor functions to <code>android/sensor.h</code>: 761 <code>ASensorManager_getDefaultSensorEx</code>, <code>ASensor_getFifoMaxEventCount</code>, 762 <code>ASensor_getFifoReservedEventCount</code>, <code>ASensor_getStringType</code>, 763 <code>ASensor_getReportingMode</code>, and <code>ASensor_isWakeUpSensor</code>.</li> 764 <li>Fixed <code>stdatomic.h</code> to improve compatibility with GCC 4.6, and provide support 765 for the <code><atomic></code> header.</li> 766 <li>Added <code>sys/ucontext.h</code> and <code>sys/user.h</code> to all API levels. The 767 <code>signal.h</code> header now includes <code><sys/ucontext.h></code>. You may 768 remove any existing definition of <code>struct ucontext</code>.</li> 769 <li>Added <code>posix_memalign</code> to API levels 17, 18, and 19.</li> 770 <li>Added the following functions to all architectures: 771 <code>android_set_abort_message</code>, <code>posix_fadvise</code>, 772 <code>posix_fadvise64</code>, <code>pthread_gettid_np</code>.</li> 773 <li>Added the required permissions to the <code>native-media/AndroidManifest.xml</code> 774 sample. 775 (Issue <a href="https://android-review.googlesource.com/#/c/106640/">106640</a>)</li> 776 <li>Added <code>clock_nanosleep</code> and <code>clock_settime</code> to API level 21. (Issue 777 <a href="http://b.android.com/77372">77372</a>) 778 <li>Removed the following symbols from all architectures: 779 <code>get_malloc_leak_info</code>, <code>free_malloc_leak_info</code>, 780 <code>__srget</code>, <code>__swbuf</code>, <code>__srefill</code>, <code>__swsetup</code>, 781 <code>__sdidinit</code>, <code>__sflags</code>, <code>__sfp</code>, 782 <code>__sinit</code>, <code>__smakebuf</code>, <code>__sflush</code>, <code>__sread</code>, 783 <code>__swrite</code>, <code>__sseek</code>, <code>__sclose</code>, 784 <code>_fwalk</code>, <code>__sglue</code>, <code>__get_thread</code>, <code>__wait4</code>, 785 <code>__futex_wake</code>, <code>__open</code>, <code>__get_tls</code>, 786 <code>__getdents64</code>, and <code>dlmalloc</code>.</li> 787 <li>Removed the following functions from the 64-bit architectures: <code>basename_r</code>, 788 <code>dirname_r</code>, <code>__isthreaded</code>, <code>_flush_cache</code> (mips64).</li> 789 <li>Removed the following function from the 32-bit architectures: 790 <code>__signalfd4</code>.</li> 791 <li>Changed the type of the third argument from <code>size_t</code> to <code>int</code> in 792 the following functions: <code>strtoll_l</code>, <code>strtoull_l</code>, 793 <code>wcstoll_l</code>, and <code>wcstoull_l</code>.</li> 794 <li>Restored the following functions to the 64-bit architecture: <code>arc4random</code>, 795 <code>arc4random_buf</code>, and <code>arc4random_uniform</code>.</li> 796 <li>Moved <code>cxa_*</code> and the <code>new</code> and <code>delete</code> operators back 797 to <code>libstdc++.so</code>. This change restores r9d behavior; previous versions of r10 798 contained dummy files.</li> 799 800 </ul> 801 <li>Restored MXU support in GCC 4.8 and 4.9 for mips. This support had been absent from 802 r10 and r10b because those versions of GCC had been compiled with binutils-2.24, which did 803 not support MXU. It now does.</li> 804 <li>Fixed <code>--toolchain=</code> in <code>make-standalone-toolchain.sh</code> so that it 805 now properly supports use of a suffix specifying a version of Clang.</li> 806 <li>Fixed the libc++/armeabi <code>strtod()</code> functions.</li> 807 <li>Made fixes to NDK documentation in <code>docs/</code>.</li> 808 </ul> 809 </dd> 810 811 <dt>Other changes:</dt> 812 <dd> 813 <ul> 814 <li>Enhanced <code>cpu-features</code> to detect ARMv8 support for the following 815 instruction sets: AES, CRC32, SHA2, SHA1, and 64-bit PMULL/PMULL2. (Issue 816 <a href="https://android-review.googlesource.com/#/c/106360/">106360</a>)</li> 817 818 <li>Modified ndk-build to use <code>*-gcc-ar</code>, which is available in GCC 4.8, GCC 4.9, and 819 Clang. Clang specifies it, instead of <code>*-ar</code>. This setting brings improved LTO 820 support.</li> 821 822 <li>Removed the <code>include-fixed/linux/a.out.h</code> and 823 <code>include-fixed/linux/compiler.h</code> headers from the GCC compiler. 824 (Issue <a href ="http://b.android.com/73728">73728</a>)</li> 825 826 <li>Fixed an issue related to <code>-flto</code> with GCC 4.8 on Mac OS X. The error message 827 read:</li> 828 829 <pre> 830.../ld: error: .../libexec/gcc/arm-linux-androideabi/4.9/liblto_plugin.so 831Symbol not found: _environ 832</pre> 833 834 <li>Fixed a typo in <code>build-binary.mk.</code> (Issue 835 <a href="http://b.android.com/76992">76992</a>)</li> 836 </ul> 837 </dd> 838 839 <dt>Important known issues:</dt> 840 <dd> 841 <ul> 842 <li>Specifying -Os (<code>-fauto-profile</code>) in GCC4.9 may cause crashing. 843 (Issue <a href="http://b.android.com/77571">77571</a>)</li> 844 </ul> 845 </dd> 846 847 </dl> 848 </div> 849</div> 850 851<div class="toggle-content closed"> 852<a name="10b"></a> 853 <p> 854 <a href="#" onclick="return toggleContent(this)"> <img 855 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 856 >Android NDK, Revision 10b</a> <em>(September 2014)</em> 857 </p> 858 <div class="toggle-content-toggleme"> 859 <dl> 860 861 <dt>Important notes:</dt> 862 <dd> 863 <ul> 864 <li>Because of the 512MB size restriction on downloadable packages, the following 32-bit items are not in the 32-bit NDK download packages. Instead, they reside in the 64-bit ones:</li> 865 <ul> 866 <li>Android-L headers</li> 867 <li>GCC 4.9</li> 868 </ul> 869 <li>Currently, the only Renderscript support provided by the NDK is for 32-bit Renderscript with Android 4.4 (API level 19). You cannot build HelloComputeNDK (the only Renderscript sample) with any other combination of Renderscript (32- or 64-bit) and Android version.</li> 870 <li>To compile native-codec, you must use a 64-bit NDK package, which is where all the Android-L headers are located. </li> 871 </ul> 872 </dd> 873 874 875 <dt>Important bug fixes:</dt> 876 <dd> 877 <ul> 878 <li>Fixed gdb 7.6 in GCC 4.8/4.9. (Issues <a href="http://b.android.com/74112">74112</a> and <a href="http://b.android.com/74371">74371</a>.)</li> 879 <li>Fixed GCC 4.8/4.9 for x86, so that they no longer enable <code>-msse4.2</code> and <code>-mpopcnt</code> by default. (Issue <a href="http://b.android.com/73843">73843</a>.)</li> 880 </ul> 881 </dd> 882 883 <dt>Other bug fixes:</dt> 884 <dd> 885 <ul> 886 <li>Removed <code>stdio.h</code> from the <code>include-fixed/</code> directories of all versions of GCC. (Issue <a href="http://b.android.com/73728">73728</a>.)</li> 887 <li>Removed duplicate header files from the Windows packages in the <code>platforms/android-L/arch-*/usr/include/linux/netfilter*/</code> directories. (Issue <a href="https://code.google.com/p/android/issues/detail?id=73704">73704</a>.)</li> 888 <li>Fixed a problem that prevented Clang from building HelloComputeNDK.</li> 889 <li>Fixed atexit. (Issue <a href="http://b.android.com/66595">66595</a>.)</li> 890 <li>Made various fixes to the docs in <code>docs/</code> and <code>sources/third_party/googletest/README.NDK</code>. (Issue <a href="http://b.android.com/74069">74069</a>.)</li> 891 <li>Made the following fixes to the Android-L headers:</li> 892 <ol> 893 <li>Added the following functions to <code>ctype.h</code> and <code>wchar.h</code>: <code>dn_expand()</code>, <code>grantpt()</code>, <code> inet_nsap_addr()</code>, <code>inet_nsap_ntoa()</code>, <code>insque()</code>, <code>nsdispatch()</code>, <code>posix_openpt()</code>, <code>__pthread_cleanup_pop()</code>, <code>__pthread_cleanup_push()</code>, <code>remque()</code>, <code>setfsgid()</code>, <code>setfsuid()</code>, <code>splice()</code>, <code>tee()</code>, <code>twalk()</code> (Issue <a href = "http://b.android.com/73719">73719</a>), and 42 <code>*_l()</code> functions.</li> 894 895 <li>Renamed <code>cmsg_nxthdr</code> to <code>__cmsg_nxthdr</code>.</li> 896 897 <li>Removed <code>__libc_malloc_dispatch</code>.</li> 898 899 <li>Changed the <code>ptrace()</code> prototype to <code>long ptrace(int, ...);</code>.</li> 900 901 <li>Removed <code>sha1.h</code>.</li> 902 903 <li>Extended <code>android_dlextinfo</code> in <code>android/dlext.h</code>.</li> 904 905 <li>Annotated <code>__NDK_FPABI__</code> for functions receiving or returning float- or double-type values in <code>stdlib.h</code>, <code>time.h</code>, <code>wchar.h</code>, and <code>complex.h</code>.</li> 906 </ol> 907 </ul> 908 </dd> 909 910 <dt>Other changes:</dt> 911 <dd> 912 <ul> 913 <li>Updated <code>mipsel-linux-android-4.9</code> and <code>mips64el-linux-android-4.9</code>, implementing a new multilib directory layout, and providing support for gdb-7.7</li> 914 <li>Enhanced <code>cpu-features</code> to detect more arm64 features. (Change list <a href="https://android-review.googlesource.com/#/c/100339">100339</a>.)</li> 915 </dd> 916 </ul> 917 918 </dl> 919 </div> 920</div> 921 922<div class="toggle-content closed"> 923<a name="10"></a> 924 <p> 925 <a href="#" onclick="return toggleContent(this)"> <img 926 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 927 >Android NDK, Revision 10</a> <em>(July 2014)</em> 928 </p> 929 <div class="toggle-content-toggleme"> 930 <dl> 931 <dt>Important changes:</dt> 932 <dd> 933 <ul> 934 <li>Added 3 new ABIs, all 64-bit: arm64-v8a, x86_64, mips64.</li> Note that: 935 <ul> 936 <li>GCC 4.9 is the default compiler for 64-bit ABIs. Clang is currently version 3.4. 937<code>NDK_TOOLCHAIN_VERSION=clang</code> 938 may not work for arm64-v8a and mips64.</li> 939 <li>Android-L is the first level with 64-bit support. Note that this API 940level is a temporary one, and only for L-preview. An actual API level number will replace it at 941L-release.</li> 942 <li>This release includes now includes <code>all32</code> and <code>all64</code> 943settings for <code>APP_ABI</code>. 944 <ul> 945 <li><code>APP_ABI=all32</code> is equivalent to 946<code>APP_ABI=armeabi,armeabi-v7a,x86,mips</code>.</li> 947 <li><code>APP_ABI=all64</code> is equivalent to 948<code>APP_ABI=arm64-v8a,x86_64,mips64</code>.</li> 949 <li><code>APP_ABI=all</code> selects all ABIs.</li> 950 </ul> 951 <li>The new GNU libstdc++ in Android-L contains all <code><tr1/cmath></code> 952Before defining your own math function, check <code>_GLIBCXX_USE_C99_MATH_TR1</code> to see a 953function with that name already exists, in order to avoid "multiple definition" errors from the 954linker.</li> 955 <li>The cpu-features library has been updated for the ARMv8 kernel. The existing 956cpu-features library may fail to detect the presence of NEON on the ARMv8 platform. Recompile your 957code with the new version.</li> 958 </ul> 959 <li>Added a new <code>platforms/android-L/</code> API directory. It includes:</li> 960 <ul> 961 <li>Updated Bionic headers, which had not changed from Android API levels 3 962(Cupcake) to 19 (KitKat). This new version, for level L, is to be synchronized with AOSP.</li> 963 <li>New media APIs and a native-codec sample.</li> 964 <li>An updated <code>Android.h</code> header for SLES/OpenSLES, enabling support for 965single-precision, floating-point audio format in AudioPlayer.</li> 966 <li>GLES 3.1 and AEP extensions to <code>libGLESv3.so.</code></li> 967 <li>GLES2 and GLES3 headers updated to the latest official Khronos versions.</li> 968 </ul> 969 <li>Added GCC 4.9 compilers to the 32-/64-bit ABIs. GCC 4.9 is the default (only) compiler 970for 64-bit ABIs, as previously mentioned. For 32-bit ABIs, you must explcitly enable GCC 4.9, as 971GCC 4.6 is still the default.</li> 972 <ul> 973 <li>For ndk-build, enable 32-bit, GCC 4.9 building either by adding 974<code>NDK_TOOLCHAIN_VERSION=4.9</code> to <code>Application.mk</code>, or exporting it as an 975environment variable from the command line.</li> 976 <li>For a standalone toolchain, use the <code>--toolchain=</code> option in the 977<code>make-standalone-toolchain.sh</code> script. For example: <code>--toolchain=arm-linux-androideabi-4.9.</code></li> 978 </ul> 979 <li>Upgraded GDB to version 7.6 in GCC 4.8/4.9 and x86*. Since GDB is still at version GDB-7.3.x in 980GCC 4.6 (the default for ARM and MIPS), you must set 981<code>NDK_TOOLCHAIN_VERSION=4.8</code> or <code>4.9</code> to enable ndk-gdb to select GDB 7.6.</li> 982 <li>Added the <code>-mssse3</code> build option to provide SSSE3 support, and made it the default for ABI x86 983(upgrading from SSE3). The image released by Google does not contain SSSE3 instructions.</li> 984 <li>Updated GCC 4.8 to 4.8.3.</li> 985 <li>Improved ARM libc++ EH support by switching from gabi++ to libc++abi. For details, see the "C++ Support" section of the documentation. 986 Note that:</li> 987 <ul> 988 <li>All tests except for locale now pass for Clang 3.4 and GCC 4.8. For more 989information, see the "C++ Support" section of the documentation.</li> 990 <li>The libc++ libraries for X86 and MIPS libc++ still use gabi++.</li> 991 <li>GCC 4.7 and later can now use <atomic>.</li> 992 <li>You must add <code>-fno-strict-aliasing</code> if you use <code> <list></code>, because <code>__list_imp::_end</code>_ breaks 993 TBAA rules. (Issue <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61571">61571</a>.)</li> 994 <li>As of GCC 4.6, LIBCXX_FORCE_REBUILD:=true no longer rebuilds libc++. Rebuilding it 995requires the use of a different compiler. Note that Clang 3.3 is untested.</li> 996 </ul> 997 <li>mclinker is now version 2.7, and has aarch64 Linux support.</li> 998 <li>Added precompiled header support for headers specified by <code>LOCAL_PCH</code>. (Issue <a href="http://b.android.com/25412">25412</a>).</li> 999 </dd> 1000 <dl> 1001 1002 1003 <dt>Important bug fixes:</dt> 1004 <dd> 1005 <ul> 1006 <li>Fixed libc++ so that it now compiles <code>std::feof</code>, etc. (Issue <a 1007href="http://b.android.com/66668">66668</a>).</li> 1008 <li>Fixed a Clang 3.3/3.4 atomic library call that caused crashes in some of the libc++ 1009tests for ABI armeabi.</li> 1010 <li>Fixed Clang 3.4 crashes that were occurring on reading precompiled headers. (Issue <a 1011href="http://b.android.com/66657">66657</a>).</li> 1012 <li>Fixed the Clang 3.3/3.4 <code>-O3</code> assert on:</li> 1013 <code>llvm-3.2/llvm/include/llvm/MDBuilder.h:64: llvm::MDNode* 1014llvm::MDBuilder::createBranchWeights(llvm::ArrayRef<unsigned int>): Assertion Weights.size() >= 2 1015&& "Need at least two branch weights!"</code> (Issue <a href="http://b.android.com/57381">57381</a>). 1016 <li>Fixed the following Clang 3.3/3.4 crash:</li> 1017 <code>Assertion failed: (!Fn && "cast failed but able to resolve overload expression!!"), function CheckCXXCStyleCast, file 1018Volumes/data/ndk-toolchain/src/llvm-3.3/llvm/tools/clang/lib/Sema/SemaCast.cpp, line 2018</code>. 1019(Issue <a href="http://b.android.com/66950">66950</a>). 1020 </ul> 1021 </dd> 1022 1023 <dt>Other bug fixes:</dt> 1024 <dd> 1025 <ul> 1026 <li>Fixed headers:</li> 1027 <ul> 1028 <li>Fixed 32-bit <code>ssize_t</code> to be <code>int</code> instead of <code>long 1029int</code>.</li> 1030 <li>Fixed <code>WCHAR_MIN</code> and <code>WCHAR_MAX</code> so that they they take 1031appropriate signs according to the architecture they're running on:</li> 1032 <ul> 1033 <li>X86/MIPS: signed. 1034 <li>ARM: unsigned. 1035 <li>To force X86/MIPS to default to unsigned, use 1036<code>-D__WCHAR_UNSIGNED__</code>.</li> 1037 <li>To force <code>wchar_t</code> to be 16 bits, use <code>-fshort-wchar</code>.</li> 1038 </ul> 1039 <li>Removed non-existent symbols from 32-bit <code>libc.so</code>, and added <code>pread64</code>, 1040<code>pwrite64</code>, <code>ftruncate64</code> for 1041Android API level 12 and higher. (Issue <a href="http://b.android.com/69319">69319</a>). For more 1042information, see the commit message accompanying AOSP change list 1043 <a href="https://android-review.googlesource.com/#/c/94137">94137</a>.</li> 1044 </ul> 1045 <li>Fixed GCC warning about redefinition of <code>putchar</code>. Warning message reads:</li> 1046 <code>include/stdio.h:236:5: warning: conflicts with previous declaration here 1047[-Wattributes] int putchar(int);</code> (Change list <a 1048href="https://android-review.googlesource.com/#/c/91185">91185</a>). 1049 <li>Fixed <code>make-standalone-toolchain.sh --stl=libc++</code> so that it:</li> 1050 <ul> 1051 <li>Copies <code>cxxabi.h</code>. (Issue <a 1052href="http://b.android.com/68001">68001</a>).</li> 1053 <li>Runs in directories other than the NDK install directory. (Issues <a 1054href="http://b.android.com/67690">67690</a> and <a href="http://b.android.com/68647">68647</a>).</li> 1055 </ul> 1056 <li>Fixed GCC/Windows to quote arguments only when necessary for spawning processes in 1057external programs. This change decreases the likelihood of exceeding the 32K length limit.</li> 1058 <li>Fixed an issue that made it impossible to adjust the <code>APP_PLATFORM</code> 1059environment variable.</li> 1060 <li>Fixed the implementation of <code>IsSystemLibrary()</code> in crazy_linker so that it 1061uses <code>strrchr()</code> 1062 instead of <code>strchr()</code> to find the library path's true basename.</li> 1063 <li>Fixed native-audio's inability to build in debug mode.</li> 1064 <li>Fixed gdb's inability to print extreme floating-point numbers. (Issue <a 1065href="http://b.android.com/69203">69203</a>).</li> 1066 <li>Fixed Clang 3.4 inability to compile with <code>-Wl,-shared</code> (as opposed to 1067<code>-shared</code>, which 1068 had no compilation issues). The problem was that Clang added <code>-pie</code> for Android 1069targets if neither <code>-shared</code> nor <code>-static</code> existed. This behavior, which was 1070incorrect, caused the linker to complain that <code>-shared</code> and <code>-pie</code> could not 1071co-exist.</li> 1072 1073 </ul> 1074 </dd> 1075 1076 1077 <dt>Other changes:</dt> 1078 <dd> 1079 <ul> 1080 <li>Added <code>arm_neon.h</code> to the x86 toolchain so that it now emulates ~47% of 1081Neon. There is currently no support for 64-bit types. For more information, see the section on ARM 1082Neon intrinsics support in the x86 documentation.</li> 1083 <li>Ported ARM/GOT_PREL optimization (present in GCC 4.6 built from the GCC google branch) to 1084ARM GCC 4.8/4.9. This optimization sometimes reduces instruction count when accessing global 1085variables. As an example, see the build.sh script in 1086<code>$NDK/tests/build/b14811006-GOT_PREL-optimization/</code>.</li> 1087 <li>Added ARM version for STL gabi++, stlport, and libc++. They now have both it and Thumb 1088mode.</li> 1089 <li>It is now possible to call the make-standalone-toolchain.sh script with 1090<code>--toolchain=x86_64-linux-android-4.9</code>, which is equivalent to 1091<code>--toolchain=x86_64-4.9</code>.</li> 1092 </dd> 1093 </ul> 1094 </dl> 1095 </div> 1096</div> 1097 1098 1099<div class="toggle-content closed"> 1100<a name="9d"></a> 1101 <p> 1102 <a href="#" onclick="return toggleContent(this)"> <img 1103 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 1104 >Android NDK, Revision 9d</a> <em>(March 2014)</em> 1105 </p> 1106 <div class="toggle-content-toggleme"> 1107 <dl> 1108 <dt>Important changes:</dt> 1109 <dd> 1110 <ul> 1111 <li>Added support for the Clang 3.4 compiler. The 1112<code>NDK_TOOLCHAIN_VERSION=clang</code> option now picks Clang 3.4. GCC 4.6 is 1113still the default compiler.</li> 1114 <li>Added <code>APP_ABI=armeabi-v7a-hard</code>, with 1115additional multilib option <code>-mfloat-abi=hard</code>. These options are for 1116use with ARM GCC 4.6/4.8 and Clang 3.3/3.4 (which use 4.8's assembler, linker, 1117and libs). When using these options, note the following changes:</li> 1118 <ul> 1119 <li> When executing the <code>ndk-build</code> script, add the 1120following options for armeabi-v7a target: 1121<pre>TARGET_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1 1122TARGET_LDFLAGS += -Wl,--no-warn-mismatch -lm_hard</pre> 1123The built library is copied to <code>libs/armeabi-v7a</code>. For make to 1124behave as expected, you cannot specify both <code>armeabi-v7a</code> and 1125<code>armeabi-v7a-hard</code> as make targets (i.e., on the APP_ABI= line). 1126Doing so causes one of them to be ignored. Note that <code>APP_ABI=all</code> 1127is still equivalent to 1128<code>armeabi armeabi-v7a x86 mips</code>.</li> 1129 <li>The <code>make-standalone-toolchain.sh</code> script copies 1130additional libaries under <code>/hard</code> directories. 1131 Add the above <code>CFLAGS</code> and <code>LFLAGS</code> to your 1132makefile to enable GCC or Clang to link with 1133 libraries in <code>/hard</code>.</li> 1134 </ul> 1135 <li>Added the yasm assembler, as well as <code>LOCAL_ASMFLAGS</code> 1136and <code>EXPORT_ASMFLAGS</code> flags for x86 1137targets. The <code>ndk-build</code> script uses 1138<code>prebuilts/*/bin/yasm*</code> to build <code>LOCAL_SRC_FILES</code> that 1139have the <code>.asm</code> extension.</li> 1140 <li>Updated MClinker to 2.6.0, which adds <code>-gc-sections</code> 1141support.</li> 1142 <li>Added experimental libc++ support (upstream r201101). Use this new 1143feature by following these steps: 1144 <ul> 1145 <li>Add <code>APP_STL := c++_static</code> or <code>APP_STL := 1146c++_shared</code> in <code>Application.mk</code>. 1147 You may rebuild from source via <code>LIBCXX_FORCE_REBUILD := 1148true</code></li> 1149 <li>Execute <code>make-standalone-toolchain.sh --stl=libc++</code> 1150to create a standalone toolchain with libc++ headers/lib.</li> 1151 </ul> 1152 For more information, see 1153<code>CPLUSPLUS-SUPPORT.html</code>. 1154(Issue <a href="http://b.android.com/36496">36496</a>)</li> 1155 </ul> 1156 </dd> 1157 <dl> 1158 <dt>Important bug fixes:</dt> 1159 <dd> 1160 <ul> 1161 <li>Fixed an uncaught throw from an unexpected 1162exception handler for GCC 4.6/4.8 ARM EABI. (GCC Issue <a 1163href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59392">59392</a>)</li> 1164 <li>Fixed GCC 4.8 so that it now correctly resolves partial 1165specialization of a template with 1166 a dependent, non-type template argument. (GCC Issue <a 1167href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59052">59052</a>)</li> 1168 <li>Added more modules to prebuilt python (Issue <a 1169href="http://b.android.com/59902">59902</a>): 1170 <ul> 1171 <li>Mac OS X: <code>zlib</code>, <code>bz2</code>, 1172<code>_curses</code>, <code>_curses_panel</code>, <code>_hashlib</code>, 1173<code>_ssl</code></li> 1174 <li>Linux: <code>zlib</code>, <code>nis</code>, 1175<code>crypt</code>, <code>_curses</code>, and <code>_curses_panel</code></li> 1176 </ul> 1177 <li>Fixed the x86 and MIPS gdbserver 1178<code>event_getmsg_helper</code>.</li> 1179 <li>Fixed numerous issues in the RenderScript NDK toolchain, including 1180issues with compatibility across older devices and C++ reflection.</li> 1181<br> 1182 </ul> 1183 </dd> 1184 1185 <dt>Other bug fixes:</dt> 1186 <dd> 1187 <ul> 1188 <li>Header fixes: 1189 <ul> 1190 <li>Fixed a missing <code>#include <sys/types.h></code> in 1191<code>android/asset_manager.h</code> for Android API level 13 and higher. 1192 (Issue <a href="http://b.android.com/64988">64988</a>)</li> 1193 <li>Fixed a missing <code>#include <stdint.h></code> in 1194<code>android/rect_manager.h</code> for Android API level 14 and higher.</li> 1195 <li>Added <code>JNICALL</code> to <code>JNI_OnLoad</code> and 1196<code>JNI_OnUnload</code> in <code>jni.h</code>. Note that <code>JNICALL</code> 1197 is defined as <code>__NDK_FPABI__</code> For more information, see 1198<code>sys/cdefs.h</code>.</li> 1199 <li>Updated the following headers so that they can be included 1200without the need to 1201manually include their dependencies (Issue <a 1202href="http://b.android.com/64679">64679</a>):</li> 1203<pre> 1204android/tts.h 1205EGL/eglext.h 1206fts.h 1207GLES/glext.h 1208GLES2/gl2ext.h 1209OMXAL/OpenMAXSL_Android.h 1210SLES/OpenSLES_Android.h 1211sys/prctl.h 1212sys/utime.h 1213</pre> 1214 <li>Added <code>sys/cachectl.h</code> for all architectures. MIPS 1215developers can now include this header instead of writing <code>#ifdef 1216__mips__</code>.</li> 1217 <li></code>Fixed <code>platforms/android-18/include/android/input.h 1218</code> by adding <code>__NDK_FPABI__</code> to functions taking or returning 1219float or double values.</li> 1220 <li>Fixed MIPS <code>struct stat</code>, which was incorrectly set 1221to its 64-bit counterpart for Android API level 12 and later. This wrong 1222setting was a 1223regression introduced in release r9c.</li> 1224 <li>Defined <code>__PTHREAD_MUTEX_INIT_VALUE</code>, 1225<code>__PTHREAD_RECURSIVE_MUTEX_INIT_VALUE</code>, 1226 and <code>__PTHREAD_ERRORCHECK_MUTEX_INIT_VALUE</code> for Android API 1227level 9 and lower.</li> 1228 <li>Added <code>scalbln</code>, <code>scalblnf</code>, and 1229<code>scalblnl</code> to x86 <code>libm.so</code> for APIs 18 and later.</li> 1230 <li>Fixed a typo in 1231<code>sources/android/support/include/iconv.h</code>. 1232 (Issue <a href="http://b.android.com/63806">63806</a>)</li> 1233 1234 </ul> 1235 </li> 1236 <li>Fixed gabi++ <code>std::unexpected()</code> to call 1237<code>std::terminate()</code> so that 1238 a user-defined <code>std::terminate()</code> handler has a chance to run. 1239</li> 1240 <li>Fixed gabi++ to catch <code>std::nullptr</code>.</li> 1241 <li>Fixed samples Teapot and MoreTeapots: 1242 <ul> 1243 <li>Solved a problem with Tegra 2 and 3 chips by changing specular 1244variables to use medium precision. Values for specular power can now be less 1245than 1.0. </li> 1246 <li>Changed the samples so that pressing the volume button restores 1247immersive mode and invalidates 1248<code>SYSTEM_UI_FLAG_IMMERSIVE_STICKY</code>. Screen rotation does not 1249trigger <code>onSystemUiVisibilityChange</code>, and so does not restore 1250immersive mode.</li> 1251 </ul> 1252 </li> 1253 <li>Fixed the <code>ndk-build</code> script to add 1254<code>-rpath-link=$SYSROOT/usr/lib</code> and 1255<code>-rpath-link=$TARGET_OUT</code> in order to use <code>ld.bfd</code> to 1256link executables. (Issue <a href="http://b.android.com/64266">64266</a>)</li> 1257 <li>Removed <code>-Bsymbolic</code> from all STL builds.</li> 1258 <li>Fixed <code>ndk-gdb-py.cmd</code> by setting <code>SHELL</code> as 1259an environment variable 1260instead of passing it to 1261 <code>python.exe</code>, which ignores the setting. 1262 (Issue <a href="http://b.android.com/63054">63054</a>)</li> 1263 <li>Fixed the <code>make-standalone-toolchain.sh</code> script so that 1264the <code>--stl=stlport</code> option copies the gabi++ headers instead of 1265symlinking them; the <code>cmd.exe</code> and MinGW shells do not understand 1266symlinks created by cygwin.</li> 1267 </ul> 1268 </dd> 1269 1270 <dt>Other changes:</dt> 1271 <dd> 1272 <ul> 1273 <li>Applied execution permissions to all <code>*cmd</code> scripts 1274previously intended for use only in the <code>cmd.exe</code> shell, in case 1275developers prefer to use <code>ndk-build.cmd</code> in cygwin instead of the 1276recommended <code>ndk-build</code> script.</li> 1277 <li>Improved the speed of the <code>make-standalone-toolchain.sh</code> 1278script by moving instead of copying if the specified destination directory does 1279not exist.</li> 1280 </dd> 1281 </ul> 1282 </dl> 1283 </div> 1284</div> 1285 1286<div class="toggle-content closed"> 1287<a name="9c"></a> 1288 <p> 1289 <a href="#" onclick="return toggleContent(this)"> <img 1290 src="/assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 1291 >Android NDK, Revision 9c</a> <em>(December 2013)</em> 1292 </p> 1293 <div class="toggle-content-toggleme"> 1294<p>This is a bug-fix-only release.</p> 1295 <dl> 1296 <dt>Important bug fixes:</dt> 1297 <dd> 1298 <ul> 1299 <li>Fixed a problem with GCC 4.8 ARM, in which the stack pointer is 1300restored too early. This problem prevented the frame pointer from reliably 1301accessing a variable in the stack frame. (GCC Issue <a 1302href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854">58854</a>)</li> 1303<li>Fixed a problem with GCC 4.8 libstdc++, in which a bug in 1304std::nth_element was causing generation of code that produced a random 1305segfault. (Issue <a 1306href="https://code.google.com/p/android/issues/detail?id=62910">62910</a>)</li> 1307 <li>Fixed GCC 4.8 ICE in cc1/cc1plus with 1308<code>-fuse-ld=mcld</code>, so that the following error no longer occurs: 1309<pre>cc1: internal compiler error: in common_handle_option, at 1310opts.c:1774</pre></li> 1311 <li>Fixed <code>-mhard-float</code> support for 1312<code>__builtin</code> math functions. For ongoing information on fixes for 1313<code>-mhard-float</code> with STL, please follow Issue <a 1314href="http://b.android.com/61784">61784</a>.</li> 1315 </ul> 1316 </dd> 1317 1318 <dt>Other bug fixes:</dt> 1319 <dd> 1320 <ul> 1321 <li>Header fixes: 1322 <ul> 1323 <li>Changed prototype of <code>poll</code> to <code>poll(struct 1324pollfd *, nfds_t, int);</code> in <code>poll.h</code>.</li> 1325 <li>Added <code>utimensat</code> to <code>libc.so</code> for Android 1326API levels 12 and 19. These libraries are now included for all Android API 1327levels 12 through 19.</li> 1328<li>Introduced <code>futimens</code> into <code>libc.so</code>, for Android API 1329level 19.</li> 1330<li>Added missing <code>clock_settime()</code> and 1331<code>clock_nanosleep()</code> to <code>time.h</code> for Android API level 8 1332and higher.</li> 1333<li>Added <code>CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, 1334CLOCK_MONOTONIC_COARSE, CLOCK_BOOTTIME, CLOCK_REALTIME_ALARM,</code> and 1335<code>CLOCK_BOOTTIME_ALARM</code> in <code>time.h.</code></li> 1336<li>Removed obsolete <code>CLOCK_REALTIME_HR</code> and 1337<code>CLOCK_MONOTONIC_HR.</code></li> 1338 </ul> 1339 </li> 1340 <li>In samples Teapot, MoreTeapots, and 1341<code>source/android/ndk_helper</code>: 1342 <ul> 1343<li>Changed them so that they now use a hard-float abi for armeabi-v7a.</li> 1344<li>Updated them to use immersive mode on Android API level 19 and 1345higher.</li> 1346<li>Fixed a problem with <code>Check_ReleaseStringUTFChars</code> in 1347<code>/system/lib/libdvm.so</code> that was causing crashes on x86 devices.</li> 1348 </ul> 1349 </li> 1350<li>Fixed <code>ndk-build</code> fails that happen in cygwin when the NDK 1351package is 1352referenced via symlink.</li> 1353<li>Fixed <code>ndk-build.cmd</code> fails that happen in windows 1354<code>cmd.exe</code> when 1355<code>LOCAL_SRC_FILES</code> contains absolute paths. (Issue <a 1356href="https://android-review.googlesource.com/#/c/69992">69992</a>)</li> 1357<li>Fixed the <code>ndk-stack</code> script to proceed even when it can't parse 1358a frame due to inability to find a routine, filename, or line number. In any of 1359these cases, it prints <code>??</code>.</li> 1360<li>Fixed the <code>ndk-stack</code> stack for windows-x64_64 targets so that 1361it no longer erroneously matches a frame line with a line in the 1362<code>stack:</code> section that doesn't contain <code>pc</code>, 1363<code>eip</code>, or <code>ip</code>. For example: 1364<pre>I/DEBUG ( 1151): #00 5f09db68 401f01c4 1365/system/lib/libc.so</pre></li> 1366<li>Fixed gabi++ so that it: 1367 <ul> 1368 <li>Does not use malloc() to allocate C++ thread-local 1369 objects.</li> 1370 <li>Avoids deadlocks in gabi++ in cases where libc.debug.malloc is 1371non-zero in userdebug/eng Android platform builds.</li> 1372 </ul> 1373 </ul> 1374 </dd> 1375 1376 <dt>Other changes:</dt> 1377 <dd> 1378 <ul> 1379 <li>Added <code>LOCAL_EXPORT_LDFLAGS</code>.</li> 1380<li>Introduced the <code>NDK_PROJECT_PATH=null</code> setting for use in an 1381integrated build system where options are explicitly passed to 1382<code>ndk-build</code>. With this setting, <code>ndk-build</code> makes no 1383attempt to look for <code>NDK_PROJECT_PATH.</code> This setting also prevents 1384variables from deriving default settings from NDK_PROJECT_PATH. As a result, 1385the following variables must now be explicitly specified (with their default 1386values if such exist): <code>NDK_OUT, NDK_LIBS_OUT, APP_BUILD_SCRIPT, 1387NDK_DEBUG</code> (optional, default to 0), and other <code>APP_*</code>'s 1388contained in <code>Application.mk</code>.</li> 1389<li><code>APP_ABI</code> can now be enumerated in a comma-delimited list. For 1390example: 1391<pre>APP_ABI := "armeabi,armeabi-v7a"</pre></li> 1392<li>Provided the ability to rebuild all of STL with debugging info in an 1393optional, separate package called 1394<code>android-ndk-r9c-cxx-stl-libs-with-debugging-info.zip</code>, using the 1395<code>-g</code> option. This option 1396helps the <code>ndk-stack</code> script provide better a stack dump across STL. 1397This change should not affect the code/size of the final, stripped file.</li> 1398<li>Enhanced <code>hello-jni</code> samples to report <code>APP_ABI</code> at 1399compilation.</li> 1400<li>Used the <code>ar</code> tool in Deterministic mode (option 1401<code>-D</code>) to build static libraries. (Issue <a 1402href="http://b.android.com/60705">60705</a>)</li> 1403 </ul> 1404 </dd> 1405 1406 </dl> 1407 </div> 1408</div> 1409 1410<div class="toggle-content closed"> 1411<a name="9b"></a> 1412 <p> 1413 <a href="#" onclick="return toggleContent(this)"> <img 1414 src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 1415 >Android NDK, Revision 9b</a> <em>(October 2013)</em> 1416 </p> 1417 <div class="toggle-content-toggleme"> 1418 <dl> 1419 <dt>Important changes:</dt> 1420 <dd> 1421 <ul> 1422 <li>Updated {@code include/android/*h} and {@code math.h} for all Android API levels up to 1423 18, including the addition of levels 13, 15, 16 and 17. 1424 For information on added APIs, see commit messages for Changes 1425 <a href="https://android-review.googlesource.com/68012">68012</a> and 1426 <a href="https://android-review.googlesource.com/68014">68014</a>. 1427 (Issues <a href="http://b.android.com/47150">47150</a>, 1428 <a href="http://b.android.com/58528">58528</a>, and 1429 <a href="http://b.android.com/38423">38423</a>)</li> 1430 <li>Added support for Android API level 19, including Renderscript binding.</li> 1431 <li>Added support for <code>-mhard-float</code> in the existing armeabi-v7a ABI. For more 1432 information and current restrictions on Clang, see 1433 {@code tests/device/hard-float/jni/Android.mk}.</li> 1434 <li>Migrated from GNU Compiler Collection (GCC) 4.8 to 4.8.2, and added diagnostic color 1435 support. To enable diagnostic colors, set <code>-fdiagnostics-color=auto</code>, 1436 <code>-fdiagnostics-color=always,</code> or export {@code GCC_COLORS} as shown below: 1437<pre> 1438GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 1439</pre> 1440 For more information, see 1441 <a href="http://gcc.gnu.org/onlinedocs/gcc/Language-Independent-Options.html">GCC 1442 Language Independent Options</a>. 1443 </li> 1444 <li>Added two new samples to demonstrate OpenGL ES 3.0 features: Teapot and MoreTeapots. 1445 These samples run on devices with Android 4.1 (API level 16) and higher.</li> 1446 <li>Deprecated GCC 4.7 and Clang 3.2 support, which will be removed in the next 1447 release.</li> 1448 </ul> 1449 </dd> 1450 1451 <dt>Important bug fixes:</dt> 1452 <dd> 1453 <ul> 1454 <li>Fixed problem with ARM GCC 4.6 {@code thumb2} failing to generate 16-bit relative jump 1455 tables. (<a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48328">GCC Issue</a>)</li> 1456 <li>Fixed GCC 4.8 internal compiler error (ICE) on 1457 {@code g++.dg/cpp0x/lambda/lambda-defarg3.C}. 1458 (<a href="https://android-review.googlesource.com/62770">Change 62770</a>, 1459 <a href="http://gcc.gnu.org/ml/gcc/2013-07/msg00424.html">GCC Issue</a>)</li> 1460 <li>Fixed a problem with Windows 32-bit {@code *-gdb.exe} executables failing to launch. 1461 (<a href="http://b.android.com/58975">Issue 58975</a>)</li> 1462 <li>Fixed GCC 4.8 ICE when building bullet library. The error message is as follows: 1463 <pre>internal compiler error: verify_flow_info failed</pre> 1464 (<a href="http://b.android.com/58916">Issue 58916</a>, 1465 <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58165">GCC Issue</a>)</li> 1466 <li>Modified GDB/ARM build to skip {@code ARM.exidx} data for unwinding in prologue code and 1467 added a command ({@code set arm exidx-unwinding}) to control exidx-based stack unwinding. 1468 (<a href="http://b.android.com/55826">Issue 55826</a>)</li> 1469 <li>Fixed Clang 3.3 MIPS compiler problem where HI and LO registers are incorrectly 1470 reused.</li> 1471 <li>Fixed issue with MIPS 4.7 ICE in {@code dbx_reg_number}. The error message is as 1472follows: 1473<pre> 1474external/icu4c/i18n/decimfmt.cpp:1322:1: 1475internal compiler error: in dbx_reg_number, at dwarf2out.c:10185 1476</pre> 1477 (<a href="http://gcc.gnu.org/ml/gcc-patches/2012-12/msg00830.html">GCC Patch</a>) 1478 1479 </li> 1480 1481 </ul> 1482 </dd> 1483 1484 <dt>Other bug fixes:</dt> 1485 <dd> 1486 <ul> 1487 <li>Header fixes 1488 <ul> 1489 <li>Fixed the ARM {@code WCHAR_MIN} and {@code WCHAR_MAX} to be unsigned according to 1490 spec (the X86/MIPS versions are signed). Define {@code _WCHAR_IS_ALWAYS_SIGNED} to 1491 restore old behavior. (<a href="http://b.android.com/57749">Issue 57749</a>)</li> 1492 <li>Fixed {@code include/netinet/tcp.h} to contain {@code TCP_INFO} state enum. 1493 (<a href="http://b.android.com/38881">Issue 38881</a>)</li> 1494 <li>Fixed the {@code cdefs_elh.h} macro {@code _C_LABEL_STRING} to stop generating 1495 warnings in the GCC 4.8 toolchain when using c++11 mode. 1496 (<a href="http://b.android.com/58135">Issue 58135</a>, 1497 <a href="http://b.android.com/58652">Issue 58652</a>)</li> 1498 <li>Removed non-existent functions {@code imaxabs} and {@code imaxdiv} from header 1499 {@code inttypes.h}.</li> 1500 <li>Fixed issue with {@code pthread_exit()} return values and {@code pthread_self()}. 1501 (<a href="http://b.android.com/60686">Issue 60686</a>)</li> 1502 <li>Added missing {@code mkdtemp()} function, which already exists in {@code bionic} 1503 header {@code stdlib.h}.</li> 1504 </ul> 1505 </li> 1506 <li>Fixed problem building {@code samples/gles3jni} with Clang on Android API level 11.</li> 1507 <li>Fixed MCLinker to allow multiple occurrences of the following options: 1508 {@code -gc-sections} and {@code --eh-frame-hdr}.</li> 1509 <li>Fixed MCLinker to accept the {@code --no-warn-mismatch} option.</li> 1510 <li>Modified {@code cpu-features} option to not assume all VFPv4 devices support IDIV. 1511 Now this option only adds IDIV to white-listed devices, including Nexus 4. 1512 (<a href="http://b.android.com/57637">Issue 57637</a>)</li> 1513 <li>Fixed problem with {@code android_native_app_glue.c} erroneously logging errors on event 1514 predispatch operations.</li> 1515 <li>Fixed all operations on {@code gabi++} terminate and unexpected_handler to be 1516 thread-safe.</li> 1517 <li>Fixed several issues with Clang <code>-integrated-as</code> option so it can pass 1518 tests for {@code ssax-instructions} and {@code fenv}.</li> 1519 <li>Fixed GCC 4.6/4.7/4.8 compiler to pass the linker option {@code --eh-frame-hdr} even 1520 for static executables. For more information, see the 1521 <a href="http://gcc.gnu.org/ml/gcc-patches/2012-09/msg00969.html">GCC patch</a>.</li> 1522 <li>Fixed extra apostrophe in <code>CPU-ARCH-ABIS.html</code>. For more information, see 1523 <code>NDK-DEPENDS.html</code>. (<a href="http://b.android.com/60142">Issue 60142</a>)</li> 1524 <li>Fixed extra quotes in ndk-build output on Windows. 1525 (<a href="http://b.android.com/60649">Issue 60649</a>)</li> 1526 <li>Fixed Clang 3.3 to compile ARM's built-in, atomic operations such as 1527 {@code __atomic_fetch_add}, {@code __atomic_fetch_sub}, and {@code __atomic_fetch_or}. 1528 </li> 1529 <li>Fixed Clang 3.3 ICE with customized {@code vfprintf}. 1530 (<a href="http://llvm.org/bugs/show_bug.cgi?id=16344">Clang issue</a>) 1531 </li> 1532 </ul> 1533 </dd> 1534 1535 <dt>Other changes:</dt> 1536 <dd> 1537 <ul> 1538 <li>Enabled OpenMP for all GCC builds. To use this feature, add the following flags to your 1539 build settings: 1540<pre> 1541LOCAL_CFLAGS += -fopenmp 1542LOCAL_LDFLAGS += -fopenmp 1543</pre> 1544 For code examples, see {@code tests/device/test-openmp}</li> 1545 <li>Reduced the size of {@code ld.mcld} significantly (1.5MB vs. {@code ld.bfd} 3.5MB and 1546 {@code ld.gold} 7.5MB), resulting in a speed improvement of approximately 20%.</li> 1547 <li>Added <code>LOCAL_CONLYFLAGS</code> and <code>APP_CONLYFLAGS</code> to specify 1548 options applicable to C only but not C++. The existing <code>LOCAL_CFLAGS</code> 1549 and <code>APP_CFLAGS</code> are also used for C++ compilation (to save trouble of 1550 specifying most options twice), so options such as <code>-std=gnu99</code> may fail in 1551 g++ builds with a warning and clang++ builds with an error.</li> 1552 <li>Added {@code gabi++} array helper functions.</li> 1553 <li>Modified GCC builds so that all {@code libgcc.a} files are built with 1554 <code>-funwind-tables</code> to allow the stack to be unwound past previously blocked 1555 points, such as <code>__aeabi_idiv0</code>.</li> 1556 <li>Added Ingenic MXU support in MIPS GCC4.6/4.7/4.8 with new <code>-mmxu</code> 1557option.</li> 1558 <li>Extended MIPS GCC4.6/4.7/4.8 <code>-mldc1-sdc1</code> to control ldxc1/sdxc1 too</li> 1559 <li>Added crazy linker. For more information, see 1560 {@code sources/android/crazy_linker/README.TXT}.</li> 1561 <li>Fixed {@code bitmap-plasma} to draw to full screen rather than a 200x200 pixel 1562area.</li> 1563 <li>Reduced linux and darwin toolchain sizes by 25% by creating symlinks to identical files. 1564 </li> 1565 </ul> 1566 </dd> 1567 1568 </dl> 1569 </div> 1570</div> 1571 1572 1573<div class="toggle-content closed"> 1574<a name="9"></a> 1575 <p> 1576 <a href="#" onclick="return toggleContent(this)"> <img 1577 src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" alt="" 1578 >Android NDK, Revision 9</a> <em>(July 2013)</em> 1579 </p> 1580 <div class="toggle-content-toggleme"> 1581 <dl> 1582 <dt>Important changes:</dt> 1583 <dd> 1584 <ul> 1585 <li>Added support for Android 4.3 (API level 18). For more information, see 1586 {@code STABLE-APIS.html} and new code examples in {@code samples/gles3jni/README}. 1587 <li>Added headers and libraries for OpenGL ES 3.0, which is supported by Android 4.3 1588 (API level 18) and higher.</li> 1589 <li>Added GNU Compiler Collection (GCC) 4.8 compiler to the NDK. Since GCC 4.6 is still 1590 the default, you must explicitly enable this option: 1591 <ul> 1592 <li>For {@code ndk-build} builds, export {@code NDK_TOOLCHAIN_VERSION=4.8} or 1593 add it in {@code Application.mk}.</li> 1594 <li>For standalone builds, use the {@code --toolchain=} option in 1595 {@code make-standalone-toolchain.sh}, for example:<br> 1596 {@code --toolchain=arm-linux-androideabi-4.8}</li> 1597 </ul> 1598 <p class="note"><strong>Note:</strong> 1599 The {@code -Wunused-local-typedefs} option is enabled by {@code -Wall}. Be 1600 sure to add {@code __attribute__((unused))} if you use compile-time asserts like 1601 {@code sources/cxx-stl/stlport/stlport/stl/config/features.h}, line #311. For more 1602 information, see 1603 <a href="https://android-review.googlesource.com/#/c/55460">Change 55460</a></p> 1604 <p class="note"><strong>Note:</strong> 1605 In the GCC 4.7 release and later, ARM compilers generate unaligned access code by 1606 default for ARMv6 and higher build targets. You may need to add the 1607 {@code -mno-unaligned-access} build option when building for kernels that do not support 1608 this feature.</p> 1609 </li> 1610 <li>Added Clang 3.3 support. The {@code NDK_TOOLCHAIN_VERSION=clang} build option 1611 now picks Clang 3.3 by default. 1612 <p class="note"><strong>Note:</strong> 1613 Both GCC 4.4.3 and Clang 3.1 are deprecated, and will be removed from the next NDK 1614 release.</p></li> 1615 <li>Updated GNU Project Debugger (GDB) to support python 2.7.5.</li> 1616 <li>Added MCLinker to support Windows hosts. Since {@code ld.gold} 1617 is the default where available, you must add {@code -fuse-ld=mcld} in 1618 {@code LOCAL_LDFLAGS} or {@code APP_LDFLAGS} to enable MCLinker.</li> 1619 <li>Added {@code ndk-depends} tool which prints ELF library dependencies. 1620 For more information, see {@code NDK-DEPENDS.html}. 1621 (<a href="http://b.android.com/53486">Issue 53486</a>)</li> 1622 </ul> 1623 </dd> 1624 1625 <dt>Important bug fixes:</dt> 1626 <dd> 1627 <ul> 1628 <li>Fixed potential event handling issue in {@code android_native_app_glue}. 1629 (<a href="http://b.android.com/41755">Issue 41755</a>)</li> 1630 <li>Fixed ARM/GCC-4.7 build to generate sufficient alignment for NEON load and store 1631 instructions VST and VLD. 1632 (<a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57271">GCC Issue 57271</a>)</li> 1633 <li>Fixed a GCC 4.4.3/4.6/4.7 internal compiler error (ICE) for a constant negative index 1634 value on a string literal. 1635 (<a href="http://b.android.com/54623">Issue 54623</a>)</li> 1636 <li>Fixed GCC 4.7 segmentation fault for constant initialization with an object address. 1637 (<a href="http://b.android.com/56508">Issue 56508</a>)</li> 1638 <li>Fixed GCC 4.6 ARM segmentation fault for <code>-O</code> values when using Boost 1639 1.52.0. (<a href="http://b.android.com/42891">Issue 42891</a>) 1640 <li>Fixed {@code libc.so} and {@code libc.a} to support the {@code wait4()} function. 1641 (<a href="http://b.android.com/19854">Issue 19854</a>)</li> 1642 <li>Updated the x86 libc.so and libc.a files to include the {@code clone()} 1643 function.</li> 1644 <li>Fixed {@code LOCAL_SHORT_COMMANDS} bug where the {@code linker.list} file is 1645 empty or not used.</li> 1646 <li>Fixed GCC MIPS build on Mac OS to use CFI directives, without which 1647 {@code ld.mcld --eh-frame-hdr} fails frequently.</li> 1648 <li>Fixed Clang 3.2 X86/MIPS internal compiler error in {@code llvm/lib/VMCore/Value.cpp}. 1649 (<a href="https://android-review.googlesource.com/#/c/59021">Change 59021</a>)</li> 1650 <li>Fixed GCC 4.7 64-bit Windows assembler crash. (Error: {@code out of memory allocating 1651 4294967280 bytes}).</li> 1652 <li>Updated {@code ndk-gdb} script so that the {@code --start} or {@code --launch} actions 1653 now wait for the GNU Debug Server, so that it can more reliably hit breakpoints set 1654 early in the execution path (such as breakpoints in JNI code). 1655 (<a href="http://b.android.com/41278">Issue 41278</a>) 1656 <p class="note"><strong>Note:</strong> 1657 This feature requires jdb and produces warning about pending breakpoints. 1658 Specify the {@code --nowait} option to restore previous behavior. 1659 </p> 1660 </li> 1661 <li>Fixed GDB crash when library list is empty.</li> 1662 <li>Fixed GDB crash when using a {@code stepi} command past a {@code bx pc} or 1663 {@code blx pc} Thumb instruction. 1664 (<a href="http://b.android.com/56962">Issue 56962</a>, 1665 <a href="http://b.android.com/36149">Issue 36149</a>)</li> 1666 <li>Fixed MIPS {@code gdbserver} to look for {@code DT_MIPS_RLD_MAP} instead of 1667 {@code DT_DEBUG}. (<a href="http://b.android.com/56586">Issue 56586</a>)</li> 1668 <li>Fixed a circular dependency in the ndk-build script, for example: If A->B and 1669 B->B, then B was dropped from build. 1670 (<a href="http://b.android.com/56690">Issue 56690</a>)</li> 1671 </ul> 1672 </dd> 1673 1674 <dt>Other bug fixes:</dt> 1675 <dd> 1676 <ul> 1677 <li>Fixed the {@code ndk-build} script to enable you to specify a version of Clang as a 1678 command line option (e.g., {@code NDK_TOOLCHAIN_VERSION=clang3.2}). Previously, only 1679 specifying the version as an environment variable worked.</li> 1680 <li>Fixed gabi++ size of {@code _Unwind_Exception} to be 24 for MIPS build targets when 1681 using the Clang compiler. 1682 (<a href="https://android-review.googlesource.com/#/c/54141">Change 54141</a>)</li> 1683 <li>Fixed the {@code ndk-build} script to ensure that built libraries are actually 1684 removed from projects that include prebuilt static libraries when using the 1685 {@code ndk-build clean} command. 1686 (<a href="https://android-review.googlesource.com/#/c/54461">Change 54461</a>, 1687 <a href="https://android-review.googlesource.com/#/c/54480">Change 54480</a>)</li> 1688 <li>Modified the {@code NDK_ANALYZE=1} option to be less verbose.</li> 1689 <li>Fixed {@code gnu-libstdc++/Android.mk} to include a {@code backward/} path for builds 1690 that use backward compability. 1691 (<a href="http://b.android.com/53404">Issue 53404</a>)</li> 1692 <li>Fixed a problem where {@code stlport new} sometimes returned random values.</li> 1693 <li>Fixed {@code ndk-gdb} to match the order of {@code CPU_ABIS}, not {@code APP_ABIS}. 1694 (<a href="http://b.android.com/54033">Issue 54033</a>)</li> 1695 <li>Fixed a problem where the NDK 64-bit build on MacOSX choses the wrong path for 1696 compiler. 1697 (<a href="http://b.android.com/53769">Issue 53769</a>)</li> 1698 <li>Fixed build scripts to detect 64-bit Windows Vista. 1699 (<a href="http://b.android.com/54485">Issue 54485</a>)</li> 1700 <li>Fixed x86 {@code ntonl/swap32} error: {@code invalid 'asm': operand number 1701 out of range}. 1702 (<a href="http://b.android.com/54465">Issue 54465</a>, 1703 <a href="https://android-review.googlesource.com/#/c/57242">Change 57242</a>)</li> 1704 <li>Fixed {@code ld.gold} to merge string literals.</li> 1705 <li>Fixed {@code ld.gold} to handle large symbol alignment.</li> 1706 <li>Updated {@code ld.gold} to enable the {@code --sort-section=name} option.</li> 1707 <li>Fixed GCC 4.4.3/4.6/4.7 to suppress the {@code -export-dynamic} option for 1708 statically linked programs. GCC no longer adds an {@code .interp} section for statically 1709 linked programs.</li> 1710 <li>Fixed GCC 4.4.3 {@code stlport} compilation error about inconsistent {@code typedef} 1711 of {@code _Unwind_Control_Block}. 1712 (<a href="http://b.android.com/54426">Issue 54426</a>)</li> 1713 <li>Fixed {@code awk} scripts to handle {@code AndroidManifest.xml} files created on 1714 Windows which may contain trailing {@code \r} characters and cause build errors. 1715 (<a href="http://b.android.com/42548">Issue 42548</a>)</li> 1716 <li>Fixed {@code make-standalone-toolchain.sh} to probe the {@code prebuilts/} 1717 directory to detect if the host is 32 bit or 64 bit.</li> 1718 <li>Fixed the Clang 3.2 {@code -integrated-as} option.</li> 1719 <li>Fixed the Clang 3.2 ARM EHABI compact model {@code pr1} and {@code pr2} handler data. 1720 </li> 1721 <li>Added Clang {@code -mllvm -arm-enable-ehabi} option to fix the following Clang error: 1722 <pre>clang: for the -arm-enable-ehabi option: may only occur zero or one times!</pre> 1723 </li> 1724 <li>Fixed build failure when there is no {@code uses-sdk} element in application 1725 manifest. (<a href="http://b.android.com/57015">Issue 57015</a>)</li> 1726 </ul> 1727 1728 </dd> 1729 <dt>Other changes:</dt> 1730 <dd> 1731 <ul> 1732 <li>Header Fixes 1733 <ul> 1734 <li>Modified headers to make {@code __set_errno} an inlined function, since 1735 {@code __set_errno} in {@code errno.h} is deprecated, and {@code libc.so} no longer 1736 exports it.</li> 1737 <li>Modified {@code elf.h} to include {@code stdint.h}. 1738 (<a href="http://b.android.com/55443">Issue 55443</a>)</li> 1739 <li>Fixed {@code sys/un.h} to be included independently of other headers. 1740 (<a href="http://b.android.com/53646">Issue 53646</a>)</li> 1741 <li>Fixed all of the {@code MotionEvent_getHistorical} API family to take the 1742 {@code const AInputEvent* motion_event}. 1743 (<a href="http://b.android.com/55873">Issue 55873</a>)</li> 1744 <li>Fixed {@code malloc_usable_size} to take {@code const void*}. 1745 (<a href="http://b.android.com/55725">Issue 55725</a>)</li> 1746 <li>Fixed stdint.h to be more compatible with C99. 1747 (<a href="https://android-review.googlesource.com/#/c/46821">Change 46821</a>)</li> 1748 <li>Modified {@code wchar.h} to not redefine {@code WCHAR_MAX} and 1749 {@code WCHAR_MIN}</li> 1750 <li>Fixed {@code <inttypes.h>} declaration for pointer-related {@code PRI} and 1751 {@code SCN} macros. (<a href="http://b.android.com/57218">Issue 57218</a>)</li> 1752 <li>Changed the {@code sys/cdefs.h} header so that {@code __WCHAR_TYPE__} is 32-bit 1753 for API levels less than 9, which means that {@code wchat_t} is 32-bit for all 1754 API levels. To restore the previous behavior, define the {@code _WCHAR_IS_8BIT} 1755 boolean variable. (<a href="http://b.android.com/57267">Issue 57267</a>)</li> 1756 </ul> 1757 </li> 1758 <li>Added more formatting in NDK {@code docs/} and miscellaneous documentation fixes. 1759 </li> 1760 <li>Added support for a thin archive technique when building static libraries. 1761 (<a href="http://b.android.com/40303">Issue 40303</a>)</li> 1762 <li>Updated script {@code make-standalone-toolchain.sh} to support the {@code stlport} 1763 library in addition to {@code gnustl}, when you specify the option 1764 {@code --stl=stlport}. For more information, see {@code STANDALONE-TOOLCHAIN.html}.</li> 1765 <li>Updated the {@code make-standalone-toolchain.sh} script so that the 1766 {@code --llvm-version=} option creates the {@code $TOOLCHAIN_PREFIX-clang} and 1767 {@code $TOOLCHAIN_PREFIX-clang++} scripts in addition to {@code clang} and 1768 {@code clang++}, to avoid using the host's clang and clang++ definitions by accident. 1769 </li> 1770 <li>Added two flags to re-enable two optimizations in upstream Clang but disabled in 1771 NDK for better compatibility with code compiled by GCC: 1772 <ul> 1773 <li>Added a {@code -fcxx-missing-return-semantics} flag to re-enable <em>missing 1774return 1775 semantics</em> in Clang 3.2+. Normally, all paths should terminate with a return 1776 statement for a value-returning function. If this is not the case, clang inserts 1777 an undefined instruction (or trap in debug mode) at the path without a return 1778 statement. If you are sure your code is correct, use this flag to allow the 1779 optimizer to take advantage of the undefined behavior. If you are not sure, do not 1780 use this flag. The caller may still receive a random incorrect value, but the 1781 optimizer will not exploit it and make your code harder to debug.</li> 1782 <li>Added a {@code -fglobal-ctor-const-promotion} flag to re-enable 1783 promoting global variables with static constructor to be constants. With this flag, 1784 the global variable optimization pass of LLVM tries to evaluate the global 1785 variables with static constructors and promote them to global constants. Although 1786 this optimization is correct, it may cause some incompatability with code compiled 1787 by GCC. For example, code may do {@code const_cast} to cast the constant to mutable 1788 and modify it. In GCC, the variable is in read-write and the code is run by 1789 accident. In Clang, the const variable is in read-only memory and may cause your 1790 application to crash.</li> 1791 </ul> 1792 </li> 1793 <li>Added {@code -mldc1-sdc1} to the MIPS GCC and Clang compilers. By default, compilers 1794 align 8-byte objects properly and emit the {@code ldc1} and {@code sdc1} instructions 1795 to move them around. If your app uses a custom allocator that does not always align 1796 with a new object's 8-byte boundary in the same way as the default allocator, your app 1797 may crash due to {@code ldc1} and {@code sdc1} operations on unaligned memory. In this 1798 case, use the {@code -mno-ldc1-sdc1} flag to workaround the problem.</li> 1799 <li>Downgraded the event severity from warning to info if {@code APP_PLATFORM_LEVEL} is 1800 larger than {@code APP_MIN_PLATFORM_LEVEL}. The {@code APP_PLATFORM_LEVEL} may be lower 1801 than {@code APP_PLATFORM} in {@code jni/Application.mk} because the NDK does not have 1802 headers for all levels. In this case, the actual level is shifted downwards. The 1803 {@code APP_MIN_PLATFORM_LEVEL} is specified by the {@code android:minSdkVersion} in 1804 your application's manifest. 1805 (<a href="http://b.android.com/39752">Issue 39752</a>)</li> 1806 <li>Added the {@code android_getCpuIdArm()} and {@code android_setCpuArm()} methods to 1807 {@code cpu-features.c}. This addition enables easier retrieval of the ARM CPUID 1808 information. (<a href="http://b.android.com/53689">Issue 53689</a>)</li> 1809 <li>Modified {@code ndk-build} to use GCC 4.7's {@code as/ld} for Clang compiling. 1810 <p class="note"><strong>Note:</strong> 1811 In GCC 4.7, {@code monotonic_clock} and {@code is_monotonic} have been renamed to 1812 {@code steady_clock} and {@code is_steady}, respectively.</p></li> 1813 <li>Added the following new warnings to the {@code ndk-build} script: 1814 <ul> 1815 <li>Added warnings if {@code LOCAL_LDLIBS/LDFLAGS} are used in static library 1816 modules.</li> 1817 <li>Added a warning if a configuration has no module to build.</li> 1818 <li>Added a warning for non-system libraries being used in 1819 {@code LOCAL_LDLIBS/LDFLAGS} of a shared library or executable modules.</li> 1820 </ul> 1821 </li> 1822 <li>Updated build scripts, so that if {@code APP_MODULES} is not defined and only static 1823 libraries are listed in {@code Android.mk}, the script force-builds all of them. 1824 (<a href="http://b.android.com/53502">Issue 53502</a>)</li> 1825 <li>Updated {@code ndk-build} to support absolute paths in {@code LOCAL_SRC_FILES}.</li> 1826 <li>Removed the {@code *-gdbtui} executables, which are duplicates of the {@code *-gdb} 1827 executables with the {@code -tui} option enabled.</li> 1828 <li>Updated the build scripts to warn you when the Edison Design Group (EDG) compiler 1829 front-end turns {@code _STLP_HAS_INCLUDE_NEXT} back on. 1830 (<a href="http://b.android.com/53646">Issue 53646</a>)</li> 1831 <li>Added the environment variable {@code NDK_LIBS_OUT} to allow overriding of the 1832 path for {@code libraries/gdbserver} from the default {@code $PROJECT/libs}. 1833 For more information, see {@code OVERVIEW.html}.</li> 1834 <li>Changed ndk-build script defaults to compile code with format string protection 1835 {@code -Wformat -Werror=format-security}. You may set 1836 {@code LOCAL_DISABLE_FORMAT_STRING_CHECKS=true} to disable it. 1837 For more information, see {@code ANDROID-MK.html}</li> 1838 <li>Added STL pretty-print support in {@code ndk-gdb-py}. For more information, see 1839 {@code NDK-GDB.html}.</li> 1840 <li>Added tests based on the googletest frameworks.</li> 1841 <li>Added a notification to the toolchain build script that warns you if the current shell 1842 is not {@code bash}.</li> 1843 </ul> 1844 </dd> 1845 </dl> 1846 </div> 1847</div> 1848 1849 1850<div class="toggle-content closed"> 1851<a name="lower"></a> 1852 <p><a href="#" onclick="return toggleContent(this)"> 1853 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 1854 alt="">Android NDK, Revision 8e</a> <em>(March 2013)</em> 1855 </p> 1856 1857 <div class="toggle-content-toggleme"> 1858 <dl> 1859 <dt>Important changes:</dt> 1860 <dd> 1861 <ul> 1862 <li>Added 64-bit host toolchain set (package name suffix {@code *-x86_64.*}). For more 1863 information, see {@code CHANGES.HTML} and {@code NDK-BUILD.html}.</li> 1864 <li>Added Clang 3.2 compiler. GCC 4.6 is still the default. For information on using the 1865 Clang compiler, see {@code CHANGES.HTML}.</li> 1866 <li>Added static code analyzer for Linux/MacOSX hosts. For information on using the 1867 analyzer, see {@code CHANGES.HTML}.</li> 1868 <li>Added MCLinker for Linux/MacOSX hosts as an experimental feature. The {@code ld.gold} 1869 linker is the default where available, so you must explicitly enable it. For more 1870 information, see {@code CHANGES.HTML}.</li> 1871 <li>Updated ndk-build to use topological sort for module dependencies, which means the 1872 build automatically sorts out the order of libraries specified in 1873 {@code LOCAL_STATIC_LIBRARIES}, {@code LOCAL_WHOLE_STATIC_LIBRARIES} and 1874 {@code LOCAL_SHARED_LIBRARIES}. For more information, see {@code CHANGES.HTML}. 1875 (<a href="http://b.android.com/39378">Issue 39378</a>)</li> 1876 </ul> 1877 </dd> 1878 1879 <dt>Important bug fixes:</dt> 1880 <dd> 1881 <ul> 1882 <li>Fixed build script to build all toolchains in {@code -O2}. Toolchains in previous 1883 releases were incorrectly built without optimization.</li> 1884 <li>Fixed build script which unconditionally builds Clang/llvm for MacOSX in 64-bit.</li> 1885 <li>Fixed GCC 4.6/4.7 internal compiler error: 1886 {@code gen_thumb_movhi_clobber at config/arm/arm.md:5832}. 1887 (<a href="http://b.android.com/52732">Issue 52732</a>)</li> 1888 <li>Fixed build problem where GCC/ARM 4.6/4.7 fails to link code using 64-bit atomic 1889 built-in functions. 1890 (<a href="http://b.android.com/41297">Issue 41297</a>)</li> 1891 <li>Fixed GCC 4.7 linker DIV usage mismatch errors. 1892 (<a href="http://sourceware.org/ml/binutils/2012-12/msg00202.html">Sourceware Issue</a>) 1893 <li>Fixed GCC 4.7 internal compiler error {@code build_data_member_initialization, at 1894 cp/semantics.c:5790}.</li> 1895 <li>Fixed GCC 4.7 internal compiler error {@code redirect_eh_edge_1, at tree-eh.c:2214}. 1896 (<a href="http://b.android.com/52909">Issue 52909</a>)</li> 1897 <li>Fixed a GCC 4.7 segfault. 1898 (<a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55245">GCC Issue</a>)</li> 1899 <li>Fixed {@code <chrono>} clock resolution and enabled {@code steady_clock}. 1900 (<a href="http://b.android.com/39680">Issue 39680</a>)</li> 1901 <li>Fixed toolchain to enable {@code _GLIBCXX_HAS_GTHREADS} for GCC 4.7 libstdc++. 1902 (<a href="http://b.android.com/41770">Issue 41770</a>, 1903 <a href="http://b.android.com/41859">Issue 41859</a>)</li> 1904 <li>Fixed problem with the X86 MXX/SSE code failing to link due to missing 1905 {@code posix_memalign}. 1906 (<a href="https://android-review.googlesource.com/#/c/51872">Change 51872</a>)</li> 1907 <li>Fixed GCC4.7/X86 segmentation fault in {@code i386.c}, function 1908 {@code distance_non_agu_define_in_bb()}. 1909 (<a href="https://android-review.googlesource.com/#/c/50383">Change 50383</a>)</li> 1910 <li>Fixed GCC4.7/X86 to restore earlier {@code cmov} behavior. 1911 (<a href="http://gcc.gnu.org/viewcvs?view=revision&revision=193554">GCC Issue</a>)</li> 1912 <li>Fixed handling NULL return value of {@code setlocale()} in libstdc++/GCC4.7. 1913 (<a href="http://b.android.com/46718">Issue 46718</a>) 1914 <li>Fixed {@code ld.gold} runtime undefined reference to {@code __exidx_start} and 1915 {@code __exidx_start_end}. 1916 (<a href="https://android-review.googlesource.com/#/c/52134">Change 52134</a>)</li> 1917 <li>Fixed Clang 3.1 internal compiler error when using Eigen library. 1918 (<a href="http://b.android.com/41246">Issue 41246</a>)</li> 1919 <li>Fixed Clang 3.1 internal compiler error including {@code <chrono>} in C++11 1920mode. 1921 (<a href="http://b.android.com/39600">Issue 39600</a>)</li> 1922 <li>Fixed Clang 3.1 internal compiler error when generating object code for a method 1923 call to a uniform initialized {@code rvalue}. 1924 (<a href="http://b.android.com/41387">Issue 41387</a>)</li> 1925 <li>Fixed Clang 3.1/X86 stack realignment. 1926 (<a href="https://android-review.googlesource.com/#/c/52154">Change 52154</a>)</li> 1927 <li>Fixed problem with GNU Debugger (GDB) SIGILL when debugging on Android 4.1.2. 1928 (<a href="http://b.android.com/40941">Issue 40941</a>)</li> 1929 <li>Fixed problem where GDB cannot set {@code source:line} breakpoints when symbols 1930contain 1931 long, indirect file paths. 1932 (<a href="http://b.android.com/42448">Issue 42448</a>)</li> 1933 <li>Fixed GDB {@code read_program_header} for MIPS PIE executables. 1934 (<a href="https://android-review.googlesource.com/#/c/49592">Change 49592</a>)</li> 1935 <li>Fixed {@code STLport} segmentation fault in {@code uncaught_exception()}. 1936 (<a href="https://android-review.googlesource.com/#/c/50236">Change 50236</a>)</li> 1937 <li>Fixed {@code STLport} bus error in exception handling due to unaligned access of 1938 {@code DW_EH_PE_udata2}, {@code DW_EH_PE_udata4}, and {@code DW_EH_PE_udata8}.</li> 1939 <li>Fixed Gabi++ infinite recursion problem with {@code nothrow new[]} operator. 1940 (<a href="http://b.android.com/52833">Issue 52833</a>)</li> 1941 <li>Fixed Gabi++ wrong offset to exception handler pointer. 1942 (<a href="https://android-review.googlesource.com/#/c/53446">Change 53446</a>)</li> 1943 <li>Removed Gabi++ redundant free on exception object 1944 (<a href="https://android-review.googlesource.com/#/c/53447">Change 53447</a>)</li> 1945 </ul> 1946 </dd> 1947 1948 <dt>Other bug fixes:</dt> 1949 <dd> 1950 <ul> 1951 <li>Fixed NDK headers: 1952 <ul> 1953 <li>Removed redundant definitions of {@code size_t}, {@code ssize_t}, and 1954 {@code ptrdiff_t}.</li> 1955 <li>Fixed MIPS and ARM {@code fenv.h} header.</li> 1956 <li>Fixed {@code stddef.h} to not redefine {@code offsetof} since it already exists 1957 in the toolchain.</li> 1958 <li>Fixed {@code elf.h} to contain {@code Elf32_auxv_t} and {@code Elf64_auxv_t}. 1959 (<a href="http://b.android.com/38441">Issue 38441</a>) 1960 </li> 1961 <li>Fixed the {@code #ifdef} C++ definitions in the 1962 {@code OpenSLES_AndroidConfiguration.h} header file. 1963 (<a href="http://b.android.com/53163">Issue 53163</a>) 1964 </li> 1965 </ul> 1966 </li> 1967 <li>Fixed {@code STLport} to abort after out of memory error instead of silently exiting. 1968 </li> 1969 <li>Fixed system and Gabi++ headers to be able to compile with API level 8 and lower.</li> 1970 <li>Fixed {@code cpufeatures} to not parse {@code /proc/self/auxv}. 1971 (<a href="http://b.android.com/43055">Issue 43055</a>)</li> 1972 <li>Fixed {@code ld.gold} to not depend on host libstdc++ and on Windows platforms, 1973 to not depend on the {@code libgcc_sjlj_1.dll} library.</li> 1974 <li>Fixed Clang 3.1 which emits inconsistent register list in {@code .vsave} and fails 1975 assembler. 1976 (<a href="https://android-review.googlesource.com/#/c/49930">Change 49930</a>)</li> 1977 <li>Fixed Clang 3.1 to be able to compile libgabi++ and pass the {@code test-stlport} 1978 tests for MIPS build targets. 1979 (<a href="https://android-review.googlesource.com/#/c/51961">Change 51961</a>)</li> 1980 <li>Fixed Clang 3.1 to only enable exception by default for C++, not for C.</li> 1981 <li>Fixed several issues in Clang 3.1 to pass most GNU exception tests.</li> 1982 <li>Fixed scripts {@code clang} and {@code clang++} in standalone NDK compiler to detect 1983 {@code -cc1} and to not specify {@code -target} when found.</li> 1984 <li>Fixed {@code ndk-build} to observe {@code NDK_APP_OUT} set in {@code Application.mk}. 1985 </li> 1986 <li>Fixed X86 {@code libc.so} and {@code lib.a} which were missing the {@code sigsetjmp} 1987 and {@code siglongjmp} functions already declared in {@code setjmp.h}. 1988 (<a href="http://b.android.com/19851">Issue 19851</a>)</li> 1989 <li>Patched GCC 4.4.3/4.6/4.7 libstdc++ to work with Clang in C++ 11. 1990 (<a href="http://clang.llvm.org/cxx_status.html">Clang Issue</a>)</li> 1991 <li>Fixed cygwin path in argument passed to {@code HOST_AWK}.</li> 1992 <li>Fixed {@code ndk-build} script warning in windows when running from project's JNI 1993 directory. 1994 (<a href="http://b.android.com/40192">Issue 40192</a>)</li> 1995 <li>Fixed problem where the {@code ndk-build} script does not build if makefile has 1996 trailing whitespace in the {@code LOCAL_PATH} definition. 1997 (<a href="http://b.android.com/42841">Issue 42841</a>)</li> 1998 </ul> 1999 </dd> 2000 2001 <dt>Other changes:</dt> 2002 <dd> 2003 <ul> 2004 <li>Enabled threading support in GCC/MIPS toolchain.</li> 2005 <li>Updated GCC exception handling helpers {@code __cxa_begin_cleanup} and 2006 {@code __cxa_type_match} to have <em>default</em> visibility from the previous 2007 <em>hidden</em> visibility in GNU libstdc++. For more information, see 2008 {@code CHANGES.HTML}.</li> 2009 <li>Updated build scripts so that Gabi++ and STLport static libraries are now built with 2010 hidden visibility except for exception handling helpers.</li> 2011 <li>Updated build so that {@code STLport} is built for ARM in Thumb mode.</li> 2012 <li>Added support for {@code std::set_new_handler} in Gabi++. 2013 (<a href="http://b.android.com/52805">Issue 52805</a>)</li> 2014 <li>Enabled {@code FUTEX} system call in GNU libstdc++.</li> 2015 <li>Updated {@code ndk-build} so that it no longer copies prebuilt static library to 2016 a project's {@code obj/local/<abi>/} directory. 2017 (<a href="http://b.android.com/40302">Issue 40302</a>)</li> 2018 <li>Removed {@code __ARM_ARCH_5*__} from ARM {@code toolchains/*/setup.mk} script. 2019 (<a href="http://b.android.com/21132">Issue 21132</a>)</li> 2020 <li>Built additional GNU libstdc++ libraries in thumb for ARM.</li> 2021 <li>Enabled MIPS floating-point {@code madd/msub/nmadd/nmsub/recip/rsqrt} 2022 instructions with 32-bit FPU.</li> 2023 <li>Enabled graphite loop optimizer in GCC 4.6 and 4.7 to allow more optimizations: 2024 {@code -fgraphite}, {@code -fgraphite-identity}, {@code -floop-block}, {@code 2025-floop-flatten}, 2026 {@code -floop-interchange}, {@code -floop-strip-mine}, {@code -floop-parallelize-all}, 2027 and {@code -ftree-loop-linear}. 2028 (<a href="http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html">info</a>)</li> 2029 <li>Enabled {@code polly} for Clang 3.1 on Linux and Max OS X 32-bit hosts which analyzes 2030 and optimizes memory access. (<a href="http://polly.llvm.org">info</a>)</li> 2031 <li>Enabled {@code -flto} in GCC 4.7, 4.6, Clang 3.2 and Clang 3.1 on linux (Clang LTO 2032 via LLVMgold.so). MIPS compiler targets are not supported because {@code ld.gold} 2033 is not available.</li> 2034 <li>Enabled {@code --plugin} and {@code --plugin-opt} for {@code ld.gold} in GCC 4.6/4.7. 2035 </li> 2036 <li>Enabled {@code --text-reorder} for {@code ld.gold} in GCC 4.7.</li> 2037 <li>Configured GNU libstdc++ with {@code _GLIBCXX_USE_C99_MATH} which undefines the 2038 {@code isinf} script in the bionic header. For more information, see 2039 {@code CHANGES.html}.</li> 2040 <li>Added {@code APP_LDFLAGS} to the build scripts. For more information, see 2041 {@code ANDROID-MK.html}.</li> 2042 <li>Updated build scripts to allow {@code NDK_LOG=0} to disable the {@code NDK_LOG}.</li> 2043 <li>Updated build scripts to allow {@code NDK_HOST_32BIT=0} to disable the host developer 2044 environment 32-bit toolchain.</li> 2045 <li>Changed the default GCC/X86 flags {@code -march=} and {@code -mtune=} from 2046 {@code pentiumpro} and {@code generic} to {@code i686} and {@code atom}.</li> 2047 <li>Enhanced toolchain build scripts: 2048 <ul> 2049 <li>Fixed a race condition in {@code build-gcc.sh} for the {@code mingw} build type 2050 which was preventing a significant amount of parallel build processing.</li> 2051 <li>Updated {@code build-gabi++.sh} and {@code build-stlport.sh} so they can now run 2052 from the NDK package. 2053 (<a href="http://b.android.com/52835">Issue 52835</a>) 2054 </li> 2055 <li>Fixed {@code run-tests.sh} in the {@code MSys} utilities collection.</li> 2056 <li>Improved 64-bit host toolchain and Canadian Cross build support.</li> 2057 <li>Updated {@code build-mingw64-toolchain.sh} script to more recent version.</li> 2058 <li>Added option to build {@code libgnustl_static.a} and {@code stlport_static.a} 2059 without hidden visibility.</li> 2060 </ul> 2061 </li> 2062 </ul> 2063 2064 </dd> 2065 </dl> 2066 </div> 2067</div> 2068 2069 2070<div class="toggle-content closed"> 2071 <p><a href="#" onclick="return toggleContent(this)"> 2072 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 2073 alt="">Android NDK, Revision 8d</a> <em>(December 2012)</em> 2074 </p> 2075 2076 <div class="toggle-content-toggleme"> 2077 <dl> 2078 <dt>Important changes:</dt> 2079 <dd> 2080 <ul> 2081 <li>Added the GNU Compiler Collection (GCC) 4.7 compiler to the NDK. The GCC 4.6 compiler 2082 is still the default, so you must to explicitly enable the new version as follows: 2083 <ul> 2084 <li>For {@code ndk-build}, export the {@code NDK_TOOLCHAIN_VERSION=4.7} variable 2085 <em>or</em> add it to {@code Application.mk}.</li> 2086 <li>For standalone builds, add the {@code --toolchain=} option to 2087 {@code make-standalone-toolchain.sh}, for example: 2088 <pre>--toolchain=arm-linux-androideabi-4.7</pre></li> 2089 </ul> 2090 <p class="note"> 2091 <strong>Note:</strong> This feature is experimental. Please try it and 2092 <a href="http://code.google.com/p/android/issues/list">report any issues</a>.</p> 2093 </li> 2094 <li>Added {@code stlport} exception support via gabi++. Note that the new gabi++ 2095 depends on {@code dlopen} and related code, meaning that: 2096 <ul> 2097 <li>You can no longer build a <em>static</em> executable using the {@code -static} 2098 option or include {@code libstlport_static.a} using 2099 {@code APP_STL := stlport_static}. (You can still use the {@code -static} option 2100 with a standalone toolchain.) Compiling a <em>dynamic</em> executable using 2101 {@code include $(BUILD_EXECUTABLE)} continues to work because the compiler 2102 automatically adds the {@code -ldl} option.</li> 2103 <li>If your project links using {@code -nostdlib} and {-Wl,--no-undefined}, you 2104 must manually include the {@code -ldl} option.</li> 2105 </ul> 2106 For more information, see {@code CPLUSPLUS-SUPPORT.html}. 2107 2108 <p class="note"> 2109 <strong>Note:</strong> This feature is experimental and works better with the GCC 2110 4.6/4.7 compilers than with GCC 4.4.3 or Clang 3.1. Please try it and 2111 <a href="http://code.google.com/p/android/issues/list">report any issues</a>.</p> 2112 </li> 2113 <li>Added a {@code -mstack-protector-guard=} option for x86 to choose between a 2114 <em>global</em> default path which is compatible with older Android C library (bionic) 2115 and a new <em>tls</em> path (%gs:20) for {@code -fstack-protector}, 2116 {@code -fstack-protector-all} and {@code -fstack-protector-strong} using the GCC 4.6 2117 and higher compilers. 2118 2119 <p class="note"> 2120 <strong>Note:</strong> The {@code -mstack-protector-guard} setting itself does not 2121 enable any {@code -fstack-protector*} options.</p> 2122 </li> 2123 <li>Added {@code android_setCpu()} function to 2124 {@code sources/android/cpufeatures/cpu-features.c} for use when auto-detection via 2125 {@code /proc} is not possible in Android 4.1 and higher. 2126 (<a href="http://code.google.com/p/chromium/issues/detail?id=164154">Chromium Issue 2127 164154</a>)</li> 2128 </ul> 2129 </dd> 2130 2131 <dt>Important bug fixes:</dt> 2132 <dd> 2133 <ul> 2134 <li>Fixed unnecessary rebuild of object files when using the {@code ndk-build} script. 2135 (<a href="http://b.android.com/39810">Issue 39810</a>)</li> 2136 <li>Fixed a linker failure with the NDK 8c release for Mac OS X 10.6.x that produced the 2137 following error: 2138 <pre> 2139dyld: lazy symbol binding failed: Symbol not found: _memmem 2140Referenced from: ...../arm-linux-androideabi/bin/ld 2141Expected in: /usr/lib/libSystem.B.dylib</pre> 2142 This problem was caused by building on Mac OS X 10.7, which produced binaries that were 2143 not compatible with Mac OS 10.6.x and the NDK. 2144 </li> 2145 <li>Removed the {@code -x c++} options from the Clang++ standalone build script. 2146 (<a href="http://b.android.com/39089">Issue 39089</a>)</li> 2147 <li>Fixed issues using the {@code NDK_TOOLCHAIN_VERSION=clang3.1} option in Cygwin. 2148 (<a href="http://b.android.com/39585">Issue 39585</a>)</li> 2149 <li>Fixed the {@code make-standalone-toolchain.sh} script to allow generation of a 2150 standalone toolchain using the Cygwin or MinGW environments. The resulting toolchain 2151 can be used in Cygwin, MingGW or CMD.exe environments. 2152 (<a href="http://b.android.com/39915">Issue 39915</a>, 2153 <a href="http://b.android.com/39585">Issue 39585</a>)</li> 2154 <li>Added missing {@code SL_IID_ANDROIDBUFFERQUEUESOURCE} option in android-14 builds for 2155 ARM and X86. 2156 (<a href="http://b.android.com/40625">Issue 40625</a>)</li> 2157 <li>Fixed x86 CPU detection for the {@code ANDROID_CPU_X86_FEATURE_MOVBE} feature. 2158 (<a href="http://b.android.com/39317">Issue 39317</a>)</li> 2159 <li>Fixed an issue preventing the Standard Template Library (STL) from using C++ 2160 sources that do not have a {@code .cpp} file extension.</li> 2161 <li>Fixed GCC 4.6 ARM internal compiler error <em>at reload1.c:1061</em>. 2162 (<a href="http://b.android.com/20862">Issue 20862</a>)</li> 2163 <li>Fixed GCC 4.4.3 ARM internal compiler error <em>at emit-rtl.c:1954</em>. 2164 (<a href="http://b.android.com/22336">Issue 22336</a>)</li> 2165 <li>Fixed GCC 4.4.3 ARM internal compiler error <em>at postreload.c:396</em>. 2166 (<a href="http://b.android.com/22345">Issue 22345</a>)</li> 2167 <li>Fixed problem with GCC 4.6/4.7 skipping lambda functions. 2168 (<a href="http://b.android.com/35933">Issue 35933</a>)</li> 2169 </ul> 2170 </dd> 2171 2172 <dt>Other bug fixes:</dt> 2173 <dd> 2174 <ul> 2175 <li>NDK header file fixes: 2176 <ul> 2177 <li>Fixed {@code __WINT_TYPE__} and {@code wint_t} to be the same type.</li> 2178 <li>Corrected typo in {@code android/bitmap.h}. 2179 (<a href="http://b.android.com/15134">Issue 15134</a>) 2180 </li> 2181 <li>Corrected typo in {@code errno.h}.</li> 2182 <li>Added check for the presence of {@code __STDC_VERSION__} in {@code sys/cdefs.h}. 2183 (<a href="http://b.android.com/14627">Issue 14627</a>) 2184 </li> 2185 <li>Reorganized headers in {@code byteswap.h} and {@code dirent.h}.</li> 2186 <li>Fixed {@code limits.h} to include {@code page.h} which provides {@code PAGE_SIZE} 2187 settings. 2188 (<a href="http://b.android.com/39983">Issue 39983</a>) 2189 </li> 2190 <li>Fixed return type of {@code glGetAttribLocation()} and 2191 {@code glGetUniformLocation()} from {@code int} to {@code GLint}.</li> 2192 <li>Fixed {@code __BYTE_ORDER} constant for x86 builds. 2193 (<a href="http://b.android.com/39824">Issue 39824</a>) 2194 </li> 2195 </ul> 2196 </li> 2197 <li>Fixed {@code ndk-build} script to not overwrite {@code -Os} with {@code -O2} for ARM 2198 builds.</li> 2199 <li>Fixed build scripts to allow overwriting of {@code HOST_AWK}, {@code HOST_SED}, and 2200 {@code HOST_MAKE} settings.</li> 2201 <li>Fixed issue for {@code ld.gold} on {@code fsck_msdos} builds linking objects built by 2202 the Intel C/C++ compiler (ICC).</li> 2203 <li>Fixed ARM EHABI support in Clang to conform to specifications.</li> 2204 <li>Fixed GNU Debugger (GDB) to shorten the time spent on walking the target's link map 2205 during {@code solib} events. 2206 (<a href="http://b.android.com/38402">Issue 38402</a>)</li> 2207 <li>Fixed missing {@code libgcc.a} file when linking shared libraries.</li> 2208 </ul> 2209 </dd> 2210 2211 <dt>Other changes:</dt> 2212 <dd> 2213 <ul> 2214 <li>Backported 64-bit built-in atomic functions for ARM to GCC 4.6.</li> 2215 <li>Added documentation for audio output latency, along with other documentation and 2216 fixes.</li> 2217 <li>Fixed debug builds with Clang so that non-void functions now raise a {@code SIGILL} 2218 signal for paths without a return statement.</li> 2219 <li>Updated {@code make-standalone-toolchain.sh} to accept the suffix {@code -clang3.1} 2220 which is equivalent to adding {@code --llvm-version=3.1} to the GCC 4.6 toolchain.</li> 2221 <li>Updated GCC and Clang bug report URL to: 2222 <a 2223href="http://source.android.com/source/report-bugs.html">http://source.android.com/source/report-bug 2224s.html</a></li> 2225 <li>Added ARM ELF support to {@code llvm-objdump}.</li> 2226 <li>Suppressed <em>treating c input as c++</em> warning for Clang builds.</li> 2227 <li>Updated build so that only the 32-bit version of {@code libiberty.a} is built and 2228 placed in {@code lib32/}.</li> 2229 </ul> 2230 </dd> 2231 </dl> 2232 </div> 2233</div> 2234 2235 2236<div class="toggle-content closed"> 2237 <p><a href="#" onclick="return toggleContent(this)"> 2238 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 2239 alt="">Android NDK, Revision 8c</a> <em>(November 2012)</em> 2240 </p> 2241 2242 <div class="toggle-content-toggleme"> 2243 <dl> 2244 <dt>Important changes:</dt> 2245 2246 <dd> 2247 <ul> 2248 <li>Added the Clang 3.1 compiler to the NDK. The GNU Compiler Collection (GCC) 4.6 is 2249 still the default, so you must explicitly enable the Clang compiler option as follows: 2250 <ul> 2251 <li>For {@code ndk-build}, export {@code NDK_TOOLCHAIN_VERSION=clang3.1} <em>or</em> 2252 add this environment variable setting to {@code Application.mk}.</li> 2253 <li>For standalone builds, add {@code --llvm-version=3.1} to 2254 {@code make-standalone-toolchain.sh} and replace {@code CC} and {@code CXX} in your 2255 makefile with {@code <tool-path>/bin/clang} and 2256 {@code <tool-path>/bin/clang++}. See {@code STANDALONE-TOOLCHAIN.html} for 2257 details.</li> 2258 </ul> 2259 <p class="note"><strong>Note:</strong> This feature is experimental. Please try it and 2260 <a href="http://code.google.com/p/android/issues/list">report any issues</a>.</p></li> 2261 <li>Added Gold linker {@code ld.gold} for the Windows toolchain. Gold linker is also the 2262 default for ARM and X86 on all hosts. You may override it to use the {@code ld.bfd} 2263 linker by adding {@code LOCAL_LDFLAGS += -fuse-ld=bfd} to {@code Android.mk}, or by 2264passing 2265 {@code -fuse-ld=bfd} to the g++/clang++ command line that does the linking.</li> 2266 <li>Added checks for spaces in the NDK path to the {@code ndk-build[.cmd]} and 2267 {@code ndk-gdb} scripts, to prevent build errors that are difficult to diagnose.</li> 2268 <li>Made the following changes to API level handling: 2269 <ul> 2270 <li>Modified build logic so that projects that specify {@code android-10} through 2271 {@code android-13} in {@code APP_PLATFORM}, {@code project.properties} or 2272 {@code default.properties} link against {@code android-9} instead of 2273 {@code android-14}. 2274 <li>Updated build so that executables using android-16 (Jelly Bean) or higher are 2275 compiled with the {@code -fPIE} option for position-independent executables (PIE). 2276 A new {@code APP_PIE} option allows you to control this behavior. See {@code 2277 APPLICATION-MK.html} for details. 2278 <p class="note"> 2279 <strong>Note:</strong> All API levels above 14 still link against {@code 2280 platforms/android-14} and no new {@code platforms/android-N} have been added. 2281 </p></li> 2282 <li>Modified {@code ndk-build} to provide warnings if the adjusted API level is larger 2283 than {@code android:minSdkVersion} in the project's {@code AndroidManifest.xml}.</li> 2284 </ul> 2285 </li> 2286 <li>Updated the {@code cpu-features} helper library to include more ARM-specific features. 2287 See {@code sources/android/cpufeatures/cpu-features.h} for details.</li> 2288 <li>Modified the long double on the X86 platform to be 8 bytes. This data type is now the 2289 same size as a double, but is still treated as a distinct type.</li> 2290 <li>Updated build for {@code APP_ABI=armeabi-v7a}: 2291 <ul> 2292 <li>Modified this build type to pass the {@code -march=armv7-a} parameter 2293 to the linker. This change ensures that v7-specific libraries and {@code crt*.o} are 2294 linked correctly.</li> 2295 <li>Added {@code -mfpu=vfpv3-d16} to {@code ndk-build} instead of the 2296 {@code -mfpu=vfp} option used in previous releases.</li> 2297 </ul> 2298 </li> 2299 </ul> 2300 </dd> 2301 </dl> 2302 2303 <dl> 2304 <dt>Important bug fixes:</dt> 2305 2306 <dd> 2307 <ul> 2308 <li>Fixed an issue where running {@code make-standalone-toolchain.sh} with root privileges 2309 resulted in the stand alone tool chain being inaccessible to some users. 2310 (<a href="http://b.android.com/35279">Issue 35279</a>) 2311 <ul> 2312 <li>All files and executables in the NDK release package are set to have read and 2313 execute permissions for all.</li> 2314 <li>The ownership/group of {@code libstdc++.a} is now preserved when copied.</li> 2315 </ul> 2316 </li> 2317 <li>Removed redundant {@code \r} from Windows prebuilt {@code echo.exe}. The redundant 2318 {@code \r} caused {@code gdb.setup} to fail in the GNU Debugger (GDB) because it 2319 incorrectly became part of the path. 2320 (<a href="http://b.android.com/36054">Issue 36054</a>)</li> 2321 <li>Fixed Windows parallel builds that sometimes failed due to timing issues in the 2322 {@code host-mkdir} implementation. 2323 (<a href="http://b.android.com/25875">Issue 25875</a>)</li> 2324 <li>Fixed GCC 4.4.3 GNU {@code libstdc++} to <em>not</em> merge {@code typeinfo} names by 2325 default. For more details, see 2326 {@code toolchain repo gcc/gcc-4.4.3/libstdc++-v3/libsupc++/typeinfo}. 2327 (<a href="http://b.android.com/22165">Issue 22165</a>)</li> 2328 <li>Fixed problem on {@code null} context in GCC 4.6 2329 {@code cp/mangle.c::write_unscoped_name}, where GCC may crash when the context is 2330 {@code null} and dereferenced in {@code TREE_CODE}.</li> 2331 <li>Fixed GCC 4.4.3 crashes on ARM NEON-specific type definitions for floats. 2332 (<a href="http://b.android.com/34613">Issue 34613</a>)</li> 2333 <li>Fixed the {@code STLport} internal {@code _IteWrapper::operator*()} implementation 2334 where a stale stack location holding the dereferenced value was returned and caused 2335 runtime crashes. 2336 (<a href="http://b.android.com/38630">Issue 38630</a>)</li> 2337 2338 <li>ARM-specific fixes: 2339 <ul> 2340 <li>Fixed ARM GCC 4.4.3/4.6 {@code g++} to not warn that the <em>mangling of 2341 <va_list> was changed in GCC 4.4</em>. The workaround using the 2342 {@code -Wno-psabi} switch to avoid this warning is no longer required.</li> 2343 <li>Fixed an issue when a project with {@code .arm} or {@code .neon} suffixes in 2344 {@code LOCAL_SRC_FILES} also used {@code APP_STL}. With {@code APP_STL}, the 2345 {@code ndk-build} script searches for C++ files in {@code LOCAL_SRC_FILES} before 2346 adding STL {@code header/lib} paths to compilation. Modified {@code ndk-build} to 2347 filter out {@code .arm} and {@code .neon} suffixes before the search, otherwise items 2348 in {@code LOCAL_SRC_FILES} like {@code myfile.cpp.arm.neon} won't be compiled as C++ 2349 code.</li> 2350 <li>Fixed {@code binutils-2.21/ld.bfd} to be capable of linking object from older 2351 binutils without {@code tag_FP_arch}, which was producing <em>assertion fail</em> 2352 error messages in GNU Binutils. 2353 (<a href="http://b.android.com/35209">Issue 35209</a>) 2354 </li> 2355 <li>Removed <em>Unknown EABI object attribute 44</em> warning when 2356 {@code binutils-2.19/ld} links prebuilt object by newer {@code binutils-2.21}</li> 2357 <li>Fixed an issue in GNU {@code stdc++} compilation with both {@code -mthumb} and 2358 {@code -march=armv7-a}, by modifying {@code make-standalone-toolchain.sh} to populate 2359 {@code headers/libs} in sub-directory {@code armv7-a/thumb}. 2360 (<a href="http://b.android.com/35616">Issue 35616</a>) 2361 </li> 2362 <li>Fixed <em>unresolvable R_ARM_THM_CALL relocation</em> error. 2363 (<a href="http://b.android.com/35342">Issue 35342</a>) 2364 </li> 2365 <li>Fixed internal compiler error at {@code reload1.c:3633}, caused by the ARM 2366 back-end expecting the wrong operand type when sign-extend from {@code char}. 2367 (<a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50099">GCC Issue 50099</a>)</li> 2368 <li>Fixed internal compiler error with negative shift amount. 2369 (<a href="http://gcc.gnu.org/ml/gcc-patches/2011-10/msg00594.html">GCC Issue</a>)</li> 2370 </ul> 2371 </li> 2372 2373 <li>Fixed {@code -fstack-protector} for X86, which is also the default for the 2374 {@code ndk-build} x86 ABI target.</li> 2375 2376 <li>MIPS-specific fixes: 2377 <ul> 2378 <li>Fixed {@code STLport} endian-ness by setting {@code _STLP_LITTLE_ENDIAN} to 1 when 2379 compiling MIPS {@code libstlport_*}.</li> 2380 <li>Fixed GCC {@code __builtin_unreachable} issue when compiling LLVM. 2381 (<a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54369">GCC Issue 54369</a>)</li> 2382 <li>Backported fix for {@code cc1} compile process consuming 100% CPU. 2383 (<a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50380">GCC Issue 50380</a>)</li> 2384 </ul> 2385 </li> 2386 2387 <li>GNU Debugger-specific fixes: 2388 <ul> 2389 <li>Disabled Python support in gdb-7.x at build, otherwise the gdb-7.x configure 2390 function may pick up whatever Python version is available on the host and build 2391 {@code gdb} with a hard-wired dependency on a specific version of Python. 2392 (<a href="http://b.android.com/36120">Issue 36120</a>) 2393 </li> 2394 <li>Fixed {@code ndk-gdb} when {@code APP_ABI} contains {@code all} and matchs none 2395 of the known architectures. 2396 (<a href="http://b.android.com/35392">Issue 35392</a>) 2397 </li> 2398 <li>Fixed Windows pathname support, by keeping the {@code :} character if it looks 2399 like it could be part of a Windows path starting with a drive letter. 2400 (<a href="http://sourceware.org/bugzilla/show_bug.cgi?id=12843">GDB Issue 12843</a>) 2401 </li> 2402 <li>Fixed adding of hardware breakpoint support for ARM in {@code gdbserver}. 2403 (<a href="http://sourceware.org/ml/gdb-patches/2011-09/msg00200.html">GDB Issue</a>) 2404 </li> 2405 <li>Added fix to only read the current {@code solibs} when the linker is consistent. 2406 This change speeds up {@code solib} event handling. 2407 (<a href="http://b.android.com/37677">Issue 37677</a>) 2408 </li> 2409 <li>Added fix to make repeated attempts to find {@code solib} breakpoints. GDB now 2410 retries {@code enable_break()} during every call to {@code svr4_current_sos()} until 2411 it succeeds. 2412 (<a href="https://android-review.googlesource.com/#/c/43563">Change 43563</a>)</li> 2413 <li>Fixed an issue where {@code gdb} would not stop on breakpoints placed in 2414 {@code dlopen-ed} libraries. 2415 (<a href="http://b.android.com/34856">Issue 34856</a>) 2416 </li> 2417 <li>Fixed {@code SIGILL} in dynamic linker when calling {@code dlopen()}, on system 2418 where {@code /system/bin/linker} is stripped of symbols and 2419 {@code rtld_db_dlactivity()} is implemented as {@code Thumb}, due to not preserving 2420 {@code LSB} of {@code sym_addr}. 2421 (<a href="http://b.android.com/37147">Issue 37147</a>) 2422 </li> 2423 </ul> 2424 </li> 2425 </ul> 2426 </dd> 2427 </dl> 2428 2429 <dl> 2430 <dt>Other bug fixes:</dt> 2431 2432 <dd> 2433 <ul> 2434 <li>Fixed NDK headers: 2435 <ul> 2436 <li>Fixed {@code arch-mips/include/asm/*} code that was incorrectly removed from 2437 original kernel. (<a href="https://android-review.googlesource.com/#/c/43335">Change 2438 43335</a>)</li> 2439 <li>Replaced struct member data {@code __unused} with {@code __linux_unused} in 2440 {@code linux/sysctl.h} and {@code linux/icmp.h} to avoid conflict with 2441 {@code #define __unused} in {@code sys/cdefs.h}.</li> 2442 <li>Fixed {@code fenv.h} for enclosed C functions with {@code __BEGIN_DECLS} and 2443 {@code __END_DECLS}.</li> 2444 <li>Removed unimplemented functions in {@code malloc.h}.</li> 2445 <li>Fixed {@code stdint.h} defintion of {@code uint64_t} for ANSI compilers. 2446 (<a href="http://b.android.com/1952">Issue 1952</a>)</li> 2447 <li>Fixed preprocessor macros in {@code <arch>/include/machine/*}.</li> 2448 <li>Replaced {@code link.h} for MIPS with new version supporting all platforms.</li> 2449 <li>Removed {@code linux-unistd.h}</li> 2450 <li>Move GLibc-specific macros {@code LONG_LONG_MIN}, {@code LONG_LONG_MAX} and 2451 {@code ULONG_LONG_MAX} from {@code <pthread.h>} to {@code 2452<limits.h>}.</li> 2453 </ul> 2454 </li> 2455 <li>Fixed a buffer overflow in {@code ndk-stack-parser}.</li> 2456 <li>Fixed {@code _STLP_USE_EXCEPTIONS}, when not defined, to omit all declarations 2457 and uses of {@code __Named_exception}. Compiling and use of {@code __Named_exception} 2458 settings only occurs when {@code STLport} is allowed to use exceptions.</li> 2459 <li>Fixed building of Linux-only NDK packages without also building Windows code. Use the 2460 following settings to perform this type of build: 2461 <pre>./build/tools/make-release.sh --force --systems=linux-x86</pre></li> 2462 <li>Fixed {@code libc.so} so it does not export {@code atexit()} and {@code __do_handler}. 2463 These symbols are exported for ARM builds by the system version of the C library to 2464 support legacy native libraries. NDK-generated should never reference them directly. 2465 Instead, each shared library or executable should embed its own version of these symbols, 2466 provided by {@code crtbegin_*.o}. 2467 <p>If your project is linked with the {@code -nostdlib -Wl,--no-undefined} options, you 2468 must provide your own {@code __dso_handle} because {@code crtbegin_so.o} is not linked in 2469 this case. The content of {@code __dso_handle} does not matter, as shown in the following 2470 example code:</p> 2471<pre> 2472extern "C" { 2473 extern void *__dso_handle __attribute__((__visibility__ ("hidden"))); 2474 void *__dso_handle; 2475} 2476</pre> 2477 </li> 2478 <li>Fixed symbol decoder for ARM used in {@code objdump} for {@code plt} entries to 2479 generate a more readable form {@code function@plt}.</li> 2480 <li>Removed the following symbols, introduced in GCC 4.6 {@code libgcc.a}, from 2481 the X86 platform {@code libc.so} library: {@code __aeabi_idiv0}, {@code __aeabi_ldiv0}, 2482 {@code __aeabi_unwind_cpp_pr1}, and {@code __aeabi_unwind_cpp_pr2}.</li> 2483 <li>Removed unused {@code .ctors}, {@code .dtors}, and {@code .eh_frame} in MIPS 2484 {@code crt*_so.S}.</li> 2485 <li>Updated {@code ndk-gdb} so that it only takes the last line of output for 2486 {@code ndk-build} {@code DUMP_XXXX}. This change ensures that if {@code Application.mk} or 2487 {@code Android.mk} print something with {@code $(info ...)} syntax, it does not get 2488 injected into the result of {@code DUMP_XXXX}. 2489 (<a href="https://groups.google.com/d/msg/android-ndk/-/ew0lTWGr1UEJ">More info</a>)</li> 2490 </ul> 2491 </dd> 2492 </dl> 2493 2494 <dl> 2495 <dt>Other changes:</dt> 2496 2497 <dd> 2498 <ul> 2499 <li>Removed {@code arch-x86} and {@code arch-mips} headers from 2500 {@code platforms/android-[3,4,5,8]}. Those headers were incomplete, since both X86 and 2501 MIPS ABIs are only supported at API 9 or higher.</li> 2502 <li>Simplified c++ include path in standalone packages, as shown below. 2503 (<a href="http://b.android.com/35279">Issue 35279</a>) 2504<pre> 2505<path>/arm-linux-androideabi/include/c++/4.6.x-google 2506 to: 2507<path>/include/c++/4.6/ 2508</pre></li> 2509 <li>Fixed {@code ndk-build} to recognize more C++ file extensions by default: 2510 {@code .cc .cp .cxx .cpp .CPP .c++ .C}. You may still use {@code LOCAL_CPP_EXTENSION} to 2511 overwrite these extension settings.</li> 2512 <li>Fixed an issue in {@code samples/san-angeles} that caused a black screen or freeze 2513 frame on re-launch.</li> 2514 <li>Replaced deprecated APIs in NDK samples. 2515 (<a href="http://b.android.com/20017">Issue 20017</a>) 2516 <ul> 2517 <li>{@code hello-gl2} from android-5 to android-7</li> 2518 <li>{@code native-activity} from android-9 to android-10</li> 2519 <li>{@code native-audio} from android-9 to android-10</li> 2520 <li>{@code native-plasma} from android-9 to android-10</li> 2521 </ul> 2522 </li> 2523 <li>Added new branding for Android executables with a simpler scheme in section 2524 {@code .note.android.ident} (defined in {@code crtbegin_static/dynamic.o}) so that 2525 debugging tools can act accordingly. The structure member and values are defined as 2526 follows: 2527<pre> 2528static const struct { 2529 int32_t namesz; /* = 8, sizeof ("Android") */ 2530 int32_t descsz; /* = 1 * sizeof(int32_t) */ 2531 int32_t type; /* = 1, ABI_NOTETYPE */ 2532 char name[sizeof "Android"]; /* = "Android" */ 2533 int32_t android_api; /* = 3, 4, 5, 8, 9, 14 */ 2534} 2535</pre> 2536 <p>The previous branding options in section {@code .note.ABI-tag} are deprecated.</p> 2537 </li> 2538 <li>Added a new script {@code run-tests-all.sh} which calls {@code run-tests.sh} and 2539 {@code standalone/run.sh} with various conditions. The script {@code run-tests.sh} runs 2540 without the {@code --abi} option, and is enhanced to compile most of the tests for all 2541 supported ABIs and run on all attached devices</li> 2542 </ul> 2543 </dd> 2544 </dl> 2545 2546 </div> 2547</div> 2548 2549<div class="toggle-content closed"> 2550 <p><a href="#" onclick="return toggleContent(this)"> 2551 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 2552 alt="">Android NDK, Revision 8b</a> <em>(July 2012)</em> 2553 </p> 2554 2555 <div class="toggle-content-toggleme"> 2556 <p>The main features of this release are a new GNU Compiler Collection (GCC) 4.6 toolchain and 2557GNU Debugger (GDB) 7.3.x which adds debugging support for the Android 4.1 (API Level 16) system 2558image.</p> 2559 2560 <dl> 2561 <dt>Important bug fixes:</dt> 2562 2563 <dd> 2564 <ul> 2565 <li>Fixed {@code LOCAL_SHORT_COMMANDS} issues on Mac OS, Windows Cygwin environments for 2566static libraries. List file generation is faster, and it is not regenerated to avoid repeated 2567project rebuilds.</li> 2568 <li>Fixed several issues in {@code ndk-gdb}: 2569 <ul> 2570 <li>Updated tool to pass flags {@code -e}, {@code -d} and {@code -s} to adb more 2571consistently.</li> 2572 <li>Updated tool to accept device serial names containing spaces.</li> 2573 <li>Updated tool to retrieve {@code /system/bin/link} information, so {@code gdb} on 2574the host can set a breakpoint in {@code __dl_rtld_db_dlactivity} and be aware of linker activity 2575(e.g., rescan {@code solib} symbols when {@code dlopen()} is called).</li> 2576 </ul> 2577 </li> 2578 <li>Fixed {@code ndk-build clean} on Windows, which was failing to remove 2579{@code ./libs/*/lib*.so}.</li> 2580 <li>Fixed {@code ndk-build.cmd} to return a non-zero {@code ERRORLEVEL} when {@code make} 2581fails.</li> 2582 <li>Fixed {@code libc.so} to stop incorrectly exporting the {@code __exidx_start} and 2583{@code __exidx_end} symbols.</li> 2584 <li>Fixed {@code SEGV} when unwinding the stack past {@code __libc_init} for ARM and 2585MIPS.</li> 2586 </ul> 2587 </dd> 2588 </dl> 2589 2590 <dl> 2591 <dt>Important changes:</dt> 2592 2593 <dd> 2594 <ul> 2595 <li>Added GCC 4.6 toolchain ({@code binutils} 2.21 with {@code gold} and GDB 7.3.x) to 2596co-exist with the original GCC 4.4.3 toolchain ({@code binutils} 2.19 and GDB 6.6). 2597 <ul> 2598 <li>GCC 4.6 is now the default toolchain. You may set {@code 2599NDK_TOOLCHAIN_VERSION=4.4.3} in {@code Application.mk} to select the original one.</li> 2600 <li>Support for the {@code gold} linker is only available for ARM and x86 2601architectures on Linux and Mac OS hosts. This support is disabled by default. Add {@code 2602LOCAL_LDLIBS += -fuse-ld=gold} in {@code Android.mk} to enable it.</li> 2603 <li>Programs compiled with {@code -fPIE} require the new {@code GDB} for debugging, 2604including binaries in Android 4.1 (API Level 16) system images.</li> 2605 <li>The {@code binutils} 2.21 {@code ld} tool contains back-ported fixes from 2606version 2.22: 2607 <ul> 2608 <li>Fixed {@code ld --gc-sections}, which incorrectly retains zombie references to 2609external libraries. (<a href="http://sourceware.org/bugzilla/show_bug.cgi?id=13177">more 2610info</a>).</li> 2611 <li>Fixed ARM {@code strip} command to preserve the original {@code p_align} and 2612{@code p_flags} in {@code GNU_RELRO} section if they are valid. Without this fix, programs 2613built with {@code -fPIE} could not be debugged. (<a 2614href="http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf.c.diff?cvsroot=src&r1=1.552&r2=1.553">mor 2615e info</a>)</li> 2616 </ul> 2617 </li> 2618 <li>Disabled {@code sincos()} optimization for compatibility with older 2619 platforms.</li> 2620 </ul> 2621 </li> 2622 2623 <li>Updated build options to enable the Never eXecute (NX) bit and {@code relro}/{@code 2624bind_now} protections by default: 2625 <ul> 2626 <li>Added {@code --noexecstack} to assembler and {@code -z noexecstack} to linker 2627that provides NX protection against buffer overflow attacks by enabling NX bit on stack and 2628heap.</li> 2629 <li>Added {@code -z relro} and {@code -z now} to linker for hardening of internal 2630data sections after linking to guard against security vulnerabilities caused by memory corruption. 2631(more info: <a href="http://www.akkadia.org/drepper/nonselsec.pdf">1</a>, 2632<a href="http://tk-blog.blogspot.com/2009/02/relro-not-so-well-known-memory.html">2</a>)</li> 2633 2634 <li>These features can be disabled using the following options: 2635 <ol> 2636 <li>Disable NX protection by setting the {@code --execstack} option for the 2637assembler and {@code -z execstack} for the linker.</li> 2638 <li>Disable hardening of internal data by setting the {@code -z norelro} and 2639{@code -z lazy} options for the linker.</li> 2640 <li>Disable these protections in the NDK {@code jni/Android.mk} by setting the 2641following options: 2642<pre> 2643LOCAL_DISABLE_NO_EXECUTE=true # disable "--noexecstack" and "-z noexecstack" 2644DISABLE_RELRO=true # disable "-z relro" and "-z now" 2645</pre> 2646 </li> 2647 </ol> 2648 <p>See {@code docs/ANDROID-MK.html} for more details.</p> 2649 </li> 2650 </ul> 2651 </li> 2652 2653 <li>Added branding for Android executables with the {@code .note.ABI-tag} section (in 2654{@code crtbegin_static/dynamic.o}) so that debugging tools can act accordingly. The structure 2655member and values are defined as follows: 2656<pre> 2657static const struct { 2658 int32_t namesz; /* = 4, sizeof ("GNU") */ 2659 int32_t descsz; /* = 6 * sizeof(int32_t) */ 2660 int32_t type; /* = 1 */ 2661 char name[sizeof "GNU"]; /* = "GNU" */ 2662 int32_t os; /* = 0 */ 2663 int32_t major; /* = 2 */ 2664 int32_t minor; /* = 6 */ 2665 int32_t teeny; /* = 15 */ 2666 int32_t os_variant; /* = 1 */ 2667 int32_t android_api; /* = 3, 4, 5, 8, 9, 14 */ 2668}</pre> 2669 </li> 2670 </ul> 2671 </dd> 2672 </dl> 2673 2674 <dl> 2675 <dt>Other bug fixes:</dt> 2676 2677 <dd> 2678 <ul> 2679 <li>Fixed {@code mips-linux-gnu} relocation truncated to fit {@code R_MIPS_TLS_LDM} issue. 2680 (<a href="http://sourceware.org/bugzilla/show_bug.cgi?id=12637">more info</a>)</li> 2681 <li>Fixed {@code ld} tool segfaults when using {@code --gc-sections}. 2682 (<a href="http://sourceware.org/bugzilla/show_bug.cgi?id=12845">more info</a>) 2683 </li> 2684 <li>Fixed MIPS {@code GOT_PAGE} counting issue. 2685 (<a href="http://sourceware.org/ml/binutils/2011-05/msg00198.html">more info</a>)</li> 2686 <li>Fixed follow warning symbol link for {@code mips_elf_count_got_symbols}.</li> 2687 <li>Fixed follow warning symbol link for {@code mips_elf_allocate_lazy_stub}.</li> 2688 <li>Moved MIPS {@code .dynamic} to the data segment, so that it is writable.</li> 2689 <li>Replaced hard-coded values for symbols with correct segment sizes for MIPS.</li> 2690 <li>Removed the {@code -mno-shared} option from the defaults in the MIPS toolchain. 2691The default for Android toolchain is {@code -fPIC} (or {@code -fpic} if supported). If you do not 2692explicitly specify {@code -mshared}, {@code -fpic}, {@code -fPIC}, {@code -fpie}, or {@code -fPIE}, 2693the MIPS compiler adds {@code -mno-shared} that turns off PIC. Fixed compiler not to add 2694{@code -mno-shared} in this case.</li> 2695 <li>Fixed wrong package names in samples {@code hello-jni} and {@code two-libs} so that 2696the {@code tests} project underneath it can compile.</li> 2697 </ul> 2698 </dd> 2699 </dl> 2700 2701 <dl> 2702 <dt>Other Changes:</dt> 2703 2704 <dd> 2705 <ul> 2706 <li>Changed locations of binaries: 2707 <ul> 2708 <li>Moved {@code gdbserver} from 2709{@code toolchain/<arch-os-ver>/prebuilt/gdbserver} to 2710{@code prebuilt/android-<arch>/gdbserver/gdbserver}.</li> 2711 <li>Renamed x86 toolchain prefix from {@code i686-android-linux-} to 2712{@code i686-linux-android-}.</li> 2713 <li>Moved {@code sources/cxx-stl/gnu-libstdc++/include} and {@code lib} to 2714{@code sources/cxx-stl/gnu-libstdc++/4.6} when compiled with GCC 4.6, or 2715{@code sources/cxx-stl/gnu-libstdc++/4.4.3} when compiled with GCC 4.4.3.</li> 2716 <li>Moved {@code libbfd.a} and {@code libintl.a} from {@code lib/} to {@code 2717lib32/}.</li> 2718 </ul> 2719 </li> 2720 2721 <li>Added and improved various scripts in the rebuild and test NDK toolchain: 2722 <ul> 2723 <li>Added {@code build-mingw64-toolchain.sh} to generate a new Linux-hosted toolchain 2724that generates Win32 and Win64 executables.</li> 2725 <li>Improved speed of {@code download-toolchain-sources.sh} by using the {@code 2726clone} command and only using {@code checkout} for the directories that are needed to build the NDK 2727toolchain binaries.</li> 2728 <li>Added {@code build-host-gcc.sh} and {@code build-host-gdb.sh} scripts.</li> 2729 <li>Added {@code tests/check-release.sh} to check the content of a given NDK 2730installation directory, or an existing NDK package.</li> 2731 <li>Rewrote the {@code tests/standalone/run.sh} standalone tests .</li> 2732 </ul> 2733 </li> 2734 <li>Removed {@code if_dl.h} header from all platforms and architectures. The {@code 2735AF_LINK} and {@code sockaddr_dl} elements it describes are specific to BSD (i.e., they don't exist 2736in Linux).</li> 2737 </ul> 2738 </dd> 2739 </dl> 2740 2741 </div> 2742</div> 2743 2744<div class="toggle-content closed"> 2745 <p><a href="#" onclick="return toggleContent(this)"> 2746 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 2747 alt="">Android NDK, Revision 8</a> <em>(May 2012)</em> 2748 </p> 2749 2750 <div class="toggle-content-toggleme"> 2751 <p>This release of the NDK includes support for MIPS ABI and a few additional fixes.</p> 2752 2753 <dl> 2754 <dt>New features:</dt> 2755 2756 <dd> 2757 <ul> 2758 <li>Added support for the MIPS ABI, which allows you to generate machine code that runs on 2759 compatible MIPS-based Android devices. Major features for MIPS include MIPS-specific 2760 toolchains, system headers, libraries and debugging support. For more details regarding 2761 MIPS support, see {@code docs/CPU-MIPS.html} in the NDK package. 2762 2763 <p>By default, code is generated for ARM-based devices. You can add {@code mips} to 2764 your {@code APP_ABI} definition in your {@code Application.mk} file to build 2765 for MIPS platforms. For example, the following line instructs {@code ndk-build} 2766 to build your code for three distinct ABIs:</p> 2767 2768 <pre>APP_ABI := armeabi armeabi-v7a <strong>mips</strong></pre> 2769 2770 <p>Unless you rely on architecture-specific assembly sources, such as ARM assembly 2771 code, you should not need to touch your {@code Android.mk} files to build MIPS 2772 machine code.</p> 2773 </li> 2774 2775 <li>You can build a standalone MIPS toolchain using the {@code --arch=mips} 2776 option when calling <code>make-standalone-toolchain.sh</code>. See 2777 {@code docs/STANDALONE-TOOLCHAIN.html} for more details. 2778 </li> 2779 </ul> 2780 2781 <p class="note"><strong>Note:</strong> To ensure that your applications are available 2782to users only if their devices are capable of running them, Google Play filters applications based 2783on the instruction set information included in your application ? no action is needed on your part 2784to enable the filtering. Additionally, the Android system itself also checks your application at 2785install time and allows the installation to continue only if the application provides a library that 2786is compiled for the device's CPU architecture.</p> 2787 </dd> 2788 2789 <dt>Important bug fixes:</dt> 2790 2791 <dd> 2792 <ul> 2793 <li>Fixed a typo in GAbi++ implementation where the result of {@code 2794 dynamic_cast<D>(b)} of base class object {@code b} to derived class {@code D} is 2795 incorrectly adjusted in the opposite direction from the base class. 2796 (<a href="http://b.android.com/28721">Issue 28721</a>) 2797 </li> 2798 <li>Fixed an issue in which {@code make-standalone-toolchain.sh} fails to copy 2799 {@code libsupc++.*}.</li> 2800 </ul> 2801 </dd> 2802 2803 <dt>Other bug fixes:</dt> 2804 2805 <dd> 2806 <ul> 2807 <li>Fixed {@code ndk-build.cmd} to ensure that {@code ndk-build.cmd} works correctly even 2808 if the user has redefined the {@code SHELL} environment variable, which may be changed 2809 when installing a variety of development tools in Windows environments. 2810 </li> 2811 </ul> 2812 </dd> 2813 </dl> 2814 </div> 2815</div> 2816 2817<div class="toggle-content closed"> 2818 <p><a href="#" onclick="return toggleContent(this)"> 2819 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 2820 alt="">Android NDK, Revision 7c</a> <em>(April 2012)</em> 2821 </p> 2822 2823 <div class="toggle-content-toggleme"> 2824 <p>This release of the NDK includes an important fix for Tegra2-based devices, and a few 2825additional fixes and improvements:</p> 2826 2827 <dl> 2828 <dt>Important bug fixes:</dt> 2829 2830 <dd> 2831 <ul> 2832 <li>Fixed GNU STL armeabi-v7a binaries to not crash on non-NEON 2833 devices. The files provided with NDK r7b were not configured properly, 2834 resulting in crashes on Tegra2-based devices and others when trying to use 2835 certain floating-point functions (e.g., {@code cosf}, {@code sinf}, {@code expf}).</li> 2836 </ul> 2837 </dd> 2838 2839 <dt>Important changes:</dt> 2840 2841 <dd> 2842 <ul> 2843 <li>Added support for custom output directories through the {@code NDK_OUT} 2844 environment variable. When defined, this variable is used to store all 2845 intermediate generated files, instead of {@code $PROJECT_PATH/obj}. The variable is 2846 also recognized by {@code ndk-gdb}. </li> 2847 <li>Added support for building modules with hundreds or even thousands of source 2848 files by defining {@code LOCAL_SHORT_COMMANDS} to {@code true} in your {@code Android.mk}. 2849 <p>This change forces the NDK build system to put most linker or archiver options 2850 into list files, as a work-around for command-line length limitations. 2851 See {@code docs/ANDROID-MK.html} for details.</p> 2852 </li> 2853 </ul> 2854 </dd> 2855 2856 <dt>Other bug fixes:</dt> 2857 2858 <dd> 2859 <ul> 2860 <li>Fixed {@code android_getCpuCount()} implementation in the {@code cpufeatures} 2861helper library. On certain devices, where cores are enabled dynamically by the system, the previous 2862implementation would report the total number of <em>active</em> cores the first time the function 2863was called, rather than the total number of <em>physically available</em> cores.</li> 2864 </ul> 2865 </dd> 2866 </dl> 2867 </div> 2868</div> 2869 2870 2871<div class="toggle-content closed"> 2872 <p><a href="#" onclick="return toggleContent(this)"> 2873 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 2874 alt="">Android NDK, Revision 7b</a> <em>(February 2012)</em> 2875 </p> 2876 2877 <div class="toggle-content-toggleme"> 2878 <p>This release of the NDK includes fixes for native Windows builds, Cygwin and many other 2879 improvements:</p> 2880 2881 <dl> 2882 <dt>Important bug fixes:</dt> 2883 2884 <dd> 2885 <ul> 2886 <li>Updated {@code sys/atomics.h} to avoid correctness issues 2887 on some multi-core ARM-based devices. Rebuild your unmodified sources with this 2888 version of the NDK and this problem should be completely eliminated. 2889 For more details, read {@code docs/ANDROID-ATOMICS.html}.</li> 2890 <li>Reverted to {@code binutils} 2.19 to fix debugging issues that 2891 appeared in NDK r7 (which switched to {@code binutils} 2.20.1).</li> 2892 <li>Fixed {@code ndk-build} on 32-bit Linux. A packaging error put a 64-bit version 2893 of the {@code awk} executable under {@code prebuilt/linux-x86/bin} in NDK r7.</li> 2894 <li>Fixed native Windows build ({@code ndk-build.cmd}). Other build modes were not 2895 affected. The fixes include: 2896 <ul> 2897 <li>Removed an infinite loop / stack overflow bug that happened when trying 2898 to call {@code ndk-build.cmd} from a directory that was <em>not</em> the top of 2899 your project path (e.g., in any sub-directory of it).</li> 2900 <li>Fixed a problem where the auto-generated dependency files were ignored. This 2901 meant that updating a header didn't trigger recompilation of sources that included 2902 it.</li> 2903 <li>Fixed a problem where special characters in files or paths, other than spaces and 2904 quotes, were not correctly handled.</li> 2905 </ul> 2906 </li> 2907 <li>Fixed the standalone toolchain to generate proper binaries when using 2908 {@code -lstdc++} (i.e., linking against the GNU {@code libstdc++} C++ runtime). You 2909 should use {@code -lgnustl_shared} if you want to link against the shared library 2910 version or {@code -lstdc++} for the static version. 2911 2912 <p>See {@code docs/STANDALONE-TOOLCHAIN.html} for more details about this fix.</p> 2913 </li> 2914 <li>Fixed {@code gnustl_shared} on Cygwin. The linker complained that it couldn't find 2915 {@code libsupc++.a} even though the file was at the right location.</li> 2916 <li>Fixed Cygwin C++ link when not using any specific C++ runtime through 2917 {@code APP_STL}.</li> 2918 </ul> 2919 </dd> 2920 </dl> 2921 2922 <dl> 2923 <dt>Other changes:</dt> 2924 2925 <dd> 2926 <ul> 2927 <li>When your application uses the GNU {@code libstdc++} runtime, the compiler will 2928 no longer forcibly enable exceptions and RTTI. This change results in smaller code. 2929 <p>If you need these features, you must do one of the following:</p> 2930 <ul> 2931 <li>Enable exceptions and/or RTTI explicitly in your modules or 2932 {@code Application.mk}. (recommended)</li> 2933 <li>Define {@code APP_GNUSTL_FORCE_CPP_FEATURES} to {@code 'exceptions'}, 2934 {@code 'rtti'} or both in your {@code Application.mk}. See 2935 {@code docs/APPLICATION-MK.html} for more details.</li> 2936 </ul> 2937 </li> 2938 <li>{@code ndk-gdb} now works properly when your application has private services 2939 running in independent processes. It debugs the main application process, instead of the 2940 first process listed by {@code ps}, which is usually a service process.</li> 2941 <li>Fixed a rare bug where NDK r7 would fail to honor the {@code LOCAL_ARM_MODE} value 2942 and always compile certain source files (but not all) to 32-bit instructions.</li> 2943 <li>{@code STLport}: Refresh the sources to match the Android platform version. This 2944 update fixes a few minor bugs: 2945 <ul> 2946 <li>Fixed instantiation of an incomplete type</li> 2947 <li>Fixed minor "==" versus "=" typo</li> 2948 <li>Used {@code memmove} instead of {@code memcpy} in {@code string::assign}</li> 2949 <li>Added better handling of {@code IsNANorINF}, {@code IsINF}, {@code IsNegNAN}, 2950 etc.</li> 2951 </ul> 2952 <p>For complete details, see the commit log.</p> 2953 </li> 2954 <li>{@code STLport}: Removed 5 unnecessary static initializers from the library.</li> 2955 <li>The GNU libstdc++ libraries for armeabi-v7a were mistakenly compiled for 2956 armeabi instead. This change had no impact on correctness, but using the right 2957 ABI should provide slightly better performance.</li> 2958 <li>The {@code cpu-features} helper library was updated to report three optional 2959 x86 CPU features ({@code SSSE3}, {@code MOVBE} and {@code POPCNT}). See 2960 {@code docs/CPU-FEATURES.html} for more details.</li> 2961 <li>{@code docs/NDK-BUILD.html} was updated to mention {@code NDK_APPLICATION_MK} instead 2962 of {@code NDK_APP_APPLICATION_MK} to select a custom {@code Application.mk} file.</li> 2963 <li>Cygwin: {@code ndk-build} no longer creates an empty "NUL" file in the current 2964 directory when invoked.</li> 2965 <li>Cygwin: Added better automatic dependency detection. In the previous version, it 2966 didn't work properly in the following cases: 2967 <ul> 2968 <li>When the Cygwin drive prefix was not {@code /cygdrive}.</li> 2969 <li>When using drive-less mounts, for example, when Cygwin would translate 2970 {@code /home} to {@code \\server\subdir} instead of {@code C:\Some\Dir}.</li> 2971 </ul> 2972 </li> 2973 <li>Cygwin: {@code ndk-build} does not try to use the native Windows tools under 2974 {@code $NDK/prebuilt/windows/bin} with certain versions of Cygwin and/or GNU Make.</li> 2975 </ul> 2976 </dd> 2977 </dl> 2978 </div> 2979</div> 2980 2981 2982<div class="toggle-content closed"> 2983 <p><a href="#" onclick="return toggleContent(this)"> 2984 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 2985 alt="">Android NDK, Revision 7</a> <em>(November 2011)</em> 2986 </p> 2987 2988 <div class="toggle-content-toggleme"> 2989 <p>This release of the NDK includes new features to support the Android 4.0 platform as well 2990 as many other additions and improvements:</p> 2991 2992 <dl> 2993 <dt>New features</dt> 2994 2995 <dd> 2996 <ul> 2997 <li>Added official NDK APIs for Android 4.0 (API level 14), which adds the following 2998 native features to the platform: 2999 3000 <ul> 3001 <li>Added native multimedia API based on the Khronos Group OpenMAX AL? 1.0.1 3002 standard. The new <code><OMXAL/OpenMAXAL.h></code> and 3003 <code><OMXAL/OpenMAXAL_Android.h></code> headers allow applications targeting 3004 API level 14 to perform multimedia output directly from native code by using a new 3005 Android-specific buffer queue interface. For more details, see 3006 <code>docs/openmaxal/index.html</code> and <a href= 3007 "http://www.khronos.org/openmax/">http://www.khronos.org/openmax/</a>.</li> 3008 3009 <li>Updated the native audio API based on the Khronos Group OpenSL ES 1.0.1? 3010 standard. With API Level 14, you can now decode compressed audio (e.g. MP3, AAC, 3011 Vorbis) to PCM. For more details, see <code>docs/opensles/index.html</code> and 3012 <a href= 3013 "http://www.khronos.org/opensles">http://www.khronos.org/opensles/</a>.</li> 3014 </ul> 3015 </li> 3016 3017 <li>Added CCache support. To speed up large rebuilds, define the 3018 <code>NDK_CCACHE</code> environment variable to <code>ccache</code> (or the path to 3019 your <code>ccache</code> binary). When declared, the NDK build system automatically 3020 uses CCache when compiling any source file. For example: 3021 <pre> 3022export NDK_CCACHE=ccache 3023</pre> 3024 <p class="note"><strong>Note:</strong> CCache is not included in the NDK release 3025 so you must have it installed prior to using it. For more information about CCache, see 3026 <a href="http://ccache.samba.org">http://ccache.samba.org</a>.</p> 3027 </li> 3028 3029 <li>Added support for setting <code>APP_ABI</code> to <code>all</code> to indicate that 3030 you want to build your NDK modules for all the ABIs supported by your given NDK 3031 release. This means that either one of the following two lines in your 3032 <code>Application.mk</code> are equivalent with this release: 3033 <pre> 3034APP_ABI := all 3035APP_ABI := armeabi armeabi-v7a x86 3036</pre> 3037 3038 <p>This also works if you define <code>APP_ABI</code> when calling 3039 <code>ndk-build</code> from the command-line, which is a quick way to check that your 3040 project builds for all supported ABIs without changing the project's 3041 <code>Application.mk file</code>. For example:</p> 3042 <pre> 3043ndk-build APP_ABI=all 3044</pre> 3045 </li> 3046 3047 <li>Added a <code>LOCAL_CPP_FEATURES</code> variable in <code>Android.mk</code> that 3048 allows you to declare which C++ features (RTTI or Exceptions) your module uses. This 3049 ensures that the final linking works correctly if you have prebuilt modules that depend 3050 on these features. See <code>docs/ANDROID-MK.html</code> and 3051 <code>docs/CPLUSPLUS-SUPPORT.html</code> for more details.</li> 3052 3053 <li>Shortened paths to source and object files that are used in build commands. When 3054 invoking <code>$NDK/ndk-build</code> from your project path, the paths to the source, 3055 object, and binary files that are passed to the build commands are significantly 3056 shorter now, because they are passed relative to the current directory. This is useful 3057 when building projects with a lot of source files, to avoid limits on the maximum 3058 command line length supported by your host operating system. The behavior is unchanged 3059 if you invoke <code>ndk-build</code> from a sub-directory of your project tree, or if 3060 you define <code>NDK_PROJECT_PATH</code> to point to a specific directory.</li> 3061 </ul> 3062 </dd> 3063 3064 <dt>Experimental features</dt> 3065 3066 <dd> 3067 You can now build your NDK source files on Windows <em>without</em> Cygwin by calling the 3068 <code>ndk-build.cmd</code> script from the command line from your project path. The 3069 script takes exactly the same arguments as the original <code>ndk-build</code> script. 3070 The Windows NDK package comes with its own prebuilt binaries for GNU Make, Awk and other 3071 tools required by the build. You should not need to install anything else to get a 3072 working build system. 3073 3074 <p class="caution"><strong>Important:</strong> <code>ndk-gdb</code> does not work on 3075 Windows, so you still need Cygwin to debug.</p> 3076 3077 <p>This feature is still experimental, so feel free to try it and report issues on the 3078 <a href="http://b.android.com">public bug database</a> or <a href= 3079 "http://groups.google.com/group/android-ndk">public forum</a>. All samples and unit tests 3080 shipped with the NDK succesfully compile with this feature.</p> 3081 </dd> 3082 3083 <dt>Important bug fixes</dt> 3084 3085 <dd> 3086 <ul> 3087 <li>Imported shared libraries are now installed by default to the target installation 3088 location (<code>libs/<abi></code>) if <code>APP_MODULES</code> is not defined in 3089 your <code>Application.mk</code>. For example, if a top-level module <code>foo</code> 3090 imports a module <code>bar</code>, then both <code>libfoo.so</code> and 3091 <code>libbar.so</code> are copied to the install location. Previously, only 3092 <code>libfoo.so</code> was copied, unless you listed <code>bar</code> in your 3093 <code>APP_MODULES</code> too. If you define <code>APP_MODULES</code> explicitly, the 3094 behavior is unchanged.</li> 3095 3096 <li><code>ndk-gdb</code> now works correctly for activities with multiple categories in 3097 their MAIN intent filters.</li> 3098 3099 <li>Static library imports are now properly transitive. For example, if a top-level 3100 module <code>foo</code> imports static library <code>bar</code> that imports static 3101 library <code>zoo</code>, the <code>libfoo.so</code> will now be linked against both 3102 <code>libbar.a</code> and <code>libzoo.a</code>.</li> 3103 </ul> 3104 </dd> 3105 3106 <dt>Other changes</dt> 3107 3108 <dd> 3109 <ul> 3110 <li><code>docs/NATIVE-ACTIVITY.HTML</code>: Fixed typo. The minimum API level should be 3111 9, not 8 for native activities.</li> 3112 3113 <li><code>docs/STABLE-APIS.html</code>: Added missing documentation listing EGL as a 3114 supported stable API, starting from API level 9.</li> 3115 3116 <li><code>download-toolchain-sources.sh</code>: Updated to download the toolchain 3117 sources from <a href="http://android.googlesource.com">android.googlesource.com</a>, 3118 which is the new location for the AOSP servers.</li> 3119 3120 <li>Added a new C++ support runtime named <code>gabi++</code>. More details about it 3121 are available in the updated <code>docs/CPLUSPLUS-SUPPORT.html</code>.</li> 3122 3123 <li>Added a new C++ support runtime named <code>gnustl_shared</code> that corresponds 3124 to the shared library version of GNU libstdc++ v3 (GPLv3 license). See more info at 3125 <code>docs/CPLUSPLUS-SUPPORT.html</code></li> 3126 3127 <li>Added support for RTTI in the STLport C++ runtimes (no support for 3128 exceptions).</li> 3129 3130 <li>Added support for multiple file extensions in <code>LOCAL_CPP_EXTENSION</code>. For 3131 example, to compile both <code>foo.cpp</code> and <code>bar.cxx</code> as C++ sources, 3132 declare the following: 3133 <pre> 3134LOCAL_CPP_EXTENSION := .cpp .cxx 3135</pre> 3136 </li> 3137 3138 <li>Removed many unwanted exported symbols from the link-time shared system libraries 3139 provided by the NDK. This ensures that code generated with the standalone toolchain 3140 doesn't risk to accidentally depend on a non-stable ABI symbol (e.g. any libgcc.a 3141 symbol that changes each time the toolchain used to build the platform is changed)</li> 3142 3143 <li>Refreshed the EGL and OpenGLES Khronos headers to support more extensions. Note 3144 that this does <em>not</em> change the NDK ABIs for the corresponding libraries, 3145 because each extension must be probed at runtime by the client application. 3146 3147 <p>The extensions that are available depend on your actual device and GPU drivers, 3148 not the platform version the device runs on. The header changes simply add new 3149 constants and types to make it easier to use the extensions when they have been 3150 probed with <code>eglGetProcAddress()</code> or <code>glGetProcAddress()</code>. The 3151 following list describes the newly supported extensions:</p> 3152 3153 <dl> 3154 <dt>GLES 1.x</dt> 3155 3156 <dd> 3157 <ul> 3158 <li><code>GL_OES_vertex_array_object</code></li> 3159 3160 <li><code>GL_OES_EGL_image_external</code></li> 3161 3162 <li><code>GL_APPLE_texture_2D_limited_npot</code></li> 3163 3164 <li><code>GL_EXT_blend_minmax</code></li> 3165 3166 <li><code>GL_EXT_discard_framebuffer</code></li> 3167 3168 <li><code>GL_EXT_multi_draw_arrays</code></li> 3169 3170 <li><code>GL_EXT_read_format_bgra</code></li> 3171 3172 <li><code>GL_EXT_texture_filter_anisotropic</code></li> 3173 3174 <li><code>GL_EXT_texture_format_BGRA8888</code></li> 3175 3176 <li><code>GL_EXT_texture_lod_bias</code></li> 3177 3178 <li><code>GL_IMG_read_format</code></li> 3179 3180 <li><code>GL_IMG_texture_compression_pvrtc</code></li> 3181 3182 <li><code>GL_IMG_texture_env_enhanced_fixed_function</code></li> 3183 3184 <li><code>GL_IMG_user_clip_plane</code></li> 3185 3186 <li><code>GL_IMG_multisampled_render_to_texture</code></li> 3187 3188 <li><code>GL_NV_fence</code></li> 3189 3190 <li><code>GL_QCOM_driver_control</code></li> 3191 3192 <li><code>GL_QCOM_extended_get</code></li> 3193 3194 <li><code>GL_QCOM_extended_get2</code></li> 3195 3196 <li><code>GL_QCOM_perfmon_global_mode</code></li> 3197 3198 <li><code>GL_QCOM_writeonly_rendering</code></li> 3199 3200 <li><code>GL_QCOM_tiled_rendering</code></li> 3201 </ul> 3202 </dd> 3203 3204 <dt>GLES 2.0</dt> 3205 3206 <dd> 3207 <ul> 3208 <li><code>GL_OES_element_index_uint</code></li> 3209 3210 <li><code>GL_OES_get_program_binary</code></li> 3211 3212 <li><code>GL_OES_mapbuffer</code></li> 3213 3214 <li><code>GL_OES_packed_depth_stencil</code></li> 3215 3216 <li><code>GL_OES_texture_3D</code></li> 3217 3218 <li><code>GL_OES_texture_float</code></li> 3219 3220 <li><code>GL_OES_texture_float_linear</code></li> 3221 3222 <li><code>GL_OES_texture_half_float_linear</code></li> 3223 3224 <li><code>GL_OES_texture_npot</code></li> 3225 3226 <li><code>GL_OES_vertex_array_object</code></li> 3227 3228 <li><code>GL_OES_EGL_image_external</code></li> 3229 3230 <li><code>GL_AMD_program_binary_Z400</code></li> 3231 3232 <li><code>GL_EXT_blend_minmax</code></li> 3233 3234 <li><code>GL_EXT_discard_framebuffer</code></li> 3235 3236 <li><code>GL_EXT_multi_draw_arrays</code></li> 3237 3238 <li><code>GL_EXT_read_format_bgra</code></li> 3239 3240 <li><code>GL_EXT_texture_format_BGRA8888</code></li> 3241 3242 <li><code>GL_EXT_texture_compression_dxt1</code></li> 3243 3244 <li><code>GL_IMG_program_binary</code></li> 3245 3246 <li><code>GL_IMG_read_format</code></li> 3247 3248 <li><code>GL_IMG_shader_binary</code></li> 3249 3250 <li><code>GL_IMG_texture_compression_pvrtc</code></li> 3251 3252 <li><code>GL_IMG_multisampled_render_to_texture</code></li> 3253 3254 <li><code>GL_NV_coverage_sample</code></li> 3255 3256 <li><code>GL_NV_depth_nonlinear</code></li> 3257 3258 <li><code>GL_QCOM_extended_get</code></li> 3259 3260 <li><code>GL_QCOM_extended_get2</code></li> 3261 3262 <li><code>GL_QCOM_writeonly_rendering</code></li> 3263 3264 <li><code>GL_QCOM_tiled_rendering</code></li> 3265 </ul> 3266 </dd> 3267 3268 <dt>EGL</dt> 3269 3270 <dd> 3271 <ul> 3272 <li><code>EGL_ANDROID_recordable</code></li> 3273 3274 <li><code>EGL_NV_system_time</code></li> 3275 </ul> 3276 </dd> 3277 </dl> 3278 </li> 3279 </ul> 3280 </dd> 3281 </dl> 3282 </div> 3283</div> 3284 3285 3286<div class="toggle-content closed"> 3287 <p><a href="#" onclick="return toggleContent(this)"> 3288 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 3289 alt="">Android NDK, Revision 6b</a> <em>(August 2011)</em> 3290 </p> 3291 3292 <div class="toggle-content-toggleme"> 3293 <p>This release of the NDK does not include any new features compared to r6. The r6b release 3294 addresses the following issues in the r6 release:</p> 3295 <dl> 3296 <dt>Important bug fixes</dt> 3297 <dd> 3298 <ul> 3299 <li>Fixed the build when <code>APP_ABI="armeabi x86"</code> is used for 3300 multi-architecture builds.</li> 3301 <li>Fixed the location of prebuilt STLport binaries in the NDK release package. 3302 A bug in the packaging script placed them in the wrong location.</li> 3303 <li>Fixed <code>atexit()</code> usage in shared libraries with the x86standalone 3304 toolchain.</li> 3305 <li>Fixed <code>make-standalone-toolchain.sh --arch=x86</code>. It used to fail 3306 to copy the proper GNU libstdc++ binaries to the right location.</li> 3307 <li>Fixed the standalone toolchain linker warnings about missing the definition and 3308 size for the <code>__dso_handle</code> symbol (ARM only).</li> 3309 <li>Fixed the inclusion order of <code>$(SYSROOT)/usr/include</code> for x86 builds. 3310 See the <a href="http://b.android.com/18540">bug</a> for 3311 more information.</li> 3312 <li>Fixed the definitions of <code>ptrdiff_t</code> and <code>size_t</code> in 3313 x86-specific systems when they are used with the x86 standalone toolchain.</li> 3314 </ul> 3315 </dd> 3316 </dl> 3317 </div> 3318</div> 3319 3320<div class="toggle-content closed"> 3321 <p><a href="#" onclick="return toggleContent(this)"> 3322 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 3323 alt="">Android NDK, Revision 6</a> <em>(July 2011)</em> 3324 </p> 3325 3326 <div class="toggle-content-toggleme"> 3327 <p>This release of the NDK includes support for the x86 ABI and other minor changes. 3328 For detailed information describing the changes in this release, read the 3329 <code>CHANGES.HTML</code> document included in the NDK package. 3330 </p> 3331 <dl> 3332 <dt>General notes:</dt> 3333 <dd> 3334 <ul> 3335 <li>Adds support for the x86 ABI, which allows you to generate machine code 3336 that runs on compatible x86-based Android devices. Major features for x86 3337 include x86-specific toolchains, system headers, libraries and 3338 debugging support. For all of the details regarding x86 support, 3339 see <code>docs/CPU-X86.html</code> in the NDK package. 3340 3341 <p>By default, code is generated for ARM-based devices, but you can add x86 to your 3342 <code>APP_ABI</code> definition in your <code>Application.mk</code> file to build 3343 for x86 platforms. For example, the following line instructs <code>ndk-build</code> 3344 to build your code for three distinct ABIs:</p> 3345 3346 <pre>APP_ABI := armeabi armeabi-v7a x86</pre> 3347 3348 <p>Unless you rely on ARM-based assembly sources, you shouldn't need to touch 3349 your <code>Android.mk</code> files to build x86 machine code.</p> 3350 3351 </li> 3352 3353 <li>You can build a standalone x86 toolchain using the 3354<code>--toolchain=x86-4.4.3</code> 3355 option when calling <code>make-standalone-toolchain.sh</code>. See 3356 <code>docs/STANDALONE-TOOLCHAIN.html</code> for more details. 3357 </li> 3358 <li>The new <code>ndk-stack</code> tool lets you translate stack traces in 3359 <code>logcat</code> that are generated by native code. The tool translates 3360 instruction addresses into a readable format that contains things such 3361 as the function, source file, and line number corresponding to each stack frame. 3362 For more information and a usage example, see <code>docs/NDK-STACK.html</code>. 3363 </li> 3364 </ul> 3365 </dd> 3366 <dt>Other changes:</dt> 3367 <dd><code>arm-eabi-4.4.0</code>, which had been deprecated since NDK r5, has been 3368 removed from the NDK distribution.</dd> 3369 3370 </dl> 3371 </div> 3372 </div> 3373 3374<div class="toggle-content closed"> 3375 <p><a href="#" onclick="return toggleContent(this)"> 3376 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 3377 alt="">Android NDK, Revision 5c</a> <em>(June 2011)</em> 3378 </p> 3379 3380 <div class="toggle-content-toggleme"> 3381 <p>This release of the NDK does not include any new features compared to r5b. The r5c release 3382 addresses the following problems in the r5b release:</p> 3383 <dl> 3384 <dt>Important bug fixes:</dt> 3385 <dd> 3386 <ul> 3387 <li><code>ndk-build</code>: Fixed a rare bug that appeared when trying to perform parallel 3388 builds of debuggable projects.</li> 3389 3390 <li>Fixed a typo that prevented <code>LOCAL_WHOLE_STATIC_LIBRARIES</code> to work 3391 correctly with the new toolchain and added documentation for this in 3392 <code>docs/ANDROID-MK.html</code>.</li> 3393 3394 <li>Fixed a bug where code linked against <code>gnustl_static</code> crashed when run on 3395 platform releases older than API level 8 (Android 2.2).</li> 3396 3397 <li><code>ndk-gdb</code>: Fixed a bug that caused a segmentation fault when debugging 3398Android 3.0 3399 or newer devices.</li> 3400 3401 <li><code><android/input.h></code>: Two functions that were introduced in API level 3402 9 (Android 2.3) were incorrect and are fixed. While this breaks the source API, the 3403 binary interface to the system is unchanged. The incorrect functions were missing a 3404 <code>history_index</code> parameter, and the correct definitions are shown below: 3405<pre> 3406float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, 3407 size_t pointer_index, 3408 size_t history_index); 3409 3410float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, 3411 size_t pointer_index, 3412 size_t history_index); 3413</pre> 3414 </li> 3415 3416 <li>Updated the C library ARM binary for API level 9 (Android 2.3) to correctly expose at 3417 link time new functions that were added in that API level (for example, 3418 <code>pthread_rwlock_init</code>).</li> 3419 3420 </ul> 3421 </dd> 3422 3423 <dt>Minor improvements and fixes:</dt> 3424 <dd> 3425 <ul> 3426 <li>Object files are now always linked in the order they appear in 3427 <code>LOCAL_SRC_FILES</code>. This was not the case previously because the files were 3428 grouped by source extensions instead.</li> 3429 3430 <li>When <code>import-module</code> fails, it now prints the list of directories that 3431 were searched. This is useful to check that the <code>NDK_MODULE_PATH</code> definition 3432 used by the build system is correct.</li> 3433 3434 <li>When <code>import-module</code> succeeds, it now prints the directory where the 3435 module was found to the log (visible with <code>NDK_LOG=1</code>).</li> 3436 3437 <li>Increased the build speed of debuggable applications when there is a very large number 3438 of include directories in the project.</li> 3439 3440 <li><code>ndk-gdb</code>: Better detection of <code>adb shell</code> failures and improved 3441 error messages.</li> 3442 3443 <li><code><pthread.h></code>: Fixed the definition of 3444 <code>PTHREAD_RWLOCK_INITIALIZER</code> for API level 9 (Android 2.3) and higher.</li> 3445 3446 <li>Fixed an issue where a module could import itself, resulting in an infinite loop in 3447 GNU Make.</li> 3448 3449 <li>Fixed a bug that caused the build to fail if <code>LOCAL_ARM_NEON</code> was set to 3450 true (typo in <code>build/core/build-binary.mk</code>).</li> 3451 3452 <li>Fixed a bug that prevented the compilation of <code>.s</code> assembly files 3453 (<code>.S</code> files were okay).</li> 3454 </ul> 3455 </dd> 3456 </dl> 3457 </div> 3458</div> 3459 3460<div class="toggle-content closed"> 3461 <p><a href="#" onclick="return toggleContent(this)"> 3462 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 3463 alt="">Android NDK, Revision 5b</a> <em>(January 2011)</em> 3464 </p> 3465 3466 <div class="toggle-content-toggleme"> 3467 <p>This release of the NDK does not include any new features compared to r5. The r5b release 3468addresses the 3469 following problems in the r5 release: 3470 </p> 3471 <ul> 3472 <li>The r5 binaries required glibc 2.11, but the r5b binaries are generated with a special 3473 toolchain that targets glibc 2.7 or higher instead. The Linux toolchain binaries now run on 3474Ubuntu 8.04 or higher. </li> 3475 <li>Fixes a compiler bug in the arm-linux-androideabi-4.4.3 toolchain. 3476 The previous binary generated invalid thumb instruction sequences when 3477 dealing with signed chars.</li> 3478 <li>Adds missing documentation for the 3479 "gnustl_static" value for APP_STL, that allows you to link against 3480 a static library version of GNU libstdc++. </li> the 3481 <li>Fixed the following <code>ndk-build</code> issues: 3482 <ul> 3483 <li>A bug that created inconsistent dependency files when a 3484 compilation error occured on Windows. This prevented a proper build after 3485 the error was fixed in the source code.</li> 3486 <li>A Cygwin-specific bug where using very short paths for 3487 the Android NDK installation or the project path led to the 3488 generation of invalid dependency files. This made incremental builds 3489 impossible.</li> 3490 <li>A typo that prevented the cpufeatures library from working correctly 3491 with the new NDK toolchain.</li> 3492 <li>Builds in Cygwin are faster by avoiding calls to <code>cygpath -m</code> 3493 from GNU Make for every source or object file, which caused problems 3494 with very large source trees. In case this doesn't work properly, define 3495<code>NDK_USE_CYGPATH=1</code> in your 3496 environment to use <code>cygpath -m</code> again.</li> 3497 <li>The Cygwin installation now notifies the user of invalid installation paths that 3498contain spaces. Previously, an invalid path 3499 would output an error that complained about an incorrect version of GNU Make, even if the 3500right one was installed. 3501 </ul> 3502 </li> 3503 <li>Fixed a typo that prevented the <code>NDK_MODULE_PATH</code> environment variable from 3504working properly when 3505 it contained multiple directories separated with a colon. </li> 3506 <li>The <code>prebuilt-common.sh</code> script contains fixes to check the compiler for 64-bit 3507 generated machine code, instead of relying on the host tag, which 3508 allows the 32-bit toolchain to rebuild properly on Snow Leopard. The toolchain rebuild scripts 3509now also support 3510 using a 32-bit host toolchain.</li> 3511 <li>A missing declaration for <code>INET_ADDRSTRLEN</code> was added to 3512<code><netinet/in.h></code>.</li> 3513 <li>Missing declarations for <code>IN6_IS_ADDR_MC_NODELOCAL</code> and 3514<code>IN6_IS_ADDR_MC_GLOBAL</code> were added to <code><netinet/in6.h></code>.</li> 3515 <li>'asm' was replaced with '__asm__' in <code><asm/byteorder.h></code> to allow 3516compilation with <code>-std=c99</code>.</li> 3517 </ul> 3518 </div> 3519 </div> 3520 3521<div class="toggle-content closed"> 3522 <p><a href="#" onclick="return toggleContent(this)"> 3523 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 3524 alt="">Android NDK, Revision 5</a> <em>(December 2010)</em> 3525 </p> 3526 3527 <div class="toggle-content-toggleme"> 3528 <p>This release of the NDK includes many new APIs, most of which are introduced to 3529 support the development of games and similar applications that make extensive use 3530 of native code. Using the APIs, developers have direct native access to events, audio, 3531 graphics and window management, assets, and storage. Developers can also implement the 3532 Android application lifecycle in native code with help from the new 3533 {@link android.app.NativeActivity} class. For detailed information describing the changes 3534in this 3535 release, read the <code>CHANGES.HTML</code> document included in the downloaded NDK 3536package. 3537 </p> 3538 <dl> 3539 <dt>General notes:</dt> 3540 <dd> 3541 <ul> 3542 <li>Adds support for native activities, which allows you to implement the 3543 Android application lifecycle in native code.</li> 3544 3545 <li>Adds native support for the following: 3546 3547 <ul> 3548 3549 <li>Input subsystem (such as the keyboard and touch screen)</li> 3550 3551 <li>Access to sensor data (accelerometer, compass, gyroscope, etc).</li> 3552 3553 <li>Event loop APIs to wait for things such as input and sensor events.</li> 3554 3555 <li>Window and surface subsystem</li> 3556 3557 <li>Audio APIs based on the OpenSL ES standard that support playback and recording 3558 as well as control over platform audio effects</li> 3559 3560 <li>Access to assets packaged in an <code>.apk</code> file.</li> 3561 3562 </ul> 3563 </li> 3564 3565 <li>Includes a new toolchain (based on GCC 4.4.3), which generates better code, and can 3566also now 3567 be used as a standalone cross-compiler, for people who want to build their stuff with 3568 <code>./configure && make</code>. See 3569 docs/STANDALONE-TOOLCHAIN.html for the details. The binaries for GCC 4.4.0 are still 3570provided, 3571 but the 4.2.1 binaries were removed.</li> 3572 3573 <li>Adds support for prebuilt static and shared libraries (docs/PREBUILTS.html) and 3574module 3575 exports and imports to make sharing and reuse of third-party modules much easier 3576 (docs/IMPORT-MODULE.html explains why).</li> 3577 3578 <li>Provides a default C++ STL implementation (based on STLport) as a helper module. It 3579can be used either 3580 as a static or shared library (details and usage examples are in 3581sources/android/stlport/README). Prebuilt 3582 binaries for STLport (static or shared) and GNU libstdc++ (static only) are also 3583provided if you choose to 3584 compile against those libraries instead of the default C++ STL implementation. 3585 C++ Exceptions and RTTI are not supported in the default STL implementation. For more 3586information, see 3587 docs/CPLUSPLUS-SUPPORT.HTML.</li> 3588 3589 <li>Includes improvements to the <code>cpufeatures</code> helper library that improves 3590reporting 3591 of the CPU type (some devices previously reported ARMv7 CPU when the device really was 3592an ARMv6). We 3593 recommend developers that use this library to rebuild their applications then 3594 upload to Google Play to benefit from the improvements.</li> 3595 3596 <li>Adds an EGL library that lets you create and manage OpenGL ES textures and 3597 services.</li> 3598 3599 <li>Adds new sample applications, <code>native-plasma</code> and 3600<code>native-activity</code>, 3601 to demonstrate how to write a native activity.</li> 3602 3603 <li>Includes many bugfixes and other small improvements; see docs/CHANGES.html for a 3604more 3605 detailed list of changes.</li> 3606 </ul> 3607 </dd> 3608 </dl> 3609 </div> 3610 </div> 3611 3612<div class="toggle-content closed"> 3613 <p><a href="#" onclick="return toggleContent(this)"> 3614 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 3615 alt="">Android NDK, Revision 4b</a> <em>(June 2010)</em> 3616 </p> 3617 3618 <div class="toggle-content-toggleme"> 3619 <dl> 3620 <dt>NDK r4b notes:</dt> 3621 3622 <dd> 3623 <p>Includes fixes for several issues in the NDK build and debugging scripts — if 3624 you are using NDK r4, we recommend downloading the NDK r4b build. For detailed 3625 information describing the changes in this release, read the CHANGES.TXT document 3626 included in the downloaded NDK package.</p> 3627 </dd> 3628 </dl> 3629 3630 <dl> 3631 <dt>General notes:</dt> 3632 3633 <dd> 3634 <ul> 3635 <li>Provides a simplified build system through the new <code>ndk-build</code> build 3636 command.</li> 3637 3638 <li>Adds support for easy native debugging of generated machine code on production 3639 devices through the new <code>ndk-gdb</code> command.</li> 3640 3641 <li>Adds a new Android-specific ABI for ARM-based CPU architectures, 3642 <code>armeabi-v7a</code>. The new ABI extends the existing <code>armeabi</code> ABI to 3643 include these CPU instruction set extensions: 3644 3645 <ul> 3646 <li>Thumb-2 instructions</li> 3647 3648 <li>VFP hardware FPU instructions (VFPv3-D16)</li> 3649 3650 <li>Optional support for ARM Advanced SIMD (NEON) GCC intrinsics and VFPv3-D32. 3651 Supported by devices such as Verizon Droid by Motorola, Google Nexus One, and 3652 others.</li> 3653 </ul> 3654 </li> 3655 3656 <li>Adds a new <code>cpufeatures</code> static library (with sources) that lets your 3657 app detect the host device's CPU features at runtime. Specifically, applications can 3658 check for ARMv7-A support, as well as VFPv3-D32 and NEON support, then provide separate 3659 code paths as needed.</li> 3660 3661 <li>Adds a sample application, <code>hello-neon</code>, that illustrates how to use the 3662 <code>cpufeatures</code> library to check CPU features and then provide an optimized 3663 code path using NEON instrinsics, if supported by the CPU.</li> 3664 3665 <li>Lets you generate machine code for either or both of the instruction sets supported 3666 by the NDK. For example, you can build for both ARMv5 and ARMv7-A architectures at the 3667 same time and have everything stored to your application's final 3668 <code>.apk</code>.</li> 3669 3670 <li>To ensure that your applications are available to users only if their devices are 3671 capable of running them, Google Play now filters applications based on the 3672 instruction set information included in your application — no action is needed on 3673 your part to enable the filtering. Additionally, the Android system itself also checks 3674 your application at install time and allows the installation to continue only if the 3675 application provides a library that is compiled for the device's CPU architecture.</li> 3676 3677 <li>Adds support for Android 2.2, including a new stable API for accessing the pixel 3678 buffers of {@link android.graphics.Bitmap} objects from native code.</li> 3679 </ul> 3680 </dd> 3681 </dl> 3682 </div> 3683 </div> 3684 3685<div class="toggle-content closed"> 3686 <p><a href="#" onclick="return toggleContent(this)"> 3687 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 3688 alt="">Android NDK, Revision 3</a> <em>(March 2010)</em> 3689 </p> 3690 3691 <div class="toggle-content-toggleme"> 3692 <dl> 3693 <dt>General notes:</dt> 3694 3695 <dd> 3696 <ul> 3697 <li>Adds OpenGL ES 2.0 native library support.</li> 3698 3699 <li>Adds a sample application,<code>hello-gl2</code>, that illustrates the use of 3700 OpenGL ES 2.0 vertex and fragment shaders.</li> 3701 3702 <li>The toolchain binaries have been refreshed for this release with GCC 4.4.0, which 3703 should generate slightly more compact and efficient machine code than the previous one 3704 (4.2.1). The NDK also still provides the 4.2.1 binaries, which you can optionally use 3705 to build your machine code.</li> 3706 </ul> 3707 </dd> 3708 </dl> 3709 </div> 3710 </div> 3711 3712<div class="toggle-content closed"> 3713 <p><a href="#" onclick="return toggleContent(this)"> 3714 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 3715 alt="">Android NDK, Revision 2</a> <em>(September 2009)</em> 3716 </p> 3717 3718 <div class="toggle-content-toggleme"> 3719 <p>Originally released as "Android 1.6 NDK, Release 1".</p> 3720 3721 <dl> 3722 <dt>General notes:</dt> 3723 3724 <dd> 3725 <ul> 3726 <li>Adds OpenGL ES 1.1 native library support.</li> 3727 3728 <li>Adds a sample application, <code>san-angeles</code>, that renders 3D graphics 3729 through the native OpenGL ES APIs, while managing activity lifecycle with a {@link 3730 android.opengl.GLSurfaceView} object.</li> 3731 </ul> 3732 </dd> 3733 </dl> 3734 </div> 3735 </div> 3736 3737<div class="toggle-content closed"> 3738 <p><a href="#" onclick="return toggleContent(this)"> 3739 <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-content-img" 3740 alt="">Android NDK, Revision 1</a> <em>(June 2009)</em> 3741 </p> 3742 3743 <div class="toggle-content-toggleme"> 3744 <p>Originally released as "Android 1.5 NDK, Release 1".</p> 3745 3746 <dl> 3747 <dt>General notes:</dt> 3748 3749 <dd> 3750 <ul> 3751 <li>Includes compiler support (GCC) for ARMv5TE instructions, including Thumb-1 3752 instructions.</li> 3753 3754 <li>Includes system headers for stable native APIs, documentation, and sample 3755 applications.</li> 3756 </ul> 3757 </dd> 3758 </dl> 3759 </div> 3760 </div> 3761 3762 3763 3764 3765 3766<!-- ####################### END OF RELEASE NOTES ####################### --> 3767