- 29 Jun, 2012 2 commits
-
-
Andrew Hsieh authored
eg. ndk-gdb -s "Novo7 Basic" Change-Id: Id1c57b2c7d6af45c755fc32e320585d0abdfa58c
-
Andrew Hsieh authored
-
- 28 Jun, 2012 6 commits
-
-
Andrew Hsieh authored
Better fix than https://android-review.googlesource.com/#/c/38631 on issue http://code.google.com/p/android/issues/detail?id=32300 "make" does set ERRORLEVEL but in cmd.exe it seems that ERRORLEVEL is evaluated before the whole compound statement instead of just before it is use. Change-Id: Ia56d3dc89e4b13caabd29aeaf57c277906202fdd
-
Andrew Hsieh authored
-
Andrew Hsieh authored
It appears that "make" doesnʼt set ERRORLEVEL running ndk-build.cmd in cmd.exe shell, which causes ERRORLEVEL to remain zero even when make fails. Fixed it to return non-zero value when fails. Related issue: http://code.google.com/p/android/issues/detail?id=32300 Change-Id: Iedd6c4897035e35910ca12ef6f70730800881aba
-
Andrew Hsieh authored
-
Andrew Hsieh authored
-
Andrew Hsieh authored
*LDSCRIPT_X[SC] are no longer needed since MIPS patches of linker scripts are merged into toolchain repo. Change-Id: I2007476a8e37334b28a37d1666a16b343cb41d4b
-
- 27 Jun, 2012 3 commits
-
-
Andrew Hsieh authored
Enable gold for x86-4.6 and arm-linux-androideabi-4.6 (with binutils-2.21) on Linux and MacOSX. ld.bfd remains the default linker. User can enable gold by LOCAL_CFLAGS += -fuse-ld=gold Reasons for not enabling gold on other binutils/host/target 1) gold in binutils-2.19 (compiled with NDK GCC 4.4.3) isn't considered stable. 2) gold can't currently compile in Windows where fcntl() isn't supported. 3) gold doesn't support MIPS. Change-Id: I0aaef601fa5e521d597cf5d691b461d534d781b6
-
Andrew Hsieh authored
-
Andrew Hsieh authored
Brand Android executable with .note.ABI-tag for debugging tools to act accordingly. See crtbrand.c for structure detail. Note that it also contains API level. Also correct typo. Change-Id: Ibbd460f5af62a19aa9948f974af1345b73622059
-
- 25 Jun, 2012 1 commit
-
-
Andrew Hsieh authored
-
- 23 Jun, 2012 1 commit
-
-
Andrew Hsieh authored
-
- 22 Jun, 2012 3 commits
-
-
Ray Donnelly authored
-
Andrew Hsieh authored
This is port of the following CLs in gdb-6.6 Change-Id: I928388273c550c509f3f9305efc004b89a02da8e https://android-review.googlesource.com/#/c/14300 https://android-review.googlesource.com/#/c/14455 https://android-review.googlesource.com/#/c/14524
-
Andrew Hsieh authored
-
- 21 Jun, 2012 2 commits
-
-
Andrew Hsieh authored
-
Andrew Hsieh authored
When LOCAL_SHORT_COMMANDS is set to true, compiler options are emitted to a response file and read off using the '@file' syntax. This is to support very long commmand line w/o running over the limit of shell command buffer. Obviously target depends on the response file which shall be regenerated every time to account for potential changes in command line options. Unfortunately this triggers rebuilding of target as well even when the content of response file is identical to the last one. This CL fixes it by emitting options to a temp file, and only update the response file when contents differ Change-Id: Ia2be6df7bbc0d0816b60d552f3fde004f42ca748
-
- 20 Jun, 2012 4 commits
-
-
Andrew Hsieh authored
During toolchain construction "--with-sysroot" contains minimal set of headers and libraries not needed afterward (*1). Because GCC by default will search the path and actually find it by accident (*2), it's better to point that to local directory such as /tmp. (*1) NDK specifies --sysroot, and Android build explicitly lists all dependencies. (*2) The path may exist but contain stale headers/libs, reside at remote server and slow down GCC, or inaccessible which crash GCC! Change-Id: Ieedee2061d99b7209978130b8a95a9f450602d55
-
Andrew Hsieh authored
-
Andrew Hsieh authored
-
Andrew Hsieh authored
Add 4.6 to supported list (4.4.3 is still the default) Change to compile gdbserver only once per arch (use default toolchain) Change gdbserver package name Change-Id: Ic34640d616ffd8ceaec220ee192c589a28c654fa
-
- 13 Jun, 2012 4 commits
-
-
Andrew Hsieh authored
-
Andrew Hsieh authored
-
David 'Digit' Turner authored
Change-Id: I26eb8ecb0a3be79f0eab433d1592c348d5d44af0
-
Andrew Hsieh authored
-
- 12 Jun, 2012 4 commits
-
-
David 'Digit' Turner authored
This patch introduces a new script to rebuild the client gdb host program(s) from sources. Usage is similar to build-host-gcc.sh, for example, here's how to rebuild three versions of gdb for 6 host/target combinations: build/tools/build-host-gdb.sh --toolchain-src-dir=<path> \ --gdb-version=6.6,7.1.x,7.3.x \ --systems=linux-x86,linux-x86_64 \ See --help for all options. Notice that the binaries are placed under: prebuilt/$HOST_SYSTEM/gdb-$TARGET_ARCH-$GDB_VERSION/bin/ This is to disconnect the GDB client version from the GCC one. + Introduce the new common-build-host-funcs.sh file which contains common functions related to building host binaries for the NDK. This is a small refactoring of most of the stuff that is already in build-host-gcc.sh. All of them using the bh_ or BH_ prefix to avoid namespace collision. Note that build-host-gcc.sh is not refactored by this patch, this will be performed later. Change-Id: I6c4432bd5b7d327e6a30784f98137b59cbca10be
-
Andrew Hsieh authored
Merge "Move MIPS .dynamic to the data segement, so that it is writable. Replace hard-coded 4096 with symbols for correct segment sizes for MIPS."
-
Andrew Hsieh authored
Fixes: 1. Update TOOLCHAIN_GIT_DATE to 2012-06-10 2. More fix in ld --gc-sections (see comment in https://android-review.googlesource.com/#/c/36585/) 3. Correct typos, etc Change-Id: I6534d4345d3c036cdd6fe51863367cc3e5e5634d
-
Andrew Hsieh authored
-
- 11 Jun, 2012 2 commits
-
-
Chao-Ying Fu authored
Replace hard-coded 4096 with symbols for correct segment sizes for MIPS. Change-Id: I159e31e9d9ed42415addef6a44f0147cc90e18e4
-
David 'Digit' Turner authored
This adds a new gdb NDK-local patch to fix the mingw64 builds. Also, rename 0001-ndk-Disable-usage-logging-for-Windows.patch to match the logical order of previous ones. Change-Id: Ie010613ee883a6e8d6dba7b380fd3a38259ff881
-
- 08 Jun, 2012 3 commits
-
-
Andrew Hsieh authored
-
David 'Digit' Turner authored
This patch adds the -funwind-tables flag when building our prebuilt libraries in order to ensure that the generated code can easily be unwound at runtime. This prevents stack-traces from being incorrectly shortened, for example when using the malloc leak checked, the STLport/GABI++ operator new implementation could not be unwound, and the stack trace could not show where the code was really allocated/freed in the original source code. Change-Id: I424754c4d891416b34ba1f67099fbed62252286e
-
Andrew Hsieh authored
Change-Id: I1902f1dde5af9eceba45fb8240f363c88f783adb
-
- 07 Jun, 2012 2 commits
-
-
Andrew Hsieh authored
-
David 'Digit' Turner authored
This patch adds build-host-gcc.sh, a new script that can rebuild our GCC-based toolchain from scratch, without using the AOSP toolchain/build.git scripts. NOTE: The script does *not* rebuild GDB at all (a future patch will provide build-host-gdb.sh to do so). The script is capable of building *several* toolchains at once, minimizing what needs to be done to speed up the whole process. For example, here's how to rebuild the linux-x86 and windows toolchains for both gcc 4.4.3 and gcc 4.4.6 on all of arm,x86 and mips: build/tools/build-host-gcc.sh --toolchain-src-dir=/path/to/toolchain/src \ --systems=linux-x86,windows \ arm-linux-androideabi-4.4.3 \ arm-linux-androideabi-4.6 \ x86-4.4.3 \ x86-4.6 \ mipsel-linux-android-4.4.3 \ mipsel-linux-android-4.6 This operations takes 31 minutes on a 16-core 2.4 GHz z600, not bad for something that generates 12 different toolchains. Define NDK_CCACHE=ccache in your environment to speed-up rebuilds. On my machine, the above command takes above + The script will build for the host system by default. This means linux-x86_64 on 64-bit Ubuntu 10.10, for example. This script has been tested to build the following toolchains succesfully: arm-linux-androideabi-4.4.3 arm-linux-androideabi-4.6 x86-4.4.3 x86-4.6 mipsel-linux-android-4.4.3 mipsel-linux-android-4.6 For the following host systems: linux-x86 linux-x86_64 windows (see note below) windows-x86_64 darwin-x86 darwin-x86_64 Regarding windows, the build succeeds with the i586-mingw32msvc-gcc cross-toolchain installed on Linux, and with x86_64-w64-mingw32 which can be rebuilt from sources with build-mingw64-toolchain.sh Change-Id: I00f5d16d8db729e7efdf0e138888f761936f3c4d
-
- 06 Jun, 2012 3 commits
-
-
Andrew Hsieh authored
-
Pavel Chupin authored
Fix cross toolchain wrappers generation routine and add corresponding calls per each tool. Tested on Linux Fedora with: ./build/tools/dev-rebuild-ndk.sh Change-Id: Ib88c59d0b37d089e79f0dca76394e01a431d1e60 Signed-off-by:
Pavel Chupin <pavel.v.chupin@intel.com>
-
Andrew Hsieh authored
-