OSDN Git Service

android-x86/bionic.git
8 years agoam 0f8f9300: Merge "Add exported __popcount_tab for libgcc compat under compiler...
Josh Gao [Mon, 24 Aug 2015 20:59:46 +0000 (20:59 +0000)]
am 0f8f9300: Merge "Add exported __popcount_tab for libgcc compat under compiler-rt."

* commit '0f8f9300b84fff37088218c69cc13bdc489963eb':
  Add exported __popcount_tab for libgcc compat under compiler-rt.

8 years agoam fad8370c: Merge "Improve .clang-format."
Josh Gao [Mon, 24 Aug 2015 20:59:45 +0000 (20:59 +0000)]
am fad8370c: Merge "Improve .clang-format."

* commit 'fad8370cfbf24c8913fc898950698c3675133e23':
  Improve .clang-format.

8 years agoMerge "Add exported __popcount_tab for libgcc compat under compiler-rt."
Josh Gao [Mon, 24 Aug 2015 20:49:05 +0000 (20:49 +0000)]
Merge "Add exported __popcount_tab for libgcc compat under compiler-rt."

8 years agoMerge "Improve .clang-format."
Josh Gao [Mon, 24 Aug 2015 20:47:46 +0000 (20:47 +0000)]
Merge "Improve .clang-format."

8 years agoam a19a9348: Merge "Use compiler builtins for fabs."
Elliott Hughes [Mon, 24 Aug 2015 20:45:45 +0000 (20:45 +0000)]
am a19a9348: Merge "Use compiler builtins for fabs."

* commit 'a19a9348b7160ce967c70a9f4f38afede8dcafa9':
  Use compiler builtins for fabs.

8 years agoMerge "Use compiler builtins for fabs."
Elliott Hughes [Mon, 24 Aug 2015 20:33:15 +0000 (20:33 +0000)]
Merge "Use compiler builtins for fabs."

8 years agoUse compiler builtins for fabs.
Elliott Hughes [Fri, 21 Aug 2015 18:04:23 +0000 (11:04 -0700)]
Use compiler builtins for fabs.

Change-Id: Id3bf761d6dfc187f218b5215c53d76bddc83d50b

8 years agoAdd exported __popcount_tab for libgcc compat under compiler-rt.
Josh Gao [Fri, 21 Aug 2015 23:59:31 +0000 (16:59 -0700)]
Add exported __popcount_tab for libgcc compat under compiler-rt.

Change-Id: I8df09e8f199761edbba290d7f1ea530781054b03

8 years agoam a80ae8b8: Merge "Add a .clang-format file."
Dan Albert [Mon, 24 Aug 2015 20:02:15 +0000 (20:02 +0000)]
am a80ae8b8: Merge "Add a .clang-format file."

* commit 'a80ae8b84812d69ca63647262ab888b2f40d55a0':
  Add a .clang-format file.

8 years agoImprove .clang-format.
Josh Gao [Mon, 24 Aug 2015 19:56:48 +0000 (12:56 -0700)]
Improve .clang-format.

Change-Id: Idfd7879cc3bf1a1cdbe33262c2506fac2f07b428

8 years agoMerge "Add a .clang-format file."
Dan Albert [Mon, 24 Aug 2015 19:47:16 +0000 (19:47 +0000)]
Merge "Add a .clang-format file."

8 years agoAdd a .clang-format file.
Dan Albert [Mon, 24 Aug 2015 18:27:58 +0000 (11:27 -0700)]
Add a .clang-format file.

Change-Id: I6c4c492d9b571dd654b4993d1de1827813963ce1

8 years agoam 4d7d05bd: Merge "Revert "fix incompatibility with -fstack-protector-strong""
Nick Kralevich [Mon, 24 Aug 2015 07:10:16 +0000 (07:10 +0000)]
am 4d7d05bd: Merge "Revert "fix incompatibility with -fstack-protector-strong""

* commit '4d7d05bd60b1d0bc20c95dd764fc2d916a12bb74':
  Revert "fix incompatibility with -fstack-protector-strong"

8 years agoMerge "Revert "fix incompatibility with -fstack-protector-strong""
Nick Kralevich [Mon, 24 Aug 2015 06:59:43 +0000 (06:59 +0000)]
Merge "Revert "fix incompatibility with -fstack-protector-strong""

