OSDN Git Service
Elliott Hughes [Tue, 29 Jul 2014 18:01:25 +0000 (18:01 +0000)]
am
2ea0a58e: Fix linkage of grantpt(3).
* commit '
2ea0a58e01c1ed6db1da9dd0314ee053f5a32026':
Fix linkage of grantpt(3).
Elliott Hughes [Tue, 29 Jul 2014 17:52:05 +0000 (17:52 +0000)]
am
a7dc7600: Merge "Fix linkage of grantpt(3)."
* commit '
a7dc7600fe1be1f3fd61856b407bb7065307e711':
Fix linkage of grantpt(3).
Elliott Hughes [Sat, 26 Jul 2014 00:24:00 +0000 (17:24 -0700)]
Fix linkage of grantpt(3).
Also clean up the implementation of all the pty functions, add tests,
and fix the stub implementations of ttyname(3) and ttyname_r(3).
Bug: https://code.google.com/p/android/issues/detail?id=58888
(cherry picked from commit
4916706cfe590eb06c9b5bd4bd402ce056034d51)
Change-Id: I5cb7a1c17b156456e4c4818e65f256eb8d045424
Brigid Smith [Tue, 29 Jul 2014 17:25:00 +0000 (17:25 +0000)]
am
a09fe118: Added a bionic systrace class and tracing to pthread_mutex.cpp.
* commit '
a09fe118b1a5eb876ddaa2620965c4a8fb8b007c':
Added a bionic systrace class and tracing to pthread_mutex.cpp.
Elliott Hughes [Tue, 29 Jul 2014 16:47:01 +0000 (16:47 +0000)]
am
52f8271f: Merge "Added a bionic systrace class and tracing to pthread_mutex.cpp."
* commit '
52f8271fa9fd3f84849465f3c978580fbed866c1':
Added a bionic systrace class and tracing to pthread_mutex.cpp.
Brigid Smith [Mon, 21 Jul 2014 22:38:06 +0000 (15:38 -0700)]
Added a bionic systrace class and tracing to pthread_mutex.cpp.
bionic_systrace.h contains an implementation of tracing that
can be used with systrace.py and its associated viewer. pthread_mutex
now uses this tracing to track pthread_mutex contention, which can be
enabled by using the "bionic" command line option to systrace.
Bug:
15116468
(cherry picked from commit
a406ee6d5f616192e9a13afad6ac6a9969814fc1)
Change-Id: Ic98fc303689fe9384974150d0d258c50806a55e4
Dmitriy Ivanov [Tue, 29 Jul 2014 14:23:25 +0000 (14:23 +0000)]
am
24dcda0f: Merge "Fix mips/mips64 build"
* commit '
24dcda0f4febe7d257b31c68887183c81d1b8791':
Fix mips/mips64 build
Dmitriy Ivanov [Tue, 29 Jul 2014 13:15:21 +0000 (13:15 +0000)]
am
1a5db57d: Fix mips/mips64 build
* commit '
1a5db57d5a0f633a83f20e667a4698757a63413e':
Fix mips/mips64 build
Dmitriy Ivanov [Tue, 29 Jul 2014 00:53:29 +0000 (17:53 -0700)]
Fix mips/mips64 build
Add _start entry label to mips/mips64 linker begin.S
(cherry picked from commit
ed485347189e3dfe04a38207c416bdd8c8fac4bc)
Change-Id: Id1b6bb3258f3bfbe3b7ec9491a977f56e44bed14
Dmitriy Ivanov [Tue, 29 Jul 2014 00:56:21 +0000 (00:56 +0000)]
am
5febb0da: Fix \'adb shell /system/bin/linker\' crash
* commit '
5febb0da6f6d7106c403e6809917d89d6ee081ad':
Fix 'adb shell /system/bin/linker' crash
Dmitriy Ivanov [Mon, 28 Jul 2014 22:05:51 +0000 (15:05 -0700)]
Fix 'adb shell /system/bin/linker' crash
Bug: https://code.google.com/p/android/issues/detail?id=63174
(cherry picked from commit
efe13832dccf2cec2898b89ca4418a6aac29d3eb)
Change-Id: I43629e4a14870f67abc2dd5ff2e3040c47b2168d
Elliott Hughes [Mon, 28 Jul 2014 23:50:42 +0000 (23:50 +0000)]
am
2be1be47: Revert "Add a hack to <stdlib.h> until we can fix libvpx."
* commit '
2be1be47aa9b63568fe6ce1e0a4029b37d90764d':
Revert "Add a hack to <stdlib.h> until we can fix libvpx."
Dmitriy Ivanov [Mon, 28 Jul 2014 23:45:07 +0000 (23:45 +0000)]
am
337c0cef: Merge "Fix \'adb shell /system/bin/linker\' crash"
* commit '
337c0cefdc4667143a1f4f2c30113b452c5d188f':
Fix 'adb shell /system/bin/linker' crash
Elliott Hughes [Mon, 28 Jul 2014 23:21:28 +0000 (23:21 +0000)]
am
78e4f8fe: syscall(3)\'s return type should be long.
* commit '
78e4f8fed2c162f8ada55180e48487ef2180cf93':
syscall(3)'s return type should be long.
Elliott Hughes [Mon, 28 Jul 2014 23:16:38 +0000 (16:16 -0700)]
Revert "Add a hack to <stdlib.h> until we can fix libvpx."
This reverts commit
3fb5097a7eec40404760c304b36c8b657b374cab.
libvpx is now fixed.
Bug:
15598056
Change-Id: Icca974e667f92206505f484bd291726eb0150f68
Elliott Hughes [Mon, 28 Jul 2014 22:47:57 +0000 (22:47 +0000)]
am
8a2ecf86: Merge "syscall(3)\'s return type should be long."
* commit '
8a2ecf868feebaa39caddc6cdf9500b5385651f0':
syscall(3)'s return type should be long.
Elliott Hughes [Tue, 29 Jul 2014 17:43:10 +0000 (17:43 +0000)]
Merge "Fix linkage of grantpt(3)."
Elliott Hughes [Mon, 28 Jul 2014 19:24:22 +0000 (12:24 -0700)]
syscall(3)'s return type should be long.
This doesn't require us to change any of the syscall implementations
because (a) the LP32 ones have sizeof(int) == sizeof(long) anyway,
which is how we never noticed this bug before and (b) the LP64 ones
all use a 64-bit register for the result (and for the syscall number
too).
Bug: https://code.google.com/p/android/issues/detail?id=73952
Bug:
16568314
(cherry picked from commit
21972b61ec0572395c5684eebc6cc7b3a4c9e3be)
Change-Id: Ifbc424be29e5650ec72a24df25dd35f24fdd5b3c
Elliott Hughes [Mon, 28 Jul 2014 16:51:57 +0000 (16:51 +0000)]
am
8c66fd79: Merge "Use vsnprintf(3) in syslog(3)."
* commit '
8c66fd798ed5b7cefe1568d9a000d01b69d29dd9':
Use vsnprintf(3) in syslog(3).
Elliott Hughes [Mon, 28 Jul 2014 16:47:40 +0000 (16:47 +0000)]
am
b1b60c30: Use vsnprintf(3) in syslog(3).
* commit '
b1b60c30bf321c0fc02264b953b5c16c49d34457':
Use vsnprintf(3) in syslog(3).
Elliott Hughes [Sat, 26 Jul 2014 03:31:47 +0000 (20:31 -0700)]
Use vsnprintf(3) in syslog(3).
It seemed like a clever trick to use the internal log message formatting
code in syslog(3), but on reflection that means you can't (for example)
format floating point numbers. This patch switches us over to using good
old vsnprintf(3), even though that requires us to jump through a few hoops.
There's no obvious way to unit test this, so I wrote a little program and
ran that.
Bug:
14292866
Change-Id: I9c83500ba9cbb209b6f496067a91bf69434eeef5
Elliott Hughes [Sat, 26 Jul 2014 00:24:00 +0000 (17:24 -0700)]
Fix linkage of grantpt(3).
Also clean up the implementation of all the pty functions, add tests,
and fix the stub implementations of ttyname(3) and ttyname_r(3).
Bug: https://code.google.com/p/android/issues/detail?id=58888
Change-Id: I0fb36438cd1abf8d4e87c29415f03db9ba13c3c2
Elliott Hughes [Sat, 26 Jul 2014 00:36:25 +0000 (00:36 +0000)]
am
c1a6a725: Remove localtime_tz and strftime_tz.
* commit '
c1a6a7256026431a9ae49ef2a6139ea99410819b':
Remove localtime_tz and strftime_tz.
Elliott Hughes [Fri, 25 Jul 2014 22:50:31 +0000 (15:50 -0700)]
Remove localtime_tz and strftime_tz.
This also brings our copy of strftime.c much closer to upstream, though
we still have several GNU extensions and hacks to deal with Android32's
broken time_t.
Bug:
15765976
(cherry picked from commit
39d903aea901cd29a4eef3a82c2dbda59b5bc292)
Change-Id: Ie278d3e976b7adc77bad5ce795dd4899cfbf3648
Elliott Hughes [Fri, 25 Jul 2014 23:26:24 +0000 (23:26 +0000)]
am
1a918d9b: Merge "Remove localtime_tz and strftime_tz."
* commit '
1a918d9be83013cdc8e194edf35b5295eba4ab1c':
Remove localtime_tz and strftime_tz.
Elliott Hughes [Fri, 25 Jul 2014 23:04:23 +0000 (23:04 +0000)]
am
708c1120: Start hiding "private/bionic_time.h".
* commit '
708c11205443cda14cfb21138d441106aa77a5f9':
Start hiding "private/bionic_time.h".
Elliott Hughes [Fri, 25 Jul 2014 18:55:59 +0000 (11:55 -0700)]
Start hiding "private/bionic_time.h".
Bug:
15765976
(cherry picked from commit
905e6d58aaf515bf237e62078f8a321920fe4c6b)
Change-Id: Ic7435308e8b521886f42ac7bf59531924921ea67
Elliott Hughes [Fri, 25 Jul 2014 22:21:42 +0000 (22:21 +0000)]
am
50a9630c: Merge "Start hiding "private/bionic_time.h"."
* commit '
50a9630cc26cbc1e38e3ddc589f04fa5cd91697b':
Start hiding "private/bionic_time.h".
Elliott Hughes [Tue, 29 Jul 2014 16:38:31 +0000 (16:38 +0000)]
Merge "Added a bionic systrace class and tracing to pthread_mutex.cpp."
Brigid Smith [Mon, 21 Jul 2014 22:38:06 +0000 (15:38 -0700)]
Added a bionic systrace class and tracing to pthread_mutex.cpp.
bionic_systrace.h contains an implementation of tracing that
can be used with systrace.py and its associated viewer. pthread_mutex
now uses this tracing to track pthread_mutex contention, which can be
enabled by using the "bionic" command line option to systrace.
Bug:
15116468
Change-Id: I30ed5b377c91ca4c36568a0e647ddf95d4e4a61a
Dmitriy Ivanov [Tue, 29 Jul 2014 04:58:16 +0000 (04:58 +0000)]
Merge "Fix mips/mips64 build"
Dmitriy Ivanov [Tue, 29 Jul 2014 00:53:29 +0000 (17:53 -0700)]
Fix mips/mips64 build
Add _start entry label to mips/mips64 linker begin.S
Change-Id: Idcdfc3391427b53880650798be0583a7ac022bcc
Dan Albert [Fri, 25 Jul 2014 19:06:44 +0000 (19:06 +0000)]
am
a4c14fda: Merge "en_US.UTF-8 is also supported."
* commit '
a4c14fda9176678cadb65fb53f503fda6668f8d1':
en_US.UTF-8 is also supported.
Elliott Hughes [Fri, 25 Jul 2014 01:03:46 +0000 (01:03 +0000)]
am
123172ae: Merge "[MIPS] Fix atomic_is_lock_free test for mips32. On 32-bit MIPS, 64-bit atomic ops are achieved through locks. So allow the test to fail for atomic_intmax_t on 32-bit MIPS."
* commit '
123172ae370fe51e2d1fc26fe0aafa095af52919':
[MIPS] Fix atomic_is_lock_free test for mips32. On 32-bit MIPS, 64-bit atomic ops are achieved through locks. So allow the test to fail for atomic_intmax_t on 32-bit MIPS.
Dmitriy Ivanov [Fri, 25 Jul 2014 01:03:45 +0000 (01:03 +0000)]
am
dbf52ec3: Merge "Fix global variable initialization for linker"
* commit '
dbf52ec37b835973d8f357af2a16694c98894c4d':
Fix global variable initialization for linker
Elliott Hughes [Fri, 25 Jul 2014 01:03:33 +0000 (01:03 +0000)]
am
d6f614a4: Merge "Implement twalk(3), add unit tests."
* commit '
d6f614a4e16b0fcf4a4fba748bf21fc0017d3619':
Implement twalk(3), add unit tests.
Dmitriy Ivanov [Thu, 24 Jul 2014 23:58:31 +0000 (23:58 +0000)]
am
65549969: Fix global variable initialization for linker
* commit '
65549969488bbce7f5d1b57714ba32c466943470':
Fix global variable initialization for linker
Dmitriy Ivanov [Thu, 24 Jul 2014 22:33:25 +0000 (15:33 -0700)]
Fix global variable initialization for linker
Linker now calls init functions for itself.
(cherry picked from commit
4151ea73b75e274d1ff80b42d9d457a783208516)
Change-Id: I3300fe22de8ad8466a5b1c2d551429769a42852d
Raghu Gandham [Thu, 24 Jul 2014 23:46:28 +0000 (23:46 +0000)]
am
34b258dd: [MIPS] Fix atomic_is_lock_free test for mips32. On 32-bit MIPS, 64-bit atomic ops are achieved through locks. So allow the test to fail for atomic_intmax_t on 32-bit MIPS.
* commit '
34b258dd692951ab2236e134e5520367cda60125':
[MIPS] Fix atomic_is_lock_free test for mips32. On 32-bit MIPS, 64-bit atomic ops are achieved through locks. So allow the test to fail for atomic_intmax_t on 32-bit MIPS.
Elliott Hughes [Thu, 24 Jul 2014 23:36:16 +0000 (23:36 +0000)]
am
b902641d: Implement twalk(3), add unit tests.
* commit '
b902641d7303d2ea24c10f6d6e7ff49e7ee75611':
Implement twalk(3), add unit tests.
Duane Sand [Thu, 24 Jul 2014 23:33:44 +0000 (23:33 +0000)]
am
5ade7e3f: [MIPS] Drop soft-fp targets
* commit '
5ade7e3f6bb43d419402aab2c7adca2173e2c584':
[MIPS] Drop soft-fp targets
Raghu Gandham [Thu, 24 Jul 2014 22:56:51 +0000 (15:56 -0700)]
[MIPS] Fix atomic_is_lock_free test for mips32.
On 32-bit MIPS, 64-bit atomic ops are achieved through locks.
So allow the test to fail for atomic_intmax_t on 32-bit MIPS.
(cherry picked from commit
f1837377d215a6eda294b6ac7552b226deee91ce)
Change-Id: I973d999c31c9ab89b5a7b709beff6486b93408f2
Elliott Hughes [Wed, 23 Jul 2014 23:02:26 +0000 (16:02 -0700)]
Implement twalk(3), add unit tests.
I've also added insque(3) and remque(3) (from NetBSD because the OpenBSD
ones are currently broken for non-circular lists).
I've not added the three hash table functions that should be in this header
because they operate on a single global hash table and thus aren't likely
to be useful.
Bug: https://code.google.com/p/android/issues/detail?id=73719
(cherry picked from commit
3e424d0a241f8ae5194514dabc4ad899f5a5416d)
Change-Id: I5882a6b48c80fea8ac6b9c27e7b9de10b202b4ff
Elliott Hughes [Thu, 24 Jul 2014 22:11:05 +0000 (22:11 +0000)]
Merge "Implement twalk(3), add unit tests."
Elliott Hughes [Wed, 23 Jul 2014 23:02:26 +0000 (16:02 -0700)]
Implement twalk(3), add unit tests.
I've also added insque(3) and remque(3) (from NetBSD because the OpenBSD
ones are currently broken for non-circular lists).
I've not added the three hash table functions that should be in this header
because they operate on a single global hash table and thus aren't likely
to be useful.
Bug: https://code.google.com/p/android/issues/detail?id=73719
Change-Id: I97397a7b921e2e860fd9c8032cafd9097380498a
Elliott Hughes [Mon, 28 Jul 2014 22:33:51 +0000 (22:33 +0000)]
Merge "syscall(3)'s return type should be long."
Elliott Hughes [Mon, 28 Jul 2014 19:24:22 +0000 (12:24 -0700)]
syscall(3)'s return type should be long.
This doesn't require us to change any of the syscall implementations
because (a) the LP32 ones have sizeof(int) == sizeof(long) anyway,
which is how we never noticed this bug before and (b) the LP64 ones
all use a 64-bit register for the result (and for the syscall number
too).
Bug: https://code.google.com/p/android/issues/detail?id=73952
Change-Id: I9866c3579a7a94de27bfbe80ad7a822c3183c7fb
Elliott Hughes [Mon, 28 Jul 2014 16:44:57 +0000 (16:44 +0000)]
Merge "Use vsnprintf(3) in syslog(3)."
Elliott Hughes [Sat, 26 Jul 2014 03:31:47 +0000 (20:31 -0700)]
Use vsnprintf(3) in syslog(3).
It seemed like a clever trick to use the internal log message formatting
code in syslog(3), but on reflection that means you can't (for example)
format floating point numbers. This patch switches us over to using good
old vsnprintf(3), even though that requires us to jump through a few hoops.
There's no obvious way to unit test this, so I wrote a little program and
ran that.
(cherry-pick of
b1b60c30bf321c0fc02264b953b5c16c49d34457.)
Bug:
14292866
Change-Id: I9c83500ba9cbb209b6f496067a91bf69434eeef5
Elliott Hughes [Fri, 25 Jul 2014 22:01:28 +0000 (22:01 +0000)]
Merge "Start hiding "private/bionic_time.h"."
Elliott Hughes [Fri, 25 Jul 2014 18:55:59 +0000 (11:55 -0700)]
Start hiding "private/bionic_time.h".
Bug:
15765976
Change-Id: Ibd9cf07067ec8dffe9fda6c3d498d4ab90708220
Elliott Hughes [Fri, 25 Jul 2014 23:19:40 +0000 (23:19 +0000)]
Merge "Remove localtime_tz and strftime_tz."
Elliott Hughes [Fri, 25 Jul 2014 22:50:31 +0000 (15:50 -0700)]
Remove localtime_tz and strftime_tz.
This also brings our copy of strftime.c much closer to upstream, though
we still have several GNU extensions and hacks to deal with Android32's
broken time_t.
Bug:
15765976
Change-Id: Ic9ef36e8acd3619504ecc4d73feec2b61fd4dfa1
Dan Albert [Fri, 25 Jul 2014 18:35:03 +0000 (18:35 +0000)]
Merge "en_US.UTF-8 is also supported."
Dan Albert [Fri, 25 Jul 2014 18:24:03 +0000 (11:24 -0700)]
en_US.UTF-8 is also supported.
Change-Id: Ic35fad3596dc5e24ee8ae35543a274a471f27bb2
Dmitriy Ivanov [Thu, 24 Jul 2014 23:09:17 +0000 (23:09 +0000)]
Merge "Fix global variable initialization for linker"
Dmitriy Ivanov [Thu, 24 Jul 2014 22:33:25 +0000 (15:33 -0700)]
Fix global variable initialization for linker
Linker now calls init functions for itself.
Change-Id: Ibd099812493041ac70f591e3f379ee742b4683b8
Duane Sand [Thu, 24 Jul 2014 19:48:30 +0000 (19:48 +0000)]
am
c86950cb: [MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models
* commit '
c86950cb3f50ead0c9a9d0366b870d6c6e1b91c8':
[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models
Christopher Ferris [Thu, 24 Jul 2014 19:47:58 +0000 (19:47 +0000)]
am
bc74ecfa: HACK: Disable syslog going to android log.
* commit '
bc74ecfaf5de47056fd8a48db65c0e5aef892f0c':
HACK: Disable syslog going to android log.
Nick Kralevich [Thu, 24 Jul 2014 19:46:25 +0000 (19:46 +0000)]
am
92d8b232: debuggerd: if PR_GET_DUMPABLE=0, don\'t ask for dumping
* commit '
92d8b2320a4c3911452227f560ae4a39e83b0abf':
debuggerd: if PR_GET_DUMPABLE=0, don't ask for dumping
Colin Cross [Thu, 24 Jul 2014 19:23:45 +0000 (19:23 +0000)]
am
49fbec6d: HACK: remove %m support from printf.
* commit '
49fbec6d9aee62462a4acf3ba47788ca1e35be37':
HACK: remove %m support from printf.
Elliott Hughes [Thu, 24 Jul 2014 18:29:55 +0000 (18:29 +0000)]
am
8dbe3f0f: Merge "[MIPS] Drop soft-fp targets"
* commit '
8dbe3f0f51f0cd26c22df82bdef9a2f8caea7ef6':
[MIPS] Drop soft-fp targets
Duane Sand [Thu, 24 Jul 2014 17:56:54 +0000 (10:56 -0700)]
[MIPS] Drop soft-fp targets
(cherry picked from commit
ba23bd0a409bb0e43c57dabee96b2ae52481d5b7)
Change-Id: Ica09192c2760d38ceebc14e23a5d3ba94c20764c
Duane Sand [Mon, 14 Jul 2014 22:30:14 +0000 (15:30 -0700)]
[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models
Save and restore floating point registers via 64-bit
load/stores when possible. Use assembler's builtin macro
ops to generate pairs of 32-bit load/stores on Mips I cpus.
Some cpus or FR modes have only 16 even-numbered dp fp regs.
This is exposed by _MIPS_FPSET, defined by existing compilers.
(cherry picked from commit
dd37251c473e1483faba0fd5aaf30e7a55582e8a)
Change-Id: Ibd43653701a363a77af85121d3cbd229d132a06a
Elliott Hughes [Thu, 24 Jul 2014 04:03:03 +0000 (04:03 +0000)]
am
7d22a451: Merge "[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models"
* commit '
7d22a4519610f830178bbff32d961a2784354397':
[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models
Christopher Ferris [Thu, 24 Jul 2014 01:05:58 +0000 (18:05 -0700)]
HACK: Disable syslog going to android log.
Bug:
14292866
Change-Id: I3adc448dbacfeecd32508ddccf27be3aa653e466
Nick Kralevich [Wed, 23 Jul 2014 20:56:23 +0000 (13:56 -0700)]
debuggerd: if PR_GET_DUMPABLE=0, don't ask for dumping
PR_GET_DUMPABLE is used by an application to indicate whether or
not core dumps / PTRACE_ATTACH should work.
Security sensitive applications often set PR_SET_DUMPABLE to 0 to
disable core dumps, to avoid leaking sensitive memory to persistent
storage. Similarly, they also set PR_SET_DUMPABLE to zero to prevent
PTRACE_ATTACH from working, again to avoid leaking the contents
of sensitive memory.
Honor PR_GET_DUMPABLE when connecting to debuggerd. If an application
has said it doesn't want its memory dumped, then we shouldn't
ask debuggerd to dump memory on its behalf.
FORTIFY_SOURCE tests: Modify the fortify_source tests to set
PR_SET_DUMPABLE=0. This reduces the total runtime of
/data/nativetest/bionic-unit-tests/bionic-unit-tests32 from approx
53 seconds to 25 seconds. There's no need to connect to debuggerd
when running these tests.
Bug:
16513137
(cherry picked from commit
be0e43b77676338fd5e6a82c9cc2b6302d579de2)
Change-Id: I6e1a9bce564e94fc19893d639b15f38c549cabfa
Nick Kralevich [Wed, 23 Jul 2014 23:00:01 +0000 (23:00 +0000)]
am
f9650757: Merge "debuggerd: if PR_GET_DUMPABLE=0, don\'t ask for dumping"
* commit '
f9650757493060d950cc28c5a58acdcdd41f02e9':
debuggerd: if PR_GET_DUMPABLE=0, don't ask for dumping
Elliott Hughes [Thu, 24 Jul 2014 23:20:59 +0000 (23:20 +0000)]
Merge "[MIPS] Fix atomic_is_lock_free test for mips32. On 32-bit MIPS, 64-bit atomic ops are achieved through locks. So allow the test to fail for atomic_intmax_t on 32-bit MIPS."
Raghu Gandham [Thu, 24 Jul 2014 22:56:51 +0000 (15:56 -0700)]
[MIPS] Fix atomic_is_lock_free test for mips32.
On 32-bit MIPS, 64-bit atomic ops are achieved through locks.
So allow the test to fail for atomic_intmax_t on 32-bit MIPS.
Change-Id: I78e7807e50f899a0fea0d5b388d9ebb53228aaa0
Colin Cross [Wed, 23 Jul 2014 21:43:44 +0000 (14:43 -0700)]
HACK: remove %m support from printf.
The change that added this support causes a cpu hard lock on one
device. This code clearly isn't at fault, but disabling it to
unblock until we can find a real fix.
Bug:
16484311
Change-Id: I33834dc49d959ae403b10d2c7cad12ae2950f772
Elliott Hughes [Wed, 23 Jul 2014 20:20:33 +0000 (20:20 +0000)]
am
4126c129: Fix belated review comments on syslog change.
* commit '
4126c129613e27717c110626070c44ea7e3f29ce':
Fix belated review comments on syslog change.
Elliott Hughes [Wed, 23 Jul 2014 20:18:59 +0000 (20:18 +0000)]
am
f9bfc2ff: Merge "Fix belated review comments on syslog change."
* commit '
f9bfc2ff8eb5db99a106a8a384498165361291ce':
Fix belated review comments on syslog change.
Elliott Hughes [Wed, 23 Jul 2014 18:38:38 +0000 (11:38 -0700)]
Fix belated review comments on syslog change.
Bug:
14292866
(cherry picked from commit
afe6360627ef3f0e9bc8f45535fbfae3354f3ae0)
Change-Id: I8e3cc6b37b2539e51a27261ffb5d6e58266ce11d
Elliott Hughes [Wed, 23 Jul 2014 19:02:16 +0000 (19:02 +0000)]
am
467e49be: Merge "Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros."
* commit '
467e49be70231f55bd7ba908407b4413294d3bfc':
Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros.
Nick Kralevich [Wed, 23 Jul 2014 22:51:37 +0000 (22:51 +0000)]
Merge "debuggerd: if PR_GET_DUMPABLE=0, don't ask for dumping"
Nick Kralevich [Wed, 23 Jul 2014 20:56:23 +0000 (13:56 -0700)]
debuggerd: if PR_GET_DUMPABLE=0, don't ask for dumping
PR_GET_DUMPABLE is used by an application to indicate whether or
not core dumps / PTRACE_ATTACH should work.
Security sensitive applications often set PR_SET_DUMPABLE to 0 to
disable core dumps, to avoid leaking sensitive memory to persistent
storage. Similarly, they also set PR_SET_DUMPABLE to zero to prevent
PTRACE_ATTACH from working, again to avoid leaking the contents
of sensitive memory.
Honor PR_GET_DUMPABLE when connecting to debuggerd. If an application
has said it doesn't want its memory dumped, then we shouldn't
ask debuggerd to dump memory on its behalf.
FORTIFY_SOURCE tests: Modify the fortify_source tests to set
PR_SET_DUMPABLE=0. This reduces the total runtime of
/data/nativetest/bionic-unit-tests/bionic-unit-tests32 from approx
53 seconds to 25 seconds. There's no need to connect to debuggerd
when running these tests.
Bug:
16513137
Change-Id: Idc7857b089f3545758f4d9b436b783d580fb653f
Elliott Hughes [Thu, 24 Jul 2014 03:57:12 +0000 (03:57 +0000)]
Merge "[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models"
Duane Sand [Mon, 14 Jul 2014 22:30:14 +0000 (15:30 -0700)]
[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models
Save and restore floating point registers via 64-bit
load/stores when possible. Use assembler's builtin macro
ops to generate pairs of 32-bit load/stores on Mips I cpus.
Some cpus or FR modes have only 16 even-numbered dp fp regs.
This is exposed by _MIPS_FPSET, defined by existing compilers.
Change-Id: I7f617a3ffea8da41c402ef3a68ab32c91d3d7622
Elliott Hughes [Wed, 23 Jul 2014 20:07:38 +0000 (20:07 +0000)]
Merge "Fix belated review comments on syslog change."
Elliott Hughes [Wed, 23 Jul 2014 18:42:30 +0000 (18:42 +0000)]
am
2aa142ff: Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros.
* commit '
2aa142ffb20337e60f81642bed1c11d24a3756b1':
Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros.
Elliott Hughes [Wed, 23 Jul 2014 18:38:38 +0000 (11:38 -0700)]
Fix belated review comments on syslog change.
Bug:
14292866
Change-Id: I3cd92084cb55b5673f6ba62d51952941b79deb51
Elliott Hughes [Wed, 23 Jul 2014 18:10:48 +0000 (11:10 -0700)]
Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros.
(cherry picked from commit
5d2f86f36341b76f84770d8966d7686a59555ae9)
Change-Id: Iddf22c8d9ff7a4d1205d37bb58c6235af681d795
Dmitriy Ivanov [Mon, 28 Jul 2014 23:38:32 +0000 (23:38 +0000)]
Merge "Fix 'adb shell /system/bin/linker' crash"
Dmitriy Ivanov [Mon, 28 Jul 2014 22:05:51 +0000 (15:05 -0700)]
Fix 'adb shell /system/bin/linker' crash
Bug: https://code.google.com/p/android/issues/detail?id=63174
Change-Id: I072290ea11109c07f277ad3dec7f44fcb7bf6aa6
Elliott Hughes [Thu, 24 Jul 2014 18:06:45 +0000 (18:06 +0000)]
Merge "[MIPS] Drop soft-fp targets"
Duane Sand [Thu, 24 Jul 2014 17:56:54 +0000 (10:56 -0700)]
[MIPS] Drop soft-fp targets
Change-Id: I583bf8242d3034ebfc48548499cdb3316094c8e3
Elliott Hughes [Wed, 23 Jul 2014 16:50:57 +0000 (16:50 +0000)]
am
4ac83fad: Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files.
* commit '
4ac83fad3cdc486c00199eef9ea2a95d354839c4':
Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files.
Elliott Hughes [Wed, 23 Jul 2014 16:42:30 +0000 (16:42 +0000)]
am
ea42a6ca: Merge "Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files."
* commit '
ea42a6caea9d5cb5a92939ba0696856306b1d56b':
Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files.
Elliott Hughes [Wed, 23 Jul 2014 04:24:47 +0000 (21:24 -0700)]
Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files.
(cherry picked from commit
3758a244cf758046b40f630a11aed41e68c9cfc2)
Change-Id: I6ffb83b4a7b7746b095205c664cf025a72ead179
Elliott Hughes [Wed, 23 Jul 2014 03:51:55 +0000 (03:51 +0000)]
am
3ff6d95a: Remove the unused swab.S.
* commit '
3ff6d95a9b26154c94b5cf130649cf99eb6a4010':
Remove the unused swab.S.
Elliott Hughes [Wed, 23 Jul 2014 03:21:31 +0000 (20:21 -0700)]
Remove the unused swab.S.
(cherry picked from commit
ca70453e84a88405d30f64d603f9a9b5f53f1243)
Change-Id: I4dc13de0bdeb7abb3bd47b0397546ad7d1f11d49
Elliott Hughes [Wed, 23 Jul 2014 03:33:41 +0000 (03:33 +0000)]
am
e26ac7f7: Merge "Remove the unused swab.S."
* commit '
e26ac7f776c4011d17e7609efafa116ac4db25ff':
Remove the unused swab.S.
Duane Sand [Wed, 23 Jul 2014 02:48:41 +0000 (02:48 +0000)]
am
5d7775c6: [MIPS] Allow united mipsel and mips64el gcc toolchain
* commit '
5d7775c6dfa8f9b2ae313c9493525d54a2d04b38':
[MIPS] Allow united mipsel and mips64el gcc toolchain
Elliott Hughes [Wed, 23 Jul 2014 02:44:48 +0000 (02:44 +0000)]
am
79b5a396: Merge "[MIPS] Allow united mipsel and mips64el gcc toolchain"
* commit '
79b5a396178e798af4ba9b327b884ae014f15bb2':
[MIPS] Allow united mipsel and mips64el gcc toolchain
Duane Sand [Wed, 16 Jul 2014 19:29:34 +0000 (12:29 -0700)]
[MIPS] Allow united mipsel and mips64el gcc toolchain
Explicitly tell 32-bit links that they are doing 32-bit links.
This is needed when using united 32-bit and 64-bit toolchains.
This is harmless when using older separate 32-only toolchains.
(cherry picked from commit
f541650828f75b3dab22c9c0caab845be78b80fc)
Change-Id: I8df0ee7d36c6409458e18bea4e0e8b132edf77dc
Sreeram Ramachandran [Wed, 23 Jul 2014 00:10:16 +0000 (00:10 +0000)]
am
2582f02a: Cleanup: Delete dead code.
* commit '
2582f02a01cd56c56a4e6c9de4444a6ec937cc37':
Cleanup: Delete dead code.
Elliott Hughes [Wed, 23 Jul 2014 03:27:59 +0000 (03:27 +0000)]
Merge "Remove the unused swab.S."
Elliott Hughes [Wed, 23 Jul 2014 03:21:31 +0000 (20:21 -0700)]
Remove the unused swab.S.
Change-Id: Id30eac5a21b649d6a039a0d7ca0496177fbfb571
Sreeram Ramachandran [Sun, 20 Jul 2014 21:10:45 +0000 (14:10 -0700)]
Cleanup: Delete dead code.
Bug:
15413389
Change-Id: I315468832ef18ffc84174e54774ab63b86d284dc