Dmitriy Ivanov
e6f46bfb90
am 83b637fa: Merge "Replace NULL with nullptr"
...
* commit '83b637fa28e072aa73691b5ddc588293f06cb54b':
Replace NULL with nullptr
2014-08-29 22:51:53 +00:00
Dmitriy Ivanov
83b637fa28
Merge "Replace NULL with nullptr"
2014-08-29 22:30:07 +00:00
Dmitriy Ivanov
851135bf99
Replace NULL with nullptr
...
Change-Id: Iad50be617d318ca98883b843229c960ad5b9afa9
2014-08-29 14:13:48 -07:00
Elliott Hughes
079841285e
am 72dc86ec: am 1f39afc8: Merge "The host prebuilt glibc is 2.11, so remove workarounds for 2.9."
...
* commit '72dc86ec5f8927d7be03b110a61aba45e94b4cfa':
The host prebuilt glibc is 2.11, so remove workarounds for 2.9.
2014-08-29 18:49:21 +00:00
Dmitriy Ivanov
05e190c093
Look into ld_preloads before current library
...
Change lookup order during relocation so that
ld_preloads always precede caller (unless caller
is main executable).
Asan needs this change in order to intercept libc->libc
calls.
Bug: 15432753
Change-Id: If69aa16efe59aa35bb30e96feb83d08f1efbec86
2014-08-29 11:46:06 -07:00
Elliott Hughes
72dc86ec5f
am 1f39afc8: Merge "The host prebuilt glibc is 2.11, so remove workarounds for 2.9."
...
* commit '1f39afc8d4cf402a8aa46d6cb121c62d289922d3':
The host prebuilt glibc is 2.11, so remove workarounds for 2.9.
2014-08-29 18:30:59 +00:00
Elliott Hughes
1f39afc8d4
Merge "The host prebuilt glibc is 2.11, so remove workarounds for 2.9."
2014-08-29 18:12:36 +00:00
Chih-Hung Hsieh
d3acdf1660
am 46623c1c: am cc4259ed: Merge "Ignore all __weak_alias in OpenBSD libC."
...
* commit '46623c1cc7045d01ad950a4d2cad2a2722efc5ce':
Ignore all __weak_alias in OpenBSD libC.
2014-08-29 11:56:38 +00:00
Elliott Hughes
7187c84058
am cd6657f9: am 29f06943: Merge "Add GNU-compatible strerror_r."
...
* commit 'cd6657f9eacb8dff723be48ffff72e153b4c82c6':
Add GNU-compatible strerror_r.
2014-08-29 11:56:38 +00:00
Chih-Hung Hsieh
46623c1cc7
am cc4259ed: Merge "Ignore all __weak_alias in OpenBSD libC."
...
* commit 'cc4259ed9254ae66f63cacc3ad50963c4058eb1c':
Ignore all __weak_alias in OpenBSD libC.
2014-08-29 11:39:56 +00:00
Elliott Hughes
cd6657f9ea
am 29f06943: Merge "Add GNU-compatible strerror_r."
...
* commit '29f06943a19ef2271a08f4223f597a3383f0d9c0':
Add GNU-compatible strerror_r.
2014-08-29 11:39:55 +00:00
Chih-Hung Hsieh
cc4259ed92
Merge "Ignore all __weak_alias in OpenBSD libC."
2014-08-29 03:10:44 +00:00
Elliott Hughes
f6824b26ae
The host prebuilt glibc is 2.11, so remove workarounds for 2.9.
...
Change-Id: I1072fcebc8b3018580a9d069fe6eca9c4e74e865
2014-08-28 19:28:35 -07:00
Elliott Hughes
29f06943a1
Merge "Add GNU-compatible strerror_r."
2014-08-29 02:26:34 +00:00
Elliott Hughes
416d7ddaff
Add GNU-compatible strerror_r.
...
We already had the POSIX strerror_r, but some third-party code defines
_GNU_SOURCE and expects to get the GNU strerror_r instead.
This exposed a bug in the libc internal logging functions where unlike
their standard brethren they wouldn't return the number of bytes they'd
have liked to have written.
Bug: 16243479
Change-Id: I1745752ccbdc569646d34f5071f6df2be066d5f4
2014-08-28 16:37:09 -07:00
Chih-Hung Hsieh
b6b5cb5389
Ignore all __weak_alias in OpenBSD libC.
...
GCC assembler allows xyz to be redeclared as weak,
by __weak_alias(xyz, _xyz), while _xyz is undefined.
Clang does not like that but silently generates no code.
It will reject its own .s file if the assembly code is saved first.
Since we have no reason to define xyz or _xyz as weak symbol now,
and _xyz is a macro to xyz, we simplify libC to have only
xyz defined as global.
BUG: 17186746
Change-Id: I24b154425838683cae69248cc750c59e26fd5467
2014-08-28 15:10:01 -07:00
Elliott Hughes
1470c824a9
am eceb417d: am 67f1f3b1: Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
...
* commit 'eceb417d2817aace3207943cc90b81026d505f80':
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
2014-08-28 04:16:11 +00:00
Elliott Hughes
53c39aab6e
am 0019c7b5: resolved conflicts for merge of a0eeb0b6 to lmp-dev-plus-aosp
...
* commit '0019c7b5a05a7c79e3ab9b72cae9bcdf8d22491e':
Fix pthread_getattr_np for the main thread.
2014-08-28 04:11:48 +00:00
Elliott Hughes
eceb417d28
am 67f1f3b1: Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
...
* commit '67f1f3b171ecd5f68f51465bbe4b8c8440bb6b2e':
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
2014-08-28 03:37:22 +00:00
Elliott Hughes
0019c7b5a0
resolved conflicts for merge of a0eeb0b6 to lmp-dev-plus-aosp
...
Change-Id: I84193689c0d6a9ee70b8da3c509694eb6d747d4a
2014-08-27 20:03:04 -07:00
Elliott Hughes
f5f59e3756
am 9560aaba: am f4e721dd: Merge "Have pthread_attr_getstack for the main thread report RLIMIT_STACK..."
...
* commit '9560aaba8ff6c667495de590a097709cb95bba24':
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
2014-08-28 00:13:16 +00:00
Elliott Hughes
9560aaba8f
am f4e721dd: Merge "Have pthread_attr_getstack for the main thread report RLIMIT_STACK..."
...
* commit 'f4e721dd519db89c504c8944763811a3df956b32':
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
2014-08-28 00:00:07 +00:00
Christopher Ferris
96e0a433f9
am 5f6bab1a: am af9da4a3: Merge "Replace snprintf calls in linker."
...
* commit '5f6bab1ac2212a23d8afd96dceb51b793b05dd2f':
Replace snprintf calls in linker.
2014-08-27 23:53:09 +00:00
Elliott Hughes
67f1f3b171
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
...
...rather than just what's already mapped in. This seems somewhat
contrary to POSIX's "All pages within the stack described by stackaddr
and stacksize shall be both readable and writable by the thread", but
it's what glibc does.
Bug: 17111575
(cherry picked from commit 9e4ffa7032eaab308876b8e3da86b05c3c613878)
Change-Id: I73f219a569917b2e4546c09436d7ef5231facc07
2014-08-27 16:50:53 -07:00
Elliott Hughes
a0eeb0b69f
Merge "Fix pthread_getattr_np for the main thread." into lmp-dev
2014-08-27 23:49:56 +00:00
Elliott Hughes
f4e721dd51
Merge "Have pthread_attr_getstack for the main thread report RLIMIT_STACK..."
2014-08-27 23:43:27 +00:00
Christopher Ferris
5f6bab1ac2
am af9da4a3: Merge "Replace snprintf calls in linker."
...
* commit 'af9da4a343d8fe2456e9d861bbd75bba67f2193c':
Replace snprintf calls in linker.
2014-08-27 23:41:56 +00:00
Chih-Hung Hsieh
42e5994ff1
am 2c449617: am fbe9d3df: Merge "Fix strlen function type for mips."
...
* commit '2c449617c37c7b5419908499740530af2f1ca6f0':
Fix strlen function type for mips.
2014-08-27 23:36:22 +00:00
Christopher Ferris
af9da4a343
Merge "Replace snprintf calls in linker."
2014-08-27 23:29:18 +00:00
Chih-Hung Hsieh
2c449617c3
am fbe9d3df: Merge "Fix strlen function type for mips."
...
* commit 'fbe9d3dfeb0e09c0e4aa3221aace8249c0efe881':
Fix strlen function type for mips.
2014-08-27 23:24:27 +00:00
Yigit Boyar
f227b34d1c
am 80f47ca3: Merge branch \'lmp-dev-plus-aosp\' of https://googleplex-android.googlesource.com/_direct/platform/bionic into lmp-dev-plus-aosp
...
* commit '80f47ca35cf54ac3de8b42b70d81189bd58080c7':
Replace ambiguous cmp instruction with cmpl.
2014-08-27 23:13:49 +00:00
Christopher Ferris
91f854ee7d
am 04f12ef9: am 598d25bf: Merge "Replace snprintf calls in linker." into lmp-dev
...
* commit '04f12ef91c7f4235d6657583679f1dc39718344f':
Replace snprintf calls in linker.
2014-08-27 23:13:48 +00:00
Chih-Hung Hsieh
fbe9d3dfeb
Merge "Fix strlen function type for mips."
2014-08-27 23:09:30 +00:00
Christopher Ferris
052fa3a34c
Replace snprintf calls in linker.
...
When enabling debug malloc, the snprintf calls in the linker fails to
update the buffer.
The problem is that snprintf makes a call to pthread_getspecific that
returns a valid pointer, but the data it points to is zero. This should
never happen and causes the snprintf to stop and do nothing.
Temporarily replace snprintf with a different implementation to work
around this issue.
Bug: 16874447
Bug: 17302493
(cherry pick from commit 172955a4e30b88ce8239a7ef426b4e8903e9923c)
Change-Id: Idca9d417978403d61debfd0434aaa82fd770f33b
2014-08-27 16:01:57 -07:00
Chih-Hung Hsieh
15b914c8f3
Fix strlen function type for mips.
...
Clang complains about incompatible-library-redeclaration.
BUG: 17302369
Change-Id: I3ae36f24846408c6464b84b5bddb1747e1e4a971
2014-08-27 16:00:46 -07:00
Yigit Boyar
80f47ca35c
Merge branch 'lmp-dev-plus-aosp' of https://googleplex-android.googlesource.com/_direct/platform/bionic into lmp-dev-plus-aosp
2014-08-27 23:00:12 +00:00
Christopher Ferris
04f12ef91c
am 598d25bf: Merge "Replace snprintf calls in linker." into lmp-dev
...
* commit '598d25bf78fa632e70cb80d4033572328f5bd1b7':
Replace snprintf calls in linker.
2014-08-27 23:00:10 +00:00
Chih-Hung Hsieh
e561e5db73
am 4f8268e3: Merge "Replace ambiguous cmp instruction with cmpl."
...
* commit '4f8268e38f151724722bcb489c32185a93fd86ba':
Replace ambiguous cmp instruction with cmpl.
2014-08-27 23:00:09 +00:00
Chih-Hung Hsieh
4f8268e38f
Merge "Replace ambiguous cmp instruction with cmpl."
2014-08-27 22:46:07 +00:00
Christopher Ferris
598d25bf78
Merge "Replace snprintf calls in linker." into lmp-dev
2014-08-27 22:42:11 +00:00
Elliott Hughes
9e4ffa7032
Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
...
...rather than just what's already mapped in. This seems somewhat
contrary to POSIX's "All pages within the stack described by stackaddr
and stacksize shall be both readable and writable by the thread", but
it's what glibc does.
Bug: 17111575
Change-Id: If9e2dfad9a603c0d0615a8123aacda4946e95b2c
2014-08-27 15:32:01 -07:00
Christopher Ferris
172955a4e3
Replace snprintf calls in linker.
...
When enabling debug malloc, the snprintf calls in the linker fails to
update the buffer.
The problem is that snprintf makes a call to pthread_getspecific that
returns a valid pointer, but the data it points to is zero. This should
never happen and causes the snprintf to stop and do nothing.
Temporarily replace snprintf with a different implementation to work
around this issue.
Bug: 16874447
Bug: 17302493
Change-Id: I7a500f28adf153150cf2812fae745ff41f1c48d3
2014-08-27 15:30:43 -07:00
Chih-Hung Hsieh
71405a84da
am 2dc7fd03: am 34da32e7: Merge "Add missing type casts before comparison."
...
* commit '2dc7fd03e77e32f85422786cc4bea157354d50be':
Add missing type casts before comparison.
2014-08-27 22:13:22 +00:00
Chih-Hung Hsieh
2dc7fd03e7
am 34da32e7: Merge "Add missing type casts before comparison."
...
* commit '34da32e7dd00270e98b845f8a810a6f12ffffb9b':
Add missing type casts before comparison.
2014-08-27 22:05:14 +00:00
Chih-Hung Hsieh
857fa6b2a3
Replace ambiguous cmp instruction with cmpl.
...
Clang assembler rejects ambiguous cmp instruction.
BUG: 17302482
Change-Id: I74f49de87464541f9fe6fa288e4093a9fbf37120
2014-08-27 15:04:23 -07:00
Christopher Ferris
895854f430
am 725fae1d: am 6ecd1cd1: Merge "Use the default unwind code."
...
* commit '725fae1de487cb202d5429afb440541b79e8381e':
Use the default unwind code.
2014-08-27 21:50:09 +00:00
Chih-Hung Hsieh
34da32e7dd
Merge "Add missing type casts before comparison."
2014-08-27 21:44:12 +00:00
Christopher Ferris
725fae1de4
am 6ecd1cd1: Merge "Use the default unwind code."
...
* commit '6ecd1cd195546ecaf4317beda3f1a1a27f1d0d57':
Use the default unwind code.
2014-08-27 21:35:16 +00:00
Christopher Ferris
6ecd1cd195
Merge "Use the default unwind code."
2014-08-27 21:21:28 +00:00
Chih-Hung Hsieh
a2c6ae6f84
Add missing type casts before comparison.
...
BUG: 17300548
Change-Id: Ice9868f36c8fa8cd40bb13741b0e33c8f8d354fd
2014-08-27 13:45:37 -07:00