8 years agoRevert "fix incompatibility with -fstack-protector-strong"
Nick Kralevich [Mon, 24 Aug 2015 06:58:39 +0000 (06:58 +0000)]
Revert "fix incompatibility with -fstack-protector-strong"

Reports of devices not booting with a build range including
this patch. Reverting while I investigate.

This reverts commit 96dd2b6e85e03ca9ab2600c2031490c22d5626ad.

Bug: 23470962
Change-Id: I056f1d8668f52d31412868975f2143249fc7e8f0

8 years agoam 5f7a5125: Merge "fix incompatibility with -fstack-protector-strong"
Nick Kralevich [Mon, 24 Aug 2015 04:29:15 +0000 (04:29 +0000)]
am 5f7a5125: Merge "fix incompatibility with -fstack-protector-strong"

* commit '5f7a5125a53951543e27276877fa6b71eb08a5d8':
  fix incompatibility with -fstack-protector-strong

8 years agoMerge "fix incompatibility with -fstack-protector-strong"
Nick Kralevich [Sun, 23 Aug 2015 16:21:18 +0000 (16:21 +0000)]
Merge "fix incompatibility with -fstack-protector-strong"

9 years agoam 62c26ed9: Merge "add fortified implementations of write/pwrite{,64}"
Yabin Cui [Fri, 21 Aug 2015 03:17:34 +0000 (03:17 +0000)]
am 62c26ed9: Merge "add fortified implementations of write/pwrite{,64}"

* commit '62c26ed93e76ca9b3dd265f41eb3685ed2e72808':
  add fortified implementations of write/pwrite{,64}

9 years agoMerge "add fortified implementations of write/pwrite{,64}"
Yabin Cui [Fri, 21 Aug 2015 03:03:22 +0000 (03:03 +0000)]
Merge "add fortified implementations of write/pwrite{,64}"

9 years agoam 49715dcc: Merge "Fix a mistype in segment overrange checking"
Elliott Hughes [Thu, 20 Aug 2015 23:26:19 +0000 (23:26 +0000)]
am 49715dcc: Merge "Fix a mistype in segment overrange checking"

* commit '49715dcc8a8be1b4545b91e453467e1c45343e51':
  Fix a mistype in segment overrange checking

9 years agoMerge "Fix a mistype in segment overrange checking"
Elliott Hughes [Thu, 20 Aug 2015 23:13:15 +0000 (23:13 +0000)]
Merge "Fix a mistype in segment overrange checking"

9 years agoadd fortified implementations of write/pwrite{,64}
Daniel Micay [Tue, 21 Jul 2015 01:37:29 +0000 (21:37 -0400)]
add fortified implementations of write/pwrite{,64}

These are just based on the read/pread{,64} implementations with the
function calls and error messages adjusted as appropriate. The only
difference is that the buffer parameters are const.

Change-Id: Ida1597a903807f583f230d74bcedffdb7b24fcf6

9 years agoam 079fc833: Merge "Modify ip to get the instr being executed."
Christopher Ferris [Wed, 19 Aug 2015 22:31:02 +0000 (22:31 +0000)]
am 079fc833: Merge "Modify ip to get the instr being executed."

* commit '079fc833137d5067c0cd3dc5211e72019314dd80':
  Modify ip to get the instr being executed.

9 years agoFix a mistype in segment overrange checking
skvalex [Wed, 19 Aug 2015 22:06:42 +0000 (01:06 +0300)]
Fix a mistype in segment overrange checking

Change-Id: Ibea93514aa7ba3b1ac2bc00420f5124fb34f5f66
Signed-off-by: skvalex <skvalex@gmail.com>
9 years agoMerge "Modify ip to get the instr being executed."
Christopher Ferris [Wed, 19 Aug 2015 18:25:38 +0000 (18:25 +0000)]
Merge "Modify ip to get the instr being executed."

9 years agoam df0891ad: Merge "Add a TLS slot for TSAN."
Dan Albert [Tue, 18 Aug 2015 22:57:57 +0000 (22:57 +0000)]
am df0891ad: Merge "Add a TLS slot for TSAN."

* commit 'df0891adcfe97dd8e4c825ea6ea586cc5bd09ef6':
  Add a TLS slot for TSAN.

9 years agoMerge "Add a TLS slot for TSAN."
Dan Albert [Tue, 18 Aug 2015 22:43:47 +0000 (22:43 +0000)]
Merge "Add a TLS slot for TSAN."

9 years agoModify ip to get the instr being executed.
Christopher Ferris [Tue, 18 Aug 2015 22:41:31 +0000 (15:41 -0700)]
Modify ip to get the instr being executed.

The ip values being reported are always pointing at the next
instruction to execute, not the currently executing instruction.
Change the ip address to point at the currently executing instruction.

This fixes a problem where the next instruction is not actually
part of the same function, so if an addr2line is used, it reports
the wrong value.

This does not modify the ip for mips.

Bug: 22565486
Change-Id: Ie0df4c9727f62ce06948b9a2b0e4b7956eb6e752

9 years agoAdd a TLS slot for TSAN.
Dan Albert [Tue, 18 Aug 2015 22:09:00 +0000 (15:09 -0700)]
Add a TLS slot for TSAN.

This is so TSAN won't need to rely on pthread_getspecific for finding
the current thread state.

Change-Id: Id3befeabec0a9f7ca77b5549fbc427e22e6aaa34

9 years agoam e4d51cf3: Merge "Add optimized cortex-a7/cortex-a53 memset/memcpy."
Christopher Ferris [Tue, 18 Aug 2015 17:33:22 +0000 (17:33 +0000)]
am e4d51cf3: Merge "Add optimized cortex-a7/cortex-a53 memset/memcpy."

* commit 'e4d51cf37a861e258e423de14619982af51d2527':
  Add optimized cortex-a7/cortex-a53 memset/memcpy.

9 years agoMerge "Add optimized cortex-a7/cortex-a53 memset/memcpy."
Christopher Ferris [Tue, 18 Aug 2015 17:18:11 +0000 (17:18 +0000)]
Merge "Add optimized cortex-a7/cortex-a53 memset/memcpy."

9 years agoam 4a8c4ce4: Merge "libc: remove bcopy from memmove on 64-bit architectures"
Elliott Hughes [Tue, 18 Aug 2015 00:39:50 +0000 (00:39 +0000)]
am 4a8c4ce4: Merge "libc: remove bcopy from memmove on 64-bit architectures"

* commit '4a8c4ce403f702c0b8279873fae3d62497c4a123':
  libc: remove bcopy from memmove on 64-bit architectures

9 years agoMerge "libc: remove bcopy from memmove on 64-bit architectures"
Elliott Hughes [Tue, 18 Aug 2015 00:23:49 +0000 (00:23 +0000)]
Merge "libc: remove bcopy from memmove on 64-bit architectures"

9 years agoam 85197af9: Merge "Don\'t attach linker_asan to linker in module definition."
Ying Wang [Tue, 18 Aug 2015 00:23:29 +0000 (00:23 +0000)]
am 85197af9: Merge "Don\'t attach linker_asan to linker in module definition."

* commit '85197af92b52dd02caa7146ea5f47fad5cbc0101':
  Don't attach linker_asan to linker in module definition.

9 years agoMerge "Don't attach linker_asan to linker in module definition."
Ying Wang [Tue, 18 Aug 2015 00:07:03 +0000 (00:07 +0000)]
Merge "Don't attach linker_asan to linker in module definition."

9 years agoDon't attach linker_asan to linker in module definition.
Ying Wang [Mon, 17 Aug 2015 23:17:03 +0000 (16:17 -0700)]
Don't attach linker_asan to linker in module definition.

With this change, we only define the rules to create the symlinks in
this Android.mk but without attaching the symlinks to the module linker.
Instead the core build system will set up the dependency whenever a
module needs these symlinks.

Bug: 22850550
Change-Id: I36c58fd411f1c27f3f638b229699d7dc1d66abb2

9 years agolibc: remove bcopy from memmove on 64-bit architectures
Jake Weinstein [Sun, 16 Aug 2015 00:44:40 +0000 (00:44 +0000)]
libc: remove bcopy from memmove on 64-bit architectures

* bcopy is deprecated on LP64 by the following commit:

  https://android.googlesource.com/platform/bionic/+/ce9ce28e5d760e32ab6c894dfaf7b8dad6de7ff6

Change-Id: I6849916f0ec4a2d0db9a360999ad1dc8edda952b

9 years agoAdd optimized cortex-a7/cortex-a53 memset/memcpy.
Christopher Ferris [Fri, 24 Jul 2015 03:27:42 +0000 (20:27 -0700)]
Add optimized cortex-a7/cortex-a53 memset/memcpy.

Add an optimized memset that is ~20% faster for cortex-a7 and
cortex-a53.

Add a 32 bit optimized cortex-a53 memcpy that is about ~20% faster
on cached data.

Fix the cortex-a15 __str{cat,cpy}_chk.S, memcpy_base.S to remove
the phony functions, since they aren't needed any more. Then add
a direct include of these for cortex-a53.

Verified the new functions by stepping through all of the major
paths and verifying the backtrace is still correct.

Bug: 22696180
Change-Id: Iec92a3f82d51243cca76c9aff9f35d920ff865ae

9 years agoam 6816d8cc: Merge "Use __builtin_* in <math.h>."
Elliott Hughes [Fri, 14 Aug 2015 23:47:49 +0000 (23:47 +0000)]
am 6816d8cc: Merge "Use __builtin_* in <math.h>."

* commit '6816d8cc69dc1d142d722686d006f25df94afcd3':
  Use __builtin_* in <math.h>.

9 years agoMerge "Use __builtin_* in <math.h>."
Elliott Hughes [Fri, 14 Aug 2015 22:57:10 +0000 (22:57 +0000)]
Merge "Use __builtin_* in <math.h>."

9 years agoUse __builtin_* in <math.h>.
Elliott Hughes [Fri, 14 Aug 2015 21:04:30 +0000 (14:04 -0700)]
Use __builtin_* in <math.h>.

Also remove cruft meant to support long-obsolete compilers. More
benchmarks.

Bug: http://b/23195789
Change-Id: Ief538e41e77a77e8013b2f4f359584e8df2c47d8

9 years agoam dd8adc35: Merge "libm: ARM: reorganize a bit to match ARM64"
Elliott Hughes [Fri, 14 Aug 2015 21:24:04 +0000 (21:24 +0000)]
am dd8adc35: Merge "libm: ARM: reorganize a bit to match ARM64"

* commit 'dd8adc35346e671b3c3b2ecb26c13b84c742695c':
  libm: ARM: reorganize a bit to match ARM64

9 years agoMerge "libm: ARM: reorganize a bit to match ARM64"
Elliott Hughes [Fri, 14 Aug 2015 21:09:26 +0000 (21:09 +0000)]
Merge "libm: ARM: reorganize a bit to match ARM64"

9 years agolibm: ARM: reorganize a bit to match ARM64
Jake Weinstein [Thu, 13 Aug 2015 23:00:49 +0000 (23:00 +0000)]
libm: ARM: reorganize a bit to match ARM64

* Cleaner naming, especially if there are more ARM-specific routines in
  the future.

Change-Id: Id29db728800ccd612a906e86ccb95c1e7620514d

9 years agoam b4f2112f: Merge "[MIPS] Invalidate cached pid in vfork."
Elliott Hughes [Wed, 12 Aug 2015 03:02:35 +0000 (03:02 +0000)]
am b4f2112f: Merge "[MIPS] Invalidate cached pid in vfork."

* commit 'b4f2112fa99dab401cd65db4c524d95b1e97614e':
  [MIPS] Invalidate cached pid in vfork.

9 years agoMerge "[MIPS] Invalidate cached pid in vfork."
Elliott Hughes [Wed, 12 Aug 2015 02:28:25 +0000 (02:28 +0000)]
Merge "[MIPS] Invalidate cached pid in vfork."

9 years ago[MIPS] Invalidate cached pid in vfork.
Duane Sand [Wed, 12 Aug 2015 00:00:56 +0000 (17:00 -0700)]
[MIPS] Invalidate cached pid in vfork.

Bug: http://b/23008979
Change-Id: I43e0c7db42602441313af4607a992caa8c7d6221

9 years agoam f2985ed8: Merge "Fix test steps for 64-bit bionic"
Dan Albert [Wed, 12 Aug 2015 02:14:57 +0000 (02:14 +0000)]
am f2985ed8: Merge "Fix test steps for 64-bit bionic"

* commit 'f2985ed840af2d5572fafb03074f17afa516d967':
  Fix test steps for 64-bit bionic

9 years agoMerge "Fix test steps for 64-bit bionic"
Dan Albert [Wed, 12 Aug 2015 01:58:18 +0000 (01:58 +0000)]
Merge "Fix test steps for 64-bit bionic"

9 years agoam 2b934924: Merge "Add missing include."
Dan Albert [Wed, 12 Aug 2015 00:43:03 +0000 (00:43 +0000)]
am 2b934924: Merge "Add missing include."

* commit '2b93492478b497181edf51f5829b984c4e904e52':
  Add missing include.

9 years agoMerge "Add missing include."
Dan Albert [Wed, 12 Aug 2015 00:28:07 +0000 (00:28 +0000)]
Merge "Add missing include."

9 years agoFix test steps for 64-bit bionic
Duane Sand [Wed, 12 Aug 2015 00:21:27 +0000 (17:21 -0700)]
Fix test steps for 64-bit bionic

Change-Id: Ibe76f22cdb5c0dbc69a24ffd0acffff89686ca35

9 years agoAdd missing include.
Dan Albert [Tue, 11 Aug 2015 23:46:26 +0000 (16:46 -0700)]
Add missing include.

libc++ cleaned up a leaky header.

Change-Id: I5ac0f43a075257a9138a82be379c9cffe96e0ab9

9 years agoam 0660be89: am a6a12a78: am 0fdcdd00: Merge "Fix flaky test time.timer_settime_0...
Yabin Cui [Tue, 11 Aug 2015 19:10:33 +0000 (19:10 +0000)]
am 0660be89: am a6a12a78: am 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev

* commit '0660be899f2d907dedbcb643315b73e652ec9510':
  Fix flaky test time.timer_settime_0.

9 years agoam a6a12a78: am 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop...
Yabin Cui [Tue, 11 Aug 2015 19:05:43 +0000 (19:05 +0000)]
am a6a12a78: am 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev

* commit 'a6a12a7804402273e193074a58162cc0b3890812':
  Fix flaky test time.timer_settime_0.

9 years agoam 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev
Yabin Cui [Tue, 11 Aug 2015 18:56:43 +0000 (18:56 +0000)]
am 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev

* commit '0fdcdd0067af88e7deef73070d0861ceb9f53c37':
  Fix flaky test time.timer_settime_0.

9 years agoMerge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev
Yabin Cui [Tue, 11 Aug 2015 18:41:17 +0000 (18:41 +0000)]
Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev

9 years agoFix flaky test time.timer_settime_0.
Yabin Cui [Tue, 11 Aug 2015 18:23:16 +0000 (11:23 -0700)]
Fix flaky test time.timer_settime_0.

It fixes the problem reported in https://code.google.com/p/android/issues/detail?id=182395.

Change-Id: Ie16aa04095dac08a62dd0d4c50e763b36526624c

9 years agoam a3c01467: Merge "Move up to C++14."
Dan Albert [Tue, 11 Aug 2015 00:00:14 +0000 (00:00 +0000)]
am a3c01467: Merge "Move up to C++14."

* commit 'a3c01467ecf31cab1410ce7b8554e2e77dae3309':
  Move up to C++14.

9 years agoMerge "Move up to C++14."
Dan Albert [Mon, 10 Aug 2015 23:45:48 +0000 (23:45 +0000)]
Merge "Move up to C++14."

9 years agoMove up to C++14.
Dan Albert [Mon, 10 Aug 2015 23:40:06 +0000 (16:40 -0700)]
Move up to C++14.

The default standard version is now ahead of us. Stop specifying C++11
so we get that too.

Change-Id: Ic96942cd7fd134118e29b744601b0119e49b6ac4

9 years agoam ff4afc13: Merge "Omit comment when reading --gtest_list_tests option\'s output."
Yabin Cui [Mon, 10 Aug 2015 22:22:04 +0000 (22:22 +0000)]
am ff4afc13: Merge "Omit comment when reading --gtest_list_tests option\'s output."

* commit 'ff4afc136ef5d00d33a611e7bc1950249db9fbcf':
  Omit comment when reading --gtest_list_tests option's output.

9 years agoMerge "Omit comment when reading --gtest_list_tests option's output."
Yabin Cui [Mon, 10 Aug 2015 22:01:07 +0000 (22:01 +0000)]
Merge "Omit comment when reading --gtest_list_tests option's output."

9 years agoam 182b91f6: Merge "Invalidate cached pid in vfork."
Elliott Hughes [Mon, 10 Aug 2015 20:08:09 +0000 (20:08 +0000)]
am 182b91f6: Merge "Invalidate cached pid in vfork."

* commit '182b91f62809b03870f561a88135f5453966fe41':
  Invalidate cached pid in vfork.

9 years agoMerge "Invalidate cached pid in vfork."
Elliott Hughes [Mon, 10 Aug 2015 19:47:11 +0000 (19:47 +0000)]
Merge "Invalidate cached pid in vfork."

9 years agoOmit comment when reading --gtest_list_tests option's output.
Yabin Cui [Mon, 10 Aug 2015 19:12:39 +0000 (12:12 -0700)]
Omit comment when reading --gtest_list_tests option's output.

Gtest add comments when listing typed tests. And we should omit them.

Bug: 23040880
Change-Id: If6034af301337fc06eeab294d2dbe5317a6b7f91

9 years agoInvalidate cached pid in vfork.
Elliott Hughes [Sat, 8 Aug 2015 01:27:47 +0000 (18:27 -0700)]
Invalidate cached pid in vfork.

Bug: http://b/23008979
Change-Id: I1dd900ac988cdbe10aad3abc53240c5d352891d5

9 years agoam e80369ab: Merge "Bionic: Add a TLS slot for ART for Thread self"
Andreas Gampe [Tue, 4 Aug 2015 22:54:42 +0000 (22:54 +0000)]
am e80369ab: Merge "Bionic: Add a TLS slot for ART for Thread self"

* commit 'e80369ab0c484a99925a49a81ab0675538fab38a':
  Bionic: Add a TLS slot for ART for Thread self

9 years agoMerge "Bionic: Add a TLS slot for ART for Thread self"
Andreas Gampe [Tue, 4 Aug 2015 22:35:34 +0000 (22:35 +0000)]
Merge "Bionic: Add a TLS slot for ART for Thread self"

9 years agoam b3db7764: Merge "name the arc4random structure mappings"
Elliott Hughes [Tue, 4 Aug 2015 01:13:13 +0000 (01:13 +0000)]
am b3db7764: Merge "name the arc4random structure mappings"

* commit 'b3db7764d0757392c73c716423f49dc0809c5a23':
  name the arc4random structure mappings

9 years agoMerge "name the arc4random structure mappings"
Elliott Hughes [Tue, 4 Aug 2015 00:58:57 +0000 (00:58 +0000)]
Merge "name the arc4random structure mappings"

9 years agoam f57f7945: Merge "Cherrypick upstream fnmatch.c fix."
Elliott Hughes [Mon, 3 Aug 2015 18:41:36 +0000 (18:41 +0000)]
am f57f7945: Merge "Cherrypick upstream fnmatch.c fix."

* commit 'f57f7945159a0abbca248817d1d4af1e9d89e323':
  Cherrypick upstream fnmatch.c fix.

9 years agoMerge "Cherrypick upstream fnmatch.c fix."
Elliott Hughes [Mon, 3 Aug 2015 18:22:42 +0000 (18:22 +0000)]
Merge "Cherrypick upstream fnmatch.c fix."

9 years agoCherrypick upstream fnmatch.c fix.
Elliott Hughes [Mon, 3 Aug 2015 18:11:22 +0000 (11:11 -0700)]
Cherrypick upstream fnmatch.c fix.

Bug: http://b/22855370
Change-Id: I3865cff1e2ffeb6709cea092be3770c1bebf1623

9 years agoam 2278d29a: Merge "[MIPS] Link .dex or .oat code lacking .MIPS.abiflags segment"
Elliott Hughes [Mon, 3 Aug 2015 15:27:07 +0000 (15:27 +0000)]
am 2278d29a: Merge "[MIPS] Link .dex or .oat code lacking .MIPS.abiflags segment"

* commit '2278d29ada4cda53d81b87446254cea16e1b24fa':
  [MIPS] Link .dex or .oat code lacking .MIPS.abiflags segment

9 years agoMerge "[MIPS] Link .dex or .oat code lacking .MIPS.abiflags segment"
Elliott Hughes [Mon, 3 Aug 2015 15:17:18 +0000 (15:17 +0000)]
Merge "[MIPS] Link .dex or .oat code lacking .MIPS.abiflags segment"

9 years agoname the arc4random structure mappings
Daniel Micay [Sun, 2 Aug 2015 02:25:42 +0000 (22:25 -0400)]
name the arc4random structure mappings

Change-Id: I6e150e526f6ceee31aa9bd219fa45317d5a729cb

9 years agoam 7e919dae: Merge "add a fortified implementation of getcwd"
Yabin Cui [Sat, 1 Aug 2015 05:25:13 +0000 (05:25 +0000)]
am 7e919dae: Merge "add a fortified implementation of getcwd"

* commit '7e919daeaad62515ebbbf7b06badc77625a14d90':
  add a fortified implementation of getcwd

9 years agoMerge "add a fortified implementation of getcwd"
Yabin Cui [Sat, 1 Aug 2015 05:14:20 +0000 (05:14 +0000)]
Merge "add a fortified implementation of getcwd"

9 years agoadd a fortified implementation of getcwd
Daniel Micay [Wed, 20 May 2015 19:31:26 +0000 (15:31 -0400)]
add a fortified implementation of getcwd

Change-Id: Ice3e6d3e1ff07788305dc85f8ee4059baad5fac4

9 years ago[MIPS] Link .dex or .oat code lacking .MIPS.abiflags segment
Duane Sand [Tue, 28 Jul 2015 21:04:29 +0000 (14:04 -0700)]
[MIPS] Link .dex or .oat code lacking .MIPS.abiflags segment

This corrects an issue with mips32 Art on mips64r6 Android, where
Java ran slowly due to unintended use of kernel-trap emulation of
single-precision floating point registers. This also regressed all
Art tests due to an extra logcat line
    WARNING: linker: Using FRE=1 mode to run "..."

When targeting mips32r6, Art generates modeless or FR=1 floating point
code, same as Android's own native mips32r6 modules. So the trapping was
unneeded. Linker was confusing Art-generated modules with those from
old NDK compilers, which do need that trapping mode.

This linker filename check may become unnecessary, if Art learns how to
generate .MIPS.abiflags segments in its generated elf-like codefiles.

Change-Id: I18069d1234960c680c5df739514da09015a7fdb6

9 years agoam 25907058: Merge "Sync current upstream fnmatch.c."
Elliott Hughes [Fri, 31 Jul 2015 18:16:55 +0000 (18:16 +0000)]
am 25907058: Merge "Sync current upstream fnmatch.c."

* commit '259070585820b4900622363dd7f968d6b644d75d':
  Sync current upstream fnmatch.c.

9 years agoMerge "Sync current upstream fnmatch.c."
Elliott Hughes [Fri, 31 Jul 2015 18:04:38 +0000 (18:04 +0000)]
Merge "Sync current upstream fnmatch.c."

9 years agoSync current upstream fnmatch.c.
Elliott Hughes [Fri, 31 Jul 2015 17:57:27 +0000 (10:57 -0700)]
Sync current upstream fnmatch.c.

Bug: http://b/22855370
Change-Id: I589f849aaede3b69b6b3682989bab7d8649dcd97

9 years agoam 61c21b63: Merge "Revert "add a fortified implementation of getcwd""
Elliott Hughes [Fri, 31 Jul 2015 17:41:05 +0000 (17:41 +0000)]
am 61c21b63: Merge "Revert "add a fortified implementation of getcwd""

* commit '61c21b63bc1602bce8685757fb1c2a788cc9eb8d':
  Revert "add a fortified implementation of getcwd"

9 years agoMerge "Revert "add a fortified implementation of getcwd""
Elliott Hughes [Fri, 31 Jul 2015 17:33:05 +0000 (17:33 +0000)]
Merge "Revert "add a fortified implementation of getcwd""

9 years agoRevert "add a fortified implementation of getcwd"
Elliott Hughes [Fri, 31 Jul 2015 17:32:50 +0000 (17:32 +0000)]
Revert "add a fortified implementation of getcwd"

This reverts commit 89a121d43a274131cf9f84b0e685bebf1e70cc1b.

Change-Id: Ib6f6fd424acea68a063777e9f324405450e23316

9 years agoam 442a3fca: Merge "add a fortified implementation of getcwd"
Yabin Cui [Fri, 31 Jul 2015 17:11:27 +0000 (17:11 +0000)]
am 442a3fca: Merge "add a fortified implementation of getcwd"

* commit '442a3fcae68152a95ef481ef99932d1bc001dc08':
  add a fortified implementation of getcwd

9 years agoMerge "add a fortified implementation of getcwd"
Yabin Cui [Fri, 31 Jul 2015 16:55:12 +0000 (16:55 +0000)]
Merge "add a fortified implementation of getcwd"

9 years agoadd a fortified implementation of getcwd
Daniel Micay [Wed, 20 May 2015 19:31:26 +0000 (15:31 -0400)]
add a fortified implementation of getcwd

Change-Id: I95001ae4fe8f206db83e5c44d129ba11310695ce

9 years agoam 807f27f9: Merge "Stop sending SIGPIPE to debuggerd."
Elliott Hughes [Thu, 30 Jul 2015 15:39:45 +0000 (15:39 +0000)]
am 807f27f9: Merge "Stop sending SIGPIPE to debuggerd."

* commit '807f27f9548077f114dc009f60764fb0241a2620':
  Stop sending SIGPIPE to debuggerd.

9 years agoMerge "Stop sending SIGPIPE to debuggerd."
Elliott Hughes [Thu, 30 Jul 2015 15:10:59 +0000 (15:10 +0000)]
Merge "Stop sending SIGPIPE to debuggerd."

9 years agoStop sending SIGPIPE to debuggerd.
Elliott Hughes [Thu, 30 Jul 2015 05:24:13 +0000 (22:24 -0700)]
Stop sending SIGPIPE to debuggerd.

SIGPIPE is a pretty normal way for command-line apps to die, but because
we catch it and report it via debuggerd, we get a lot of bogus bugs. We
could catch SIGPIPE in our tools, but that's not really legit and slightly
misleading.

"But", you say, "catching SIGPIPE is useful for app bugs!". Except a trawl
through buganizer suggests it's misleading there too. Not least because
it's usually an innocent victim that dies --- the problem is usually on the
other end of the pipe (which you learn nothing about because that process
already died, which is what closed the pipe).

We also don't catch SIGALRM, which is another signal that will terminate
your process if you don't catch it, but that one actually represents a
logic error in the crashing process, so there's a stronger argument for
catching that. (Except it too is not a real source of bugs.)

Bug: http://b/20659371
Change-Id: I79820b36573ddaa9a7bad0561a52f23e7a8d15ac

9 years agoam 44989174: Merge "Prevent buffer over-read in linker.cpp\'s parse_path."
Elliott Hughes [Thu, 30 Jul 2015 00:51:02 +0000 (00:51 +0000)]
am 44989174: Merge "Prevent buffer over-read in linker.cpp\'s parse_path."

* commit '4498917406ee543116ea7ed987d26a15b2c1496c':
  Prevent buffer over-read in linker.cpp's parse_path.

9 years agoMerge "Prevent buffer over-read in linker.cpp's parse_path."
Elliott Hughes [Thu, 30 Jul 2015 00:22:48 +0000 (00:22 +0000)]
Merge "Prevent buffer over-read in linker.cpp's parse_path."

9 years agoPrevent buffer over-read in linker.cpp's parse_path.
tony.ys_liu [Wed, 29 Jul 2015 10:00:22 +0000 (18:00 +0800)]
Prevent buffer over-read in linker.cpp's parse_path.

Also, the old behavior of skipping empty entries doesn't match glibc.

Change-Id: I497774377113ab6c5d962e0f20066e2192748f06

9 years agoam 34c5f5ea: Merge "Remove PAGE_SIZE from <limits.h>."
Elliott Hughes [Wed, 29 Jul 2015 15:58:28 +0000 (15:58 +0000)]
am 34c5f5ea: Merge "Remove PAGE_SIZE from <limits.h>."

* commit '34c5f5eacdedcea6b987854a4bca07c703495d62':
  Remove PAGE_SIZE from <limits.h>.

9 years agoMerge "Remove PAGE_SIZE from <limits.h>."
Elliott Hughes [Wed, 29 Jul 2015 15:18:06 +0000 (15:18 +0000)]
Merge "Remove PAGE_SIZE from <limits.h>."

9 years agoam 374adfee: Merge "Don\'t transitively include <limits.h> from <sys/user.h>."
Elliott Hughes [Wed, 29 Jul 2015 07:33:28 +0000 (07:33 +0000)]
am 374adfee: Merge "Don\'t transitively include <limits.h> from <sys/user.h>."

* commit '374adfee473725994ee2568ce5aba93a7500064e':
  Don't transitively include <limits.h> from <sys/user.h>.

9 years agoam 1ff4094a: Merge "Remove PAGESIZE."
Elliott Hughes [Wed, 29 Jul 2015 07:33:25 +0000 (07:33 +0000)]
am 1ff4094a: Merge "Remove PAGESIZE."

* commit '1ff4094a7f106b3de390acb1e36c45bbb878a153':
  Remove PAGESIZE.