Christopher Ferris
3115b34c92
Merge "fix runtime issues for scripts"
2014-12-11 18:32:00 +00:00
Elliott Hughes
e7b8bc4e29
Merge "Clean up DNS proxying."
2014-12-11 18:12:10 +00:00
Elliott Hughes
9773fa3ffd
Clean up DNS proxying.
...
Remove code duplication and fall back to trying directly if the proxy
isn't available. With this, tests still work if netd is dead (perhaps
because you've run "adb shell stop", or because you're running on the host).
Bug: 18547878
Change-Id: Ia4a9aa18b1fc79e09735107246989fa7fc6c8455
2014-12-10 17:14:02 -08:00
Christopher Ferris
fec605294e
Merge "Fix missing symbol for debug malloc."
2014-12-10 20:33:52 +00:00
Elliott Hughes
3a49cfe3f2
Merge "Fix the setjmp tests for mips."
2014-12-10 20:04:52 +00:00
Elliott Hughes
1510a1c1ae
Fix the setjmp tests for mips.
...
Although the LP32 mips sigset_t is large enough to represent all signals,
their jmp_buf is too small. This test succeeded on arm and x86 because the
RT signals were never in the 'expected' sigset_t, so the equality comparison
with the 'actual' sigset_t worked fine --- everyone was blind to the RT
signal. On mips the tests fail because the 'expected' sigset_t does contain
the RT signal but the 'actual' doesn't because the jmp_buf only saves and
restores the first 32 signals.
There are 32 free bits (currently used as padding) in the LP32 mips jmp_buf,
and they might choose to use those to provide better support than the other
two platforms, but I'll leave that to them. It will be easy to just remove
the #if defined(__LP64__) from this change in that case.
For mips64 it's not to late to increase the size of the jmp_buf and fix
the setjmp family, but since there are decisions to be made here for LP32,
I'll leave it all to Imagination folks...
Bug: 16918359
Change-Id: I6b723712fce0e9210dafa165d8599d950b2d3500
2014-12-10 11:48:19 -08:00
Elliott Hughes
a53c504e0c
Merge "Fix arm64 clone stack handling."
2014-12-10 19:45:48 +00:00
Yabin Cui
3337435ec8
Merge "Use machine/timespec.h to separate timespec definition."
2014-12-10 19:29:24 +00:00
Christopher Ferris
3f61f89b55
Fix missing symbol for debug malloc.
...
Bug: 18686270
Change-Id: I800a6f0940060218413df652d74aca91f6a339f8
2014-12-10 11:10:00 -08:00
Elliott Hughes
51f5d83237
Fix arm64 clone stack handling.
...
Make sure we adjust the stack pointer so a signal can't overwrite data.
Bug: 15195265
Change-Id: I5ab9469a82cb214c32f40a713268a1ab74a4c6fa
2014-12-10 11:08:47 -08:00
Elliott Hughes
0952a5540e
Merge "Use the stmdb instead of str to save the fn/arg"
2014-12-10 18:53:48 +00:00
Jiangli Yuan
c3d1728583
Use the stmdb instead of str to save the fn/arg
...
Directly save data into stack without properly adjustment
of stack point is dangous. For example, if a signal comes,
kernel will put sigframe into userspace's stack, which
will overwrite the saved data if sp is not adjusted properly.
Bug: 15195265
Change-Id: Iea0cadfd3b94d50cf40252ad52fe5950811b9192
Signed-off-by: Jiangli Yuan <a6808c@motorola.com >
2014-12-10 18:47:01 +00:00
Kyunam Jo
fa343e630d
fix runtime issues for scripts
...
now, some script to update kernel-headers is not working.
because of wrong variable value and test codes.
so this issue is fixed.
Change-Id: Iffae9607858cc3c1c58fa24244be217b5a1ab06e
2014-12-10 07:53:07 +00:00
Yabin Cui
db49903732
Use machine/timespec.h to separate timespec definition.
...
Bug: 18627763
Change-Id: Ib1c406320f0ecc3705d19183a48f986cdf57c279
2014-12-10 06:36:11 +00:00
Elliott Hughes
6a6845244c
Merge "Fix ptsname(3) and ttyname(3) to use TLS."
2014-12-10 04:39:07 +00:00
Elliott Hughes
a381fe8ebc
Fix ptsname(3) and ttyname(3) to use TLS.
...
Be safe by default.
Change-Id: I6c4a3f1fd4eee3a651b3162ce95b7e873de57521
2014-12-09 20:30:23 -08:00
Elliott Hughes
3592743f71
Merge "Move BSD stuff together in <sys/endian.h>."
2014-12-10 04:16:55 +00:00
Elliott Hughes
824f914cae
Move BSD stuff together in <sys/endian.h>.
...
Change-Id: I8bb511840f3cd98d5008034e405d82e923bd3203
2014-12-09 19:44:42 -08:00
Elliott Hughes
3f1c604c9d
Merge "<net/route.h> should include IPv6 too."
2014-12-09 23:16:32 +00:00
Elliott Hughes
a7feda3731
<net/route.h> should include IPv6 too.
...
Change-Id: I866097d8468aa8f326117d072444ebbc2a690719
2014-12-09 15:08:24 -08:00
Elliott Hughes
7381e14521
Merge "Sync <net/if_types.h> with upstream."
2014-12-09 23:07:45 +00:00
Elliott Hughes
1ec05b7c78
Sync <net/if_types.h> with upstream.
...
Change-Id: I2c2ca47f5a21b78754c03deb3e9467ab79d9d033
2014-12-09 15:03:51 -08:00
Yabin Cui
94926f8cfa
Merge "support _POSIX_REALTIME_SIGNALS"
2014-12-09 20:10:19 +00:00
Yabin Cui
b033761cbf
Merge "Change _POSIX_CPUTIME macro to make it compitable with glibc."
2014-12-09 17:51:37 +00:00
Yabin Cui
725756045e
Change _POSIX_CPUTIME macro to make it compitable with glibc.
...
Change-Id: I7a8dbb74bd622693c9fef60bd779687207517b7d
2014-12-09 09:16:11 -08:00
Yabin Cui
634816055f
support _POSIX_REALTIME_SIGNALS
...
Bug: 18489947
Change-Id: I2e834d68bc10ca5fc7ebde047b517a3074179475
2014-12-08 21:52:43 -08:00
Elliott Hughes
5536044b78
Merge "Simplify our endian.h implementation."
2014-12-09 05:02:37 +00:00
Elliott Hughes
56e017306e
Simplify our endian.h implementation.
...
We can rely on the compiler's builtins. Tested on arm, arm64, mips, x86,
and x86-64.
Change-Id: I0f774ed7e85b3c791a3178d8ef17c6500e6a9ace
2014-12-08 20:35:08 -08:00
Elliott Hughes
aa0002de89
Merge "Merge mips setjmp/longjmp family."
2014-12-09 01:18:32 +00:00
Elliott Hughes
d27ae2f8d7
Merge mips setjmp/longjmp family.
...
Bug: 16918359
Change-Id: I9033a7d178d431ddb09f1cfa6e4bf95ae02346e9
2014-12-08 17:07:53 -08:00
Elliott Hughes
0b7d9d6f37
Merge "Switch arch-mips64/include/machine to a symlink."
2014-12-09 00:51:49 +00:00
Elliott Hughes
2fecbfaeee
Switch arch-mips64/include/machine to a symlink.
...
Imagination already did the work to make the contents of these directories
identical. Let's take advantage of that fact.
Change-Id: Ib101ba39041fb500c9c618fa2020e72aa2ccd9c2
2014-12-08 16:48:34 -08:00
Elliott Hughes
af829f2de9
Merge "Use 64-bit units in the aarch64 setjmp implementation."
2014-12-09 00:39:16 +00:00
Elliott Hughes
9fa2cfbbdb
Use 64-bit units in the aarch64 setjmp implementation.
...
The use of 32-bit units for 64-bit stores and loads was driving me crazy.
Bug: 16918359
Change-Id: Ifb73aad8f8985a2adfcf5913b783ad9424f23e06
2014-12-08 16:23:10 -08:00
Elliott Hughes
86d06dcc74
Merge "Switch arm and arm64 over to the x86 style of jmpbuf."
2014-12-09 00:16:20 +00:00
Elliott Hughes
75096226c8
Switch arm and arm64 over to the x86 style of jmpbuf.
...
Specifically, use the argument to sigsetjmp as a flag in the buffer
to indicate whether or not the signal mask is valid.
Bug: 16918359
Change-Id: I5bb1f1220f14c105c6bc57e0c28c1dc366d1438f
2014-12-08 16:15:59 -08:00
Elliott Hughes
515a2ea1d5
Merge "Fix signal mask save/restore for x86-64."
2014-12-08 21:40:15 +00:00
Elliott Hughes
1c0c0ede57
Fix signal mask save/restore for x86-64.
...
Bug: 16918359
Change-Id: I30bf61e7d5f1c21daa3a1a21d361e98d77220bf3
2014-12-08 12:46:15 -08:00
Elliott Hughes
734f0d645e
Merge "Fix signal mask save/restore for arm64."
2014-12-08 20:27:14 +00:00
Elliott Hughes
7b78e8187e
Fix signal mask save/restore for arm64.
...
Bug: 16918359
Change-Id: Ieb15f7f1658f5accee05665b72ba17831a80ea9d
2014-12-06 11:18:00 -08:00
Elliott Hughes
7d3a99b1bb
Merge "Clean up the x86-64 and x86 setjmp families."
2014-12-06 06:23:09 +00:00
Elliott Hughes
8d4c55cc74
Clean up the x86-64 and x86 setjmp families.
...
Bug: 16918359
Change-Id: Ic8ca0af9ea99636bc71f19d46071f1cea6eef982
2014-12-05 22:20:08 -08:00
Elliott Hughes
289f44a459
Merge "Clean up arm setjmp family."
2014-12-05 23:53:47 +00:00
Elliott Hughes
b393299b85
Clean up arm setjmp family.
...
Bug: 16918359
Change-Id: I9b986bdbdbaefe9d9896a820ee8cfe860adfe5c5
2014-12-05 15:39:51 -08:00
Elliott Hughes
872da6d39c
Merge "Clean up the arm64 setjmp."
2014-12-05 23:06:17 +00:00
Elliott Hughes
9fb536de97
Clean up the arm64 setjmp.
...
Note that this doesn't address the fact that we don't save/restore the
real-time signals. But it does let us pass the tests we currently fail.
Bug: 16918359
Change-Id: I063a6926164289a71026a412da7f5dd2ca9a74b3
2014-12-05 15:05:45 -08:00
Tao Bao
2421406711
Merge "Add cache related sysconf queries"
2014-12-05 18:11:53 +00:00
Tao Bao
1f40be97b1
Add cache related sysconf queries
...
Several cache related queries are added, such as
_SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL1_DCACHE_SIZE and etc. For the
moment, we always return 0 for these queries.
Change-Id: I36f67af8128672d8c1eef49d6f2431cca5a94719
2014-12-04 15:24:28 -08:00
Elliott Hughes
9e08a7bbb8
Merge "Restore symbols from <arpa/nameser.h>."
2014-12-04 21:39:58 +00:00
Yabin Cui
295bc2b970
Merge "implement posix_madvise"
2014-12-04 21:30:43 +00:00
Elliott Hughes
42804c4b30
Restore symbols from <arpa/nameser.h>.
...
Bug: 18627252
Bug: https://code.google.com/p/android/issues/detail?id=81690
Change-Id: I45b6c09cf2b5aabb80900e267d27cc0ec93d4dd8
2014-12-04 12:39:46 -08:00
Elliott Hughes
e3e3feaf91
Merge "Make the missing symbols script more useful."
2014-12-04 20:04:39 +00:00
Elliott Hughes
0393221f47
Make the missing symbols script more useful.
...
If something's in POSIX, we don't need to show it in the glibc list.
If something's not implemented by glibc, we don't need to show it in the
POSIX list (because it's probably either a macro or obsolete).
Change-Id: Ied0f8d97d3fffb280c22e9cdf6782430d776c02f
2014-12-04 11:24:48 -08:00
Yabin Cui
5afae64a1b
implement posix_madvise
...
Bug: 18472477
Change-Id: I8183de6c281acf69ed5f7f88351b056b9827b162
2014-12-04 11:01:28 -08:00
Elliott Hughes
230005c4bd
Merge "Code using neon uses ARCH_ARM_HAVE_NEON."
2014-12-04 01:45:54 +00:00
Elliott Hughes
1309dcc842
Code using neon uses ARCH_ARM_HAVE_NEON.
...
Bug: 18556103
Change-Id: Ia8674dda223f81d616d15ee47b402ab4a3f98079
2014-12-03 17:41:26 -08:00
Elliott Hughes
a18af83bc1
Merge "Remove __ARM_HAVE_VFP."
2014-12-04 01:11:09 +00:00
Elliott Hughes
cb4c615bb9
Remove __ARM_HAVE_VFP.
...
Bug: 18556103
Change-Id: I6d4cc6a1b359ad2df1ce6687fd26f392059f6efd
2014-12-03 17:07:01 -08:00
Elliott Hughes
6cbc56b84b
Merge "Implement <pty.h>."
2014-12-04 00:45:42 +00:00
Elliott Hughes
65f0df7873
Implement <pty.h>.
...
Based on the package/apps/Terminal implementation. I'll switch them over
shortly. This also lets us build the toybox version of netcat.
Change-Id: Ia922a100141a67409264b43b937eeca07b21f344
2014-12-03 15:55:34 -08:00
Yabin Cui
1898967e41
Merge "change argument type in madvise"
2014-12-03 19:57:50 +00:00
Yabin Cui
efbb6fb3f7
change argument type in madvise
...
Make madvise prototype the same as linux man page.
Bug: 18539500
Change-Id: If3fd0e1d9539b9e10531ab9087bc4040e32b6e9b
2014-12-03 11:11:50 -08:00
Dmitriy Ivanov
6a447eeffc
Merge "Fix warning: overriding commands for target"
2014-12-03 18:55:56 +00:00
Dmitriy Ivanov
c7cbde320c
Fix warning: overriding commands for target
...
Change-Id: I00fb4d6a8ff388722b75de9a0f4316619aaf9320
2014-12-03 09:51:37 -08:00
Elliott Hughes
91a61f77e2
Merge "Switch x86 and x86-64 to __builtin_bswap*."
2014-12-03 16:20:06 +00:00
Elliott Hughes
244299f4e0
Merge "Switch aarch64 to __builtin_bswap16."
2014-12-03 16:15:45 +00:00
Elliott Hughes
12f35ada43
Switch x86 and x86-64 to __builtin_bswap*.
...
Bug: 18597513
Change-Id: I0781208efb3b560d7c6fa48f41be7bc6fc83521e
2014-12-02 20:16:05 -08:00
Elliott Hughes
1de2548c8e
Switch aarch64 to __builtin_bswap16.
...
It generates the same code.
Bug: 18597513
Change-Id: I164296da8c676668983dd93697c6dfa05f10ec56
2014-12-02 19:55:38 -08:00
Dmitriy Ivanov
8408d7efac
Merge "Fix soinfo_unload"
2014-12-03 03:25:58 +00:00
Dmitriy Ivanov
5ae82cba59
Fix soinfo_unload
...
1. Take into consideration that the local_group_root_
is not set for all of not linked libraries.
2. We need to check visited list earlier to avoid double
soinfo_free.
Change-Id: Iabc0a06a97c63f7e6bd4641731f50bb1466fed4f
2014-12-02 17:28:34 -08:00
Elliott Hughes
baf792bff8
Merge "Remove __ARM_HAVE_HALFWORD_MULTIPLY."
2014-12-03 01:12:48 +00:00
Elliott Hughes
a5602c566e
Remove __ARM_HAVE_HALFWORD_MULTIPLY.
...
Bug: 18556103
Change-Id: I17e498539f77ddf7d1fb980ee93155d3c3ccd85e
2014-12-02 16:58:17 -08:00
Elliott Hughes
6bec3484ee
Merge "Remove __ARM_HAVE_LDREXD."
2014-12-03 00:57:28 +00:00
Elliott Hughes
6651aa6bc1
Remove __ARM_HAVE_LDREXD.
...
No one uses this.
Bug: 18556103
Change-Id: Icecc3a7b5cb0a36960f27d030d8f4f8ee471f86c
2014-12-03 00:57:07 +00:00
Elliott Hughes
f840cefaea
Merge "Kill <machine/exec.h>."
2014-12-03 00:42:56 +00:00
Elliott Hughes
b514026eb2
Kill <machine/exec.h>.
...
Bug: 18546535
Change-Id: I479e003deab21e31eb5caa5393067ed1dc558387
2014-12-02 16:16:29 -08:00
Dmitriy Ivanov
6995c1dcb5
Merge "Extract bionic-prepare-run-on-host to inc file."
2014-12-03 00:02:13 +00:00
Dmitriy Ivanov
06b1b8ceac
Extract bionic-prepare-run-on-host to inc file.
...
Make benchmark run-on-host depend on bionic-prepare-run-on-host.
Change-Id: I0bdbf561b2580d607a49b7c83cc273320ac55429
2014-12-02 15:15:34 -08:00
Elliott Hughes
432f763c0c
Merge "Avoid pathological behavior in OpenBSD's fread."
2014-12-02 22:40:53 +00:00
Elliott Hughes
20841a137b
Avoid pathological behavior in OpenBSD's fread.
...
Bug: https://code.google.com/p/android/issues/detail?id=81155
Bug: 18556607
Change-Id: Idc60976b79610e2202cc42dc393dcb4ca6c42e05
2014-12-02 14:22:02 -08:00
Dmitriy Ivanov
5cd127d3aa
Merge "Fix mips build"
2014-12-02 21:37:50 +00:00
Dmitriy Ivanov
8dd2590549
Merge "Create /system/lib(64)? symlinks for host tests."
2014-12-02 21:30:12 +00:00
Dmitriy Ivanov
20463e3e53
Fix mips build
...
Change-Id: Iddbf06784d19556a55d833e20a68e6ccf5a7c5be
2014-12-02 13:27:40 -08:00
Dmitriy Ivanov
a55126f1f6
Create /system/lib(64)? symlinks for host tests.
...
Replace LD_LIBRARY_PATH with default path for
the tests run on host.
Bug: 18589961
Change-Id: Id4a84b73d25c2ca9c557fcfa19b8169daeaa016b
2014-12-02 12:11:08 -08:00
Yabin Cui
4e7d66ddb5
Merge "Use mmap to create the pthread_internal_t."
2014-12-02 19:45:48 +00:00
Dmitriy Ivanov
291dbf65ca
Merge "Count references for groups instead of instances"
2014-12-02 19:10:04 +00:00
Dmitriy Ivanov
ab972b9adf
Count references for groups instead of instances
...
Count references on the group level to avoid
partially unloading function that might be
referenced by other libraries in the local_group
Bonus: with this change we can correctly unload recursively
linked libraries. is_recursive check is removed.
Also dynamic executables (not .so) with 0 DT_NEEDED libraries
are now correctly linked.
Change-Id: Idfa83baef402840599b93a875f2881d9f020dbcd
2014-12-02 10:54:26 -08:00
Yabin Cui
8574a0670b
Use mmap to create the pthread_internal_t.
...
Bug: 16847284
Change-Id: I488fa236f57aa3acb29b4ffbbab2fab51b0653be
2014-12-02 10:39:25 -08:00
Yabin Cui
46d0b81a94
Merge "restore sigprocmask in setjmp/longjmp test."
2014-12-02 18:37:28 +00:00
Yabin Cui
e323e99ffb
restore sigprocmask in setjmp/longjmp test.
...
Bug: 18571921
Change-Id: Ib8ca7a36abd3ccc729c20c0e32d45b1b33069f65
2014-12-02 10:35:25 -08:00
Dmitriy Ivanov
224fb6144a
Merge "Resolve "unused DT entry" warnings for DT_VERNEED and DT_VERNEEDNUM."
2014-12-02 17:37:18 +00:00
Alexander Ivchenko
e831433fe1
Resolve "unused DT entry" warnings for DT_VERNEED and DT_VERNEEDNUM.
...
Change-Id: Id18310811a6d183878a1d4d26cc2498f4fd00c55
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com >
2014-12-02 15:34:30 +03:00
Christopher Ferris
8374a54813
Merge "Specify .cpu cortex-a15"
2014-12-02 02:29:52 +00:00
Elliott Hughes
ec544e1b35
Merge "Build our benchmarks against glibc too."
2014-12-02 00:57:44 +00:00
Elliott Hughes
212e0e3824
Build our benchmarks against glibc too.
...
Bug: 18556607
Change-Id: I455ac8b93c0835836180e549486bc52d393ee6a6
2014-12-01 16:43:51 -08:00
Elliott Hughes
076f69d828
Merge "Benchmark fread/fwrite both buffered and unbuffered."
2014-12-01 21:43:32 +00:00
Elliott Hughes
6f9d7444e8
Merge "Fix running the bionic benchmarks on the host."
2014-12-01 21:40:25 +00:00
Elliott Hughes
47dc7c974e
Benchmark fread/fwrite both buffered and unbuffered.
...
Bug: 18556607
Change-Id: I53905aedcea75fe550d9c423fb701c2c9bf8e831
2014-12-01 13:12:18 -08:00
Elliott Hughes
f2bb57cfe3
Fix running the bionic benchmarks on the host.
...
Bug: 18556607
Change-Id: I4e75bfcde788b43e1926be1b0146acf09b496390
2014-12-01 13:11:38 -08:00
Yabin Cui
3e6ef3f902
Merge "support _POSIX_CPUTIME"
2014-12-01 17:06:02 +00:00
David 'Digit' Turner
fabb4282be
Merge "libc: Fix headers to allow direct inclusion."
2014-12-01 16:50:04 +00:00
David 'Digit' Turner
aad1a39dfb
libc: Fix headers to allow direct inclusion.
...
These headers are missing a few #includes to allow their direct
inclusion from C
http://b.android.com/79841
Change-Id: Ifc712c17f4da70b26adb67d4d49ed659f53c3621
2014-12-01 15:44:24 +01:00
Bernhard Rosenkränzer
ce46f5576a
Specify .cpu cortex-a15
...
When building with clang without this change, as errors out saying pldw
is an unsupported instruction (because it isn't part of the ARMv7 core
instruction set).
Let as know using pldw is fine.
Change-Id: Ie1f9c4b873e93ab2b3b374d2d46e476a4e581710
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org >
2014-11-30 22:17:30 +01:00
Elliott Hughes
7602628e97
Merge "Add error-check when mapping socket to fd"
2014-11-27 19:05:13 +00:00
Robert Alm
3638a83657
Add error-check when mapping socket to fd
...
The call to fdopen can fail in several ways.
The fprintf on the next line will then dereference a
NULL-pointer FILE*.
Added a NULL-check, closed the socket, returned system error
and added a comment about it.
Change-Id: I7a6b26aa3c79452b1fdd76af12dfa75da88cbad7
2014-11-27 11:01:50 -08:00
Elliott Hughes
4614032705
Merge "Move a private x86-64 header file out of the limelight."
2014-11-27 17:20:50 +00:00
Elliott Hughes
1b66f6e9d7
Move a private x86-64 header file out of the limelight.
...
Currently this is on everyone's include path and is getting exported
via the NDK.
Change-Id: Ia417839fb65c7e0afddcd9fae3438665dae8e752
2014-11-26 19:31:19 -08:00
Elliott Hughes
87516a6508
Merge "[MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6"
2014-11-27 02:28:50 +00:00
Elliott Hughes
cc0a9e6bdf
Merge "bionic tests: add setjmp/_setjmp/sigsetjmp tests."
2014-11-27 01:33:09 +00:00
Yongqin Liu
9fea4090f1
bionic tests: add setjmp/_setjmp/sigsetjmp tests.
...
Bug: 17288973
Change-Id: I2808eee58cbddae1b16fbe19a715b72d6dbaaec3
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org >
2014-11-26 17:31:24 -08:00
Yabin Cui
d5c652756b
support _POSIX_CPUTIME
...
Bug: 18490039
Change-Id: I01fa83b48e1b908de1f227b6e4f98e280bcd50ee
2014-11-26 17:14:50 -08:00
Nicolas Geoffray
f64c43ba6c
Merge "Revert "Use mmap to create the pthread_internal_t.""
2014-11-26 11:57:46 +00:00
Nicolas Geoffray
5b8ceff5f8
Revert "Use mmap to create the pthread_internal_t."
...
Unfortunately, this change provokes random crashes for ART, and
I have seen libc crashes on the device that might be related to it.
Reverting it fixes the ART crashes. there is unfortunately no
stack trace for the crashes, but just a "Segmentation fault" message.
This reverts commit cc5f6543e3
.
Change-Id: I68dca8e1e9b9edcce7eb84596e8db619e40e8052
2014-11-26 11:56:54 +00:00
Duane Sand
3a4786348e
[MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6
...
Change-Id: Idcd13413520dd503bc9cf782553675313e500a83
2014-11-25 17:33:10 -08:00
Yabin Cui
4a6069a8af
Merge "Use mmap to create the pthread_internal_t."
2014-11-25 23:53:44 +00:00
Yabin Cui
cc5f6543e3
Use mmap to create the pthread_internal_t.
...
Bug: 16847284
Change-Id: Ic8c85f95afac1d8422ecb69674c688d1fecb6a44
2014-11-25 15:25:06 -08:00
Yabin Cui
eb3a5e026e
Merge "flesh out sysconf(3) and the _POSIX_* constants"
2014-11-24 01:59:23 +00:00
Elliott Hughes
95a02366f2
Merge "Sync with upstream OpenBSD fts.c."
2014-11-23 18:06:29 +00:00
Dan Albert
806dd9f90c
Merge "Move some pthread functions to signal.h."
2014-11-22 22:38:51 +00:00
Elliott Hughes
2818279ace
Sync with upstream OpenBSD fts.c.
...
Change-Id: Ia7e26b603f6461095b5a8d7e8a6cdf4f8279fa84
2014-11-21 19:27:28 -08:00
Yabin Cui
1c19194c9d
flesh out sysconf(3) and the _POSIX_* constants
...
Bug: 17571891
Change-Id: I81036615486bde65969ae5662587fcc88348474e
2014-11-21 19:10:52 -08:00
Elliott Hughes
d77c1ec90a
Merge "Bring our <machine/endian.h> files back in sync."
2014-11-22 02:41:44 +00:00
Elliott Hughes
ee369fb319
Bring our <machine/endian.h> files back in sync.
...
They'd drifted slightly which led to a compilation error in toybox,
which was assuming pid_t was defined. arm and arm64 were picking it
up via <endian.h> but x86 wasn't.
Change-Id: I58401e6c0066959dfc3b305b020876aaf7074bbf
2014-11-21 18:34:36 -08:00
Dmitriy Ivanov
80838f190a
Merge "Mips: remove arch-specific atexit.h"
2014-11-21 22:59:07 +00:00
Dmitriy Ivanov
4ae178f81d
Mips: remove arch-specific atexit.h
...
Change-Id: I687ff4ead6c5e81db44782bf851cb84f87bfe085
2014-11-21 14:42:53 -08:00
Dmitriy Ivanov
ff1c25262d
Merge "Mips: Remove unused files"
2014-11-21 22:38:47 +00:00
Dmitriy Ivanov
e3e8d15f23
Mips: Remove unused files
...
Change-Id: If98b832ee32f6dcd9f5d7ae21c601c210adfad6b
2014-11-21 14:29:43 -08:00
Dmitriy Ivanov
6b1230b576
Merge "Mips: Reuse atexit.h from libc/arch-common"
2014-11-21 21:17:19 +00:00
Dmitriy Ivanov
c619603a31
Mips: Reuse atexit.h from libc/arch-common
...
Change-Id: Ica1670e6d3d1b6b0c64df93720efa65586e67727
2014-11-21 13:07:36 -08:00
Dan Albert
66ca82495c
Merge "Revert "<sched.h> should offer both __sched_priority and sched_priority.""
2014-11-21 20:15:55 +00:00
Dan Albert
75ef63d6cf
Move some pthread functions to signal.h.
...
POSIX specifies that pthread_kill(3) and pthread_sigmask(3) are
supposed to live in signal.h rather than pthread.h.
Since signal.h now needs pthread_t and pthread_attr_t, I've moved
those defintions into include/machine/pthread_types.h to keep the
namespace clean. I also sorted some includes. The combination of these
two things seems to have exploded into a cascade of missing includes,
so this patch also cleans up all those.
Change-Id: Icfa92a39432fe83f542a797e5a113289d7e4ad0c
2014-11-21 10:26:09 -08:00
Dan Albert
f664034887
Revert "<sched.h> should offer both __sched_priority and sched_priority."
...
This was only ever added to keep strace compiling, but strace has
since (actually, prior) fixed their source to use the less ugly name,
so we don't need this anymore (good riddance, #define!).
This reverts commit bbb34f9536
.
2014-11-21 10:24:40 -08:00
Dmitriy Ivanov
a847073a05
Merge "Rename test_forked -> test_isolated"
2014-11-21 16:02:43 +00:00
Dmitriy Ivanov
0864d8bc47
Rename test_forked -> test_isolated
...
Change-Id: Ie72627e986c159832cbd3635d8ff5b1af3d5b1eb
2014-11-20 22:53:59 -08:00
Dmitriy Ivanov
8b4b827338
Merge "Add test_forked() option"
2014-11-21 01:21:16 +00:00
Dmitriy Ivanov
00e37818a7
Add test_forked() option
...
Executing test via test_forked() allows us to
avoid undesired global state changes in tests like
atexit, dlopen(.., RTLD_NODELETE) and similar.
Change-Id: I118cdf009269ab5dd7b117c9b61dafa47de2a011
2014-11-20 17:11:06 -08:00
Elliott Hughes
770198d3f7
Merge "Make the ftw(3) tests a bit more thorough."
2014-11-20 00:09:32 +00:00
Elliott Hughes
5313c3ff89
Merge "Fix flockfile(3) and friends for stdin/stdout/stderr too."
2014-11-19 23:48:19 +00:00
Elliott Hughes
63bd43bbdc
Make the ftw(3) tests a bit more thorough.
...
These also test much of fts(3).
Change-Id: Ia9245d6acbbd071191563ab1b91a400044104028
2014-11-19 15:47:53 -08:00
Elliott Hughes
c48c3e4bb3
Fix flockfile(3) and friends for stdin/stdout/stderr too.
...
stdin/stdout/stderr are special; their mutexes are initialized by
__sinit. There's no unit test for this, because __sinit has already
been called by the time the first unit test runs, but you could
reproduce this failure with a trivial main() that calls flockfile
or ftrylockfile on one of the standard streams before otherwise
using stdio.
Bug: 18208568
Change-Id: I28d232cf05a9f198a2bed61854d8047b23d2091d
2014-11-19 15:16:51 -08:00
Dmitriy Ivanov
6b48b20a1e
Merge "Yet another relocation test"
2014-11-19 19:35:59 +00:00
Dmitriy Ivanov
7699d13a74
Yet another relocation test
...
This time we check if a -> b -> c function in 'a' relocates against
implementation in 'c'.
Change-Id: I528180c3efd346bd447ea0237e5a8a0ac3cc031f
2014-11-19 10:39:05 -08:00
David 'Digit' Turner
c9278b8a17
Merge "libc: Move <sgidefs.h> to libc/arch-mips/"
2014-11-19 14:49:52 +00:00
Yabin Cui
649f78df79
Merge "fix shared gid support in getpwnam/getgrnam"
2014-11-19 04:25:24 +00:00
Yabin Cui
a04c79b9d3
fix shared gid support in getpwnam/getgrnam
...
Bug: 18374693
Change-Id: I5353403cbbead6f6abac87bee2cf53a60dba408c
2014-11-18 19:58:04 -08:00
Dmitriy Ivanov
27aa9c5b50
Merge "Fix jump to unmapped memory on atexit"
2014-11-18 21:25:37 +00:00
Dmitriy Ivanov
a2547055f2
Fix jump to unmapped memory on atexit
...
Split d-tor calls and soinfo_free to 2 separate steps
Bug: 18338888
Change-Id: Idbcb7242ade16fa18cba7fe30505ebd8d6023622
2014-11-18 13:16:27 -08:00
David 'Digit' Turner
6e50cb4544
libc: Move <sgidefs.h> to libc/arch-mips/
...
This is a MIPS-only header, and should not be part of the common
headers. See http://b.android.com/79841 for context.
Change-Id: I610bc3ff626b57e7854dad15a4a2f67e1e5ded75
2014-11-18 20:13:10 +01:00
Elliott Hughes
8eda0a6d69
Merge "libc: Fix mktime returns an uncorrect time in empty TZ case"
2014-11-17 23:14:58 +00:00
Dmitriy Ivanov
ee4c8febb7
Merge "bionic/test: migrate sysconf tests from system/extras to bionic/tests"
2014-11-17 18:43:32 +00:00
Elliott Hughes
f2c882095b
Merge "Add getaddrinfo(3) tests for NULL arguments."
2014-11-17 18:26:46 +00:00
Elliott Hughes
35f8910e4c
Merge "Remove remaining bionic support for TARGET_CPU_SMP being false."
2014-11-17 18:24:22 +00:00
Elliott Hughes
bfbf7a4300
Remove remaining bionic support for TARGET_CPU_SMP being false.
...
Change-Id: I02a0a1c0ae55ccb5c45d17fb99a09c374d71def4
2014-11-17 10:06:20 -08:00
Elliott Hughes
32fea147ea
Add getaddrinfo(3) tests for NULL arguments.
...
According to https://github.com/ukanth/afwall/pull/213 some OEMs have
shipped a getaddrinfo(3) that crashes given NULL hostnames.
Change-Id: I9cea5fdd68546b7c64cf47e10e2b2b4d672b69d0
2014-11-16 12:14:04 -08:00
Dan Albert
eef1eb64bb
Merge "Allow asan for glibc tests."
2014-11-15 06:47:08 +00:00
Dan Albert
01f1ff2440
Allow asan for glibc tests.
...
SANITIZE_HOST will break if we don't allow ASAN.
Change-Id: I0beed82b058db391f633e0ea1098f140497c65d4
2014-11-14 20:00:06 -08:00
Satoru Takeuchi
154e2026c8
libc: Fix mktime returns an uncorrect time in empty TZ case
...
The mktime API returned an uncorrect time when TZ is set as empty.
A timezone UTC/GMT+0 should be implied in the empty case. However
mktime keeps previous information about timezone. If mktime was called
with a timezone which has DST before, the "defaulttype" member of
"state" structure wouldn't be 0. Then it would be used next time,
even though UTC/GMT+0 doesn't have DST.
Added initialization of the "defaulttype" in the empty TZ case.
Change-Id: Ic480c63c548c05444134e0aefb30a7b380e3f40b
2014-11-14 18:13:07 -08:00
Derek Xue
bc6447673f
bionic/test: migrate sysconf tests from system/extras to bionic/tests
...
The old test are implemented in file:
system/extras/tests/bionic/libc/other/test_sysconf.c
This change is to migrate them to bionic/tests with the gtest format.
and since the sysconf is defined in unistd.h, will put the test under
bionic/tests/unistd_test.cpp file as unistd.syscon test
Change-Id: Ie519147c1c86a6c4cefa8c88b18bf58bdfbffbdb
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org >
2014-11-15 09:48:36 +08:00
Yabin Cui
38569312bc
Merge "Add functions in sysinfo.h."
2014-11-15 00:53:37 +00:00
Yabin Cui
9d93986481
Add functions in sysinfo.h.
...
Bug: 17703902
Change-Id: I699d12d76a8fc483c919be730c2ac63641b71a1d
2014-11-14 16:22:48 -08:00
Yabin Cui
661423a453
Merge "Increase support of pathconf options."
2014-11-14 23:45:45 +00:00
Yabin Cui
b5e581abfe
Increase support of pathconf options.
...
Bug: 18206366
Change-Id: Ie770e49f5af3631eb9fbd2cd5174edf004c81e00
2014-11-14 23:45:24 +00:00
Elliott Hughes
4cf942d318
Merge "sysconf(3) returns long."
2014-11-14 23:33:20 +00:00
Elliott Hughes
60d84af172
sysconf(3) returns long.
...
On LP32, this makes no difference. Not an ABI change.
On LP64, results are going to be in %rax or x0 whether they're 32- or 64-bit,
and the only difference is going to be whether the top bits are clobbered.
Bug: 18390956
Change-Id: I0bd4496231bdded34c1fa03e895021ac0df7f8e1
2014-11-14 15:14:44 -08:00
Elliott Hughes
cdcef73a23
Merge "Add non-macro stdin/stdout/stderr too."
2014-11-14 22:52:08 +00:00
Elliott Hughes
168667c972
Add non-macro stdin/stdout/stderr too.
...
Various C and C++ standards explicitly say that stdin/stdout/stderr
should be macros, but glibc makes them global variables too. This
means it's possible to write code that uses those names as locals,
but that code (toybox being an example) won't build on bionic.
If we'd done this earlier, we could have hidden __sF for LP64, but
it's too late now.
Change-Id: I90cf8c73f52b66e1760b8fa2e135b9f9f9651230
2014-11-14 14:42:59 -08:00
Dmitriy Ivanov
27fa71ebc6
Merge "Fix host build for arm/arm64"
2014-11-14 20:19:37 +00:00
Dmitriy Ivanov
9df4b13baf
Fix host build for arm/arm64
...
Change-Id: Id92543e4080aede205b3e63099fa2baa36ba21f0
2014-11-14 12:17:06 -08:00
Dmitriy Ivanov
898aab282c
Merge "Add test for --hash-style=sysv"
2014-11-14 19:31:33 +00:00
Dmitriy Ivanov
b3356773c6
Add test for --hash-style=sysv
...
With build system switched to gnu-hash we need
a test for sysv-hashed library.
Change-Id: I34adc216fa79199aa46066cf13fcc1c1f2581f0e
2014-11-14 11:19:22 -08:00
Dmitriy Ivanov
c490b5029f
Merge "Rename soinfo methods and fields"
2014-11-14 16:33:17 +00:00
Dmitriy Ivanov
047b5934b5
Rename soinfo methods and fields
...
Change-Id: If68fbe287d3ad954238b1688f71013371f3f7fae
2014-11-13 19:48:32 -08:00
Christopher Ferris
59b1dea882
Merge "Add missing function prototypes wcpcpy/wcpncpy."
2014-11-14 03:23:35 +00:00
Christopher Ferris
5c7d9584d9
Add missing function prototypes wcpcpy/wcpncpy.
...
Also add smoke tests for a few of the wchar functions.
Change-Id: Id1be522f55a6708564d444941f42097548f16497
2014-11-13 18:56:12 -08:00
Elliott Hughes
0a135b4259
Merge "Fix our <mntent.h> implementation."
2014-11-14 00:00:53 +00:00
Elliott Hughes
e3c4acf1e3
Fix our <mntent.h> implementation.
...
Used by toybox.
Change-Id: I36a5053423e5cc54ae02a68f4fe110d75134accd
2014-11-13 15:51:36 -08:00
Elliott Hughes
288fa03a5a
Merge "Assume glibc >= 2.15."
2014-11-13 18:11:00 +00:00
Elliott Hughes
6229798a7c
Merge "Don't receive structs containing pointers over sockets."
2014-11-13 17:56:08 +00:00
Hans Boehm
854c98d636
Merge "Allow stdatomic.h to be included from mingw prebuilt."
2014-11-13 17:49:53 +00:00
Elliott Hughes
55293c1dad
Don't receive structs containing pointers over sockets.
...
Fixes x86-64 netd.
Change-Id: Iee5ef802ebbf2e000b2593643de4eec46f296c04
2014-11-12 22:06:35 -08:00
Elliott Hughes
68d98d832b
Assume glibc >= 2.15.
...
This catches one trivial difference between us and glibc --- the error
returned by pthread_setname_np for an invalid pthread_t.
Change-Id: If4c21e22107c6488333d11184f8005f8669096c2
2014-11-12 21:03:26 -08:00
Elliott Hughes
92a585c91a
Merge "Fix glibc 2.15 build."
2014-11-13 03:37:47 +00:00
Dmitriy Ivanov
38b47f6eb4
Merge "Fix mips build"
2014-11-13 03:36:54 +00:00
Elliott Hughes
fb50057138
Fix glibc 2.15 build.
...
glibc 2.15 has prlimit64, has an unsetenv that's declared nonnull,
and hasn't fixed the problems we were having trying to use the
POSIX strerror_r in C++ code.
Change-Id: I834356a385e5ae55500bd86781691b6c1c9c8300
2014-11-12 19:31:21 -08:00
Dmitriy Ivanov
8894091683
Fix mips build
...
Change-Id: I58b01db38ab9a397a8bd77c1296aac12957c21da
2014-11-12 18:21:12 -08:00
Dmitriy Ivanov
16db1ae108
Merge "Add support for hash-style=gnu"
2014-11-13 02:10:30 +00:00
Hans Boehm
95f197f998
Allow stdatomic.h to be included from mingw prebuilt.
...
Define __GNUC_PREREQ if it isn't already defined.
This is a bit ugly, but it seems to be easiest to make this header as
context-independent as possible. Together with the addition of a symbolic
link to this file from the mingw prebuilt, this appears to unblock
commit e9fa6be333e35d9e7ae435aeb32532875b95fe22.
Change-Id: I97e39cda8d8f9aa108aa61c4121da09eb9739062
2014-11-12 18:08:25 -08:00
Dan Albert
468f84107a
Merge "Add documentation about checkbuild."
2014-11-13 01:14:27 +00:00
Dan Albert
e66d57f532
Add documentation about checkbuild.
...
Change-Id: I2c2d06bc0dc3cdc58b5563f62889122b76f3c469
2014-11-12 17:08:38 -08:00
Dmitriy Ivanov
ec18ce06f2
Add support for hash-style=gnu
...
Change-Id: I171434a587420895feac8a9b1ad2342087197568
2014-11-12 16:38:12 -08:00
Christopher Ferris
5d05d025b5
Merge "Add 64-bit slm optimized strlcpy and srlcat."
2014-11-12 23:18:00 +00:00
Yabin Cui
e5cabca516
Merge "implement missing seekdir and telldir"
2014-11-12 20:36:26 +00:00
Elliott Hughes
bbdfa51883
Merge "gethostname.c: change to report ENAMETOOLONG error when buflen is less"
2014-11-12 20:09:59 +00:00
Elliott Hughes
83204d5708
Merge "bionic tests: migrate gethostname test to unistd_test.cpp from system/extras"
2014-11-12 20:08:57 +00:00
Yongqin Liu
2f954bab2d
gethostname.c: change to report ENAMETOOLONG error when buflen is less
...
change to behaviour the same as glibc for the check about buflen
Change-Id: I98265a8fe441df6fed2527686f89b087364ca53d
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org >
2014-11-12 12:07:33 -08:00
Derek Xue
d94e7f0f1d
bionic tests: migrate gethostname test to unistd_test.cpp from system/extras
...
The old tests are implemented in file
system/extras/tests/bionic/libc/common/test_gethostname.c
Here migrate the test to the tests/unistd_test.cpp file and
add some more checks
Change-Id: Iab1e3da873bb333d1ddefc03108d536933792db2
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org >
2014-11-12 10:47:39 -08:00
Varvara Rainchik
2e7145c048
Add 64-bit slm optimized strlcpy and srlcat.
...
Change-Id: Ic948934d91c83bbfdfd00c05ee8b14952e012549
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com >
2014-11-12 17:32:28 +03:00
Elliott Hughes
22271d0c20
Merge "Upgrade bionic to tzdata2014j."
2014-11-12 02:32:10 +00:00
Elliott Hughes
b11d8e057c
Upgrade bionic to tzdata2014j.
...
From the release notes:
Changes affecting current and future time stamps
Turks & Caicos' switch from US eastern time to UTC-4 year-round
did not occur on 2014-11-02 at 02:00. It's currently scheduled
for 2015-11-01 at 02:00. (Thanks to Chris Walton.)
Changes affecting past time stamps
Many pre-1989 time stamps have been corrected for Asia/Seoul and
Asia/Pyongyang, based on sources for the Korean-language Wikipedia
entry for time in Korea. (Thanks to Sanghyuk Jung.) Also, no
longer guess that Pyongyang mimicked Seoul time after World War II,
as this is politically implausible.
Some more zones have been turned into links, when they differed
from existing zones only for older time stamps. As usual,
these changes affect UTC offsets in pre-1970 time stamps only.
Their old contents have been moved to the 'backzone' file.
The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
Indian/Mayotte.
Bug: 18330681
Change-Id: I4b6939b4dcf08c47df5595ae445b6f44f4a03418
2014-11-11 16:44:21 -08:00
Elliott Hughes
440c80ad47
Merge "Fix tzdata update tools for 'backzone'."
2014-11-12 00:42:50 +00:00
Elliott Hughes
2c2463bd30
Fix tzdata update tools for 'backzone'.
...
To maintain the status quo, we need to pull in backzone file. This file
can't be built on its own, so the easiest fix is to give zic(1) all the
files at once.
We also now have a situation where we have links to links, so we need to
dereference them until we find actual data.
Bug: 18330681
Change-Id: I03f4aa8e6e23802dc35cbff2f74f325eb17d7b2b
2014-11-11 16:30:18 -08:00
Daniel Rosenberg
1fb6a4d5c0
Merge "bionic: libc: Added path to vendor build properties file."
2014-11-11 20:40:04 +00:00
Daniel Rosenberg
71d220c1de
bionic: libc: Added path to vendor build properties file.
...
Change-Id: Ia9fc257a82fdd592751cbcde3fcf453a49856f62
Signed-off-by: Daniel Rosenberg <drosen@google.com >
2014-11-11 12:18:22 -08:00
Andreas Gampe
1e75a9b56a
Merge "Bionic: Make DISALLOW_COPY_AND_ASSIGN conditional"
2014-11-11 19:17:56 +00:00
Andreas Gampe
00bbc7f69f
Bionic: Make DISALLOW_COPY_AND_ASSIGN conditional
...
Make the definition of DISALLOW_COPY_AND_ASSIGN conditional. This is
so that the projects that include libnativehelper and bionic macros
do not have to be careful in which order those projects are included.
Bug: 18334516
Change-Id: Ib12a2c2b7ad2e360edcf3b26cb1be626540fadc1
2014-11-11 11:16:57 -08:00
Christopher Ferris
1e1ae4a74e
Merge "Add align/overread tests for strlcpy/strlcat."
2014-11-10 23:38:21 +00:00
Elliott Hughes
6e7e2d201f
Merge "Add the <dirent.h> feature macros glibc uses."
2014-11-10 23:18:36 +00:00
Elliott Hughes
8c79b4ebb5
Add the <dirent.h> feature macros glibc uses.
...
Change-Id: I4da92b67d410839ea4ef0beaaa6c5cca06b74c0d
2014-11-10 15:17:28 -08:00
Christopher Ferris
1468765f8a
Add align/overread tests for strlcpy/strlcat.
...
Change-Id: I2801c7ee1847cd68ec95eba5bdffde5e52edf1e5
2014-11-10 13:58:17 -08:00
Elliott Hughes
6330b70cac
Merge "Remove temporary compatibility hack."
2014-11-10 19:32:51 +00:00
Elliott Hughes
e6ac9bb8a0
Remove temporary compatibility hack.
...
The callers have been fixed.
Bug: 18298106
Change-Id: I65e24032d0a82c4b118abace854d2dcdada881fb
2014-11-10 11:24:51 -08:00
Elliott Hughes
b63600934c
Merge "Fix struct stat to match POSIX 2008."
2014-11-10 17:25:08 +00:00
Elliott Hughes
0ac0df84c7
Fix struct stat to match POSIX 2008.
...
Our representation of sub-second times matched the Linux kernel, and we
provided macros for glibc source compatibility. This change switches us
over to match POSIX 2008, adds the macros they insist on (for compatibility
with earlier versions of POSIX), and also adds macros for compatibility
with any code that expects the kernel or old bionic names.
Unfortunately this breaks strace which defines its own structures using
the kernel names, and thus implicitly assumes that there are no macros with
those names, but this does allow the rest of the tree to build.
Bug: 18298106
Change-Id: Ibfa8c21cb2a2566091ef3dc2019a9f78d2de2991
2014-11-07 19:15:10 -08:00
Elliott Hughes
47b9083b58
Merge "Add sethostname(2)."
2014-11-08 00:55:20 +00:00
Elliott Hughes
b86a4c7f65
Add sethostname(2).
...
Not very useful, but helps building stuff like toybox out of the box.
Change-Id: I110e39030452bd093a84278e019c5752d293718d
2014-11-07 16:48:27 -08:00
Yabin Cui
5ca4a9e2da
implement missing seekdir and telldir
...
Bug: 18266863
Change-Id: I189ee949d4f7ccee099f3341e349cd969d25480f
2014-11-07 10:20:32 -08:00
The Android Open Source Project
2ed9ee1e93
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
2014-11-06 17:43:39 -08:00
Elliott Hughes
cd30cb3633
am 08a70184
: Merge "Add POSIX lcong48."
...
* commit '08a70184b42ef2963794a56233b0253e0b367253':
Add POSIX lcong48.
2014-11-07 00:58:34 +00:00
Elliott Hughes
6e555e40b0
Merge "Implement all the POSIX _l functions."
2014-11-06 23:58:07 +00:00
Elliott Hughes
b20c24456e
Implement all the POSIX _l functions.
...
Strictly speaking, this only implements the _l variants of the functions
we actually have. We're still missing nl_langinfo_l, for example, but we
don't have nl_langinfo either.
Change-Id: Ie711c7b04e7b9100932a13f5a5d5b28847eb4c12
2014-11-06 15:52:22 -08:00
Elliott Hughes
08a70184b4
Merge "Add POSIX lcong48."
2014-11-06 22:21:53 +00:00
Elliott Hughes
274afe8f0e
Add POSIX lcong48.
...
Change-Id: I821046816661d77275cb02c8c99d526bb41afb9c
2014-11-06 14:14:37 -08:00
Elliott Hughes
e449e68f36
am 39ba3035
: Merge "Fix our <complex.h> support."
...
* commit '39ba30354a3890dd653ab55819d38eed3855edaa':
Fix our <complex.h> support.
2014-11-06 19:48:17 +00:00
Elliott Hughes
39ba30354a
Merge "Fix our <complex.h> support."
2014-11-06 19:43:17 +00:00
Yabin Cui
c50ae0b41b
am 99cf8d08
: Merge "make all bionic death tests not dumpable"
...
* commit '99cf8d08c95470c34e530c068d1325cb6656e760':
make all bionic death tests not dumpable
2014-11-06 19:22:17 +00:00
Elliott Hughes
b8ee16f1dc
Fix our <complex.h> support.
...
We build libm with -fvisibility=hidden, so we weren't exporting any
of the <complex.h> functions.
We also weren't building many of the functions anyway.
We were also missing the complex inverse trigonometric functions.
And because we didn't even have perfunctory "call each function once"
tests, we didn't notice that we weren't exporting any symbols, so this
patch adds at least that level of testing.
Change-Id: Ibcf2843f507126c51d134cc5fc8d67747e033a0d
2014-11-06 11:16:55 -08:00
Yabin Cui
99cf8d08c9
Merge "make all bionic death tests not dumpable"
2014-11-06 19:14:33 +00:00
Yabin Cui
9df70403d9
make all bionic death tests not dumpable
...
Bug: 18067305
Change-Id: Ia1ecacf47eddecc9bc58aaac779e0c218f463179
2014-11-06 11:09:03 -08:00
Elliott Hughes
fa7e13b3af
am a80f11ba
: Merge "Add support for listing missing POSIX 2013 symbols."
...
* commit 'a80f11ba99a078515aa7e06dc99db62a475a7b53':
Add support for listing missing POSIX 2013 symbols.
2014-11-06 06:08:32 +00:00
Elliott Hughes
a80f11ba99
Merge "Add support for listing missing POSIX 2013 symbols."
2014-11-06 06:05:38 +00:00
Elliott Hughes
6370aedd0e
Add support for listing missing POSIX 2013 symbols.
...
Change-Id: Ic51787890f837f74a22ca63d64a5710474d00cbc
2014-11-05 16:54:53 -08:00
Yabin Cui
c68a910537
am 23113831
: Merge "check invalid file offset when loading library"
...
* commit '2311383180aee9388d28b03901a1e4ef021bcfa7':
check invalid file offset when loading library
2014-11-05 20:12:36 +00:00
Yabin Cui
2311383180
Merge "check invalid file offset when loading library"
2014-11-05 19:56:01 +00:00
Elliott Hughes
eac625a210
am c13a2044
: Merge "Fix newlocale with a NULL locale name."
...
* commit 'c13a2044e3b4d6084ef7ed32fb35e63e4157a96a':
Fix newlocale with a NULL locale name.
2014-11-05 02:42:07 +00:00
Elliott Hughes
bce54a2bb3
am 57df00a4
: Merge "Improve math tests to allow a specific ulp bound."
...
* commit '57df00a4107d59f82732306c1e199ffa63f76f9b':
Improve math tests to allow a specific ulp bound.
2014-11-05 02:42:05 +00:00
Chih-Hung Hsieh
45f736b323
am 6c8f2475
: Merge "Fix warning of missing field initializer."
...
* commit '6c8f247581890a25fb899767db220a8245859f71':
Fix warning of missing field initializer.
2014-11-05 02:41:55 +00:00
Elliott Hughes
c13a2044e3
Merge "Fix newlocale with a NULL locale name."
2014-11-05 02:20:55 +00:00
Elliott Hughes
7e0d0f8572
Fix newlocale with a NULL locale name.
...
Bug: https://code.google.com/p/android/issues/detail?id=78567
Change-Id: I272dabc12ab186b44a525c7e8ac1846e62334e85
2014-11-04 18:03:44 -08:00
Elliott Hughes
57df00a410
Merge "Improve math tests to allow a specific ulp bound."
2014-11-05 02:02:19 +00:00
Elliott Hughes
1b37ba2178
Improve math tests to allow a specific ulp bound.
...
At the moment our libm is only good enough for a 1 ulp bound on these tests,
but that's better than the 4 ulp bound you get from gtest by default.
I'm not really happy with the multiple structures and corresponding functions,
but at least they mean there's no duplication in the tests themselves, and it
should be easy enough for us to make further improvements in future.
Change-Id: I004e12970332e1d9531721361d6c34f908cfcecc
2014-11-04 18:00:02 -08:00
Chih-Hung Hsieh
6c8f247581
Merge "Fix warning of missing field initializer."
2014-11-05 00:46:37 +00:00
Yabin Cui
16f7f8d250
check invalid file offset when loading library
...
Bug: 18178121
Bug: 18078224
Change-Id: I5254433d54645db68e9b83d5095dc2bf9d8531bc
2014-11-04 14:37:15 -08:00
Chih-Hung Hsieh
dc6599e20f
Fix warning of missing field initializer.
...
BUG: 18241135
Change-Id: I91304eb608bc3336ce5fcd5744fbe080d64f1cc2
2014-11-04 12:09:35 -08:00
Dan Albert
5939060ba5
am 695781b6
: Merge "Make host tests depend on /system/etc/hosts."
...
* commit '695781b6f0419f82939176a6ec1a240300d9f036':
Make host tests depend on /system/etc/hosts.
2014-11-04 00:53:18 +00:00
Elliott Hughes
90138639a5
am e76ea9bb
: Merge "Ensure we initialize stdin/stdout/stderr\'s recursive mutexes."
...
* commit 'e76ea9bbe0a8bccf97b88d09af13a84fd34a6a76':
Ensure we initialize stdin/stdout/stderr's recursive mutexes.
2014-11-04 00:53:16 +00:00
Dan Albert
695781b6f0
Merge "Make host tests depend on /system/etc/hosts."
2014-11-03 21:38:50 +00:00
Elliott Hughes
e76ea9bbe0
Merge "Ensure we initialize stdin/stdout/stderr's recursive mutexes."
2014-11-03 21:32:29 +00:00
Dan Albert
62b7279789
Make host tests depend on /system/etc/hosts.
...
Change-Id: I3e5ab1325d5e250a1d14b53f3a5a465d9f5de30c
2014-11-03 13:26:16 -08:00
Elliott Hughes
6a03abcfd2
Ensure we initialize stdin/stdout/stderr's recursive mutexes.
...
Bug: 18208568
Change-Id: I9da16ce0f9375bc363d1d02be706d73fd3b1e150
2014-11-03 12:32:17 -08:00
Dmitriy Ivanov
75cd66aaf6
am 38ff8822
: Merge "Revert "Use local copy of the library name on dlopen""
...
* commit '38ff8822763a30d4c9033a38ec8b71fcd17aba87':
Revert "Use local copy of the library name on dlopen"
2014-11-01 02:35:51 +00:00
Dmitriy Ivanov
38ff882276
Merge "Revert "Use local copy of the library name on dlopen""
2014-11-01 02:32:24 +00:00
Dmitriy Ivanov
9fb216f844
Revert "Use local copy of the library name on dlopen"
...
This reverts commit da8e591c39
.
Change-Id: I3fd6f235b18c232af5cc5ecd481851486d7d68f6
2014-11-01 02:30:38 +00:00
Dmitriy Ivanov
6cba0e35ec
am 36ffc73e
: Merge "Fix arm64 and arm builds."
...
* commit '36ffc73e992de77cc4bc397e41767b69ed9ac917':
Fix arm64 and arm builds.
2014-11-01 00:36:23 +00:00
Dmitriy Ivanov
36ffc73e99
Merge "Fix arm64 and arm builds."
2014-11-01 00:33:30 +00:00
Dmitriy Ivanov
4e446b19d8
Fix arm64 and arm builds.
...
Change-Id: I2c8c41626768e792f27a2616f2cd5ae66606319d
2014-10-31 17:27:02 -07:00
Dmitriy Ivanov
a334934f66
am f33ad400
: Merge "Fix symbol lookup order during relocation"
...
* commit 'f33ad400230fa1f16ba4501efb60a1b6035e06ca':
Fix symbol lookup order during relocation
2014-10-31 23:54:20 +00:00
Dmitriy Ivanov
f33ad40023
Merge "Fix symbol lookup order during relocation"
2014-10-31 23:51:18 +00:00
Dmitriy Ivanov
703581a322
am 74c0ccd4
: Merge "Use local copy of the library name on dlopen"
...
* commit '74c0ccd49b2f0a94078b565b60c10ecba1e9424e':
Use local copy of the library name on dlopen
2014-10-31 22:51:38 +00:00
Dmitriy Ivanov
74c0ccd49b
Merge "Use local copy of the library name on dlopen"
2014-10-31 22:47:25 +00:00
Dmitriy Ivanov
da8e591c39
Use local copy of the library name on dlopen
...
Bug: 18052100
Change-Id: Idbc2a3691db3b5525d4e9bca81d78d5f29bc438f
2014-10-31 14:23:34 -07:00
Dmitriy Ivanov
d225a5e652
Fix symbol lookup order during relocation
...
Relocate symbol against DF_1_GLOBAL shared libraries
loaded before this shared library. This includes
main executable, ld_preloads and other libraries
that have DF_1_GLOBAL flag set.
Bug: 2643900
Bug: 15432753
Change-Id: Ia788748be59b739d1c7e62b978e7e255f9e65c7b
2014-10-31 11:39:51 -07:00
Elliott Hughes
25f4bb984c
am e38bf839
: Merge "limits.h: add define for HOST_NAME_MAX"
...
* commit 'e38bf839837d11542e7d1deb00d81542a0ef55b7':
limits.h: add define for HOST_NAME_MAX
2014-10-30 16:02:29 +00:00
Elliott Hughes
e38bf83983
Merge "limits.h: add define for HOST_NAME_MAX"
2014-10-30 15:56:44 +00:00
Yongqin Liu
0589777a33
limits.h: add define for HOST_NAME_MAX
...
according to the rules defined here:
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html
add the definition for HOST_NAME_MAX to limits.h file,
and set the default value to _POSIX_HOST_NAME_MAX as 255
Change-Id: Iddd5c6c569f4e0a14994c7a7c54985f3e7809fc4
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org >
2014-10-30 10:59:24 +08:00
Elliott Hughes
4c29b1c266
am f362e9fb
: Merge "Remove an unused file."
...
* commit 'f362e9fb33722f89cebe65ddf2f07d2b07e4390e':
Remove an unused file.
2014-10-29 20:51:27 +00:00
Elliott Hughes
f362e9fb33
Merge "Remove an unused file."
2014-10-29 20:46:31 +00:00
Elliott Hughes
39cd0fa24a
Remove an unused file.
...
We don't have any FreeBSD stdio left.
Bug: 17154680
Change-Id: I145627f564364ac8d4707d431d451cc3115c1c6a
2014-10-29 13:42:23 -07:00
Elliott Hughes
24464b04a0
am d50495a5
: Merge "Extra strtod/strtof tests."
...
* commit 'd50495a56760fdc116b7484bcdf1183c76db9b37':
Extra strtod/strtof tests.
2014-10-29 17:36:16 +00:00
Elliott Hughes
d50495a567
Merge "Extra strtod/strtof tests."
2014-10-29 17:22:33 +00:00
Yabin Cui
63edd69e57
am cbb4606a
: Merge "change unsigned int to uint32_t for api arc4random/arc4random_uniform"
...
* commit 'cbb4606ad00f084f984c92a8674400a112ea200e':
change unsigned int to uint32_t for api arc4random/arc4random_uniform
2014-10-29 12:32:36 +00:00
Elliott Hughes
91bfaed26a
am 13dcb88b
: Merge "Disable tzdata in ."
...
* commit '13dcb88b0f8ce238456059fdc0b6c946caed1e3a':
Disable tzdata in $ANDROID_DATA.
2014-10-29 12:32:23 +00:00
Elliott Hughes
912fe0a6df
am f96eaf62
: Merge "[x86,x86_64] Fix libgcc unwinding through signal"
...
* commit 'f96eaf6202351a1b5153cfaad3137e4b63846f8f':
[x86,x86_64] Fix libgcc unwinding through signal
2014-10-29 12:31:52 +00:00
Elliott Hughes
89aaaffbf8
Extra strtod/strtof tests.
...
Check that libc doesn't suffer from a couple of bugs that affected
Java in the past.
Bug: 2206701
Change-Id: I9eb64d7ff2fa0b79e93079b897a5fb78bef866be
2014-10-28 17:54:23 -07:00
Yabin Cui
cbb4606ad0
Merge "change unsigned int to uint32_t for api arc4random/arc4random_uniform"
2014-10-28 22:58:40 +00:00
Yabin Cui
a39f939e0d
change unsigned int to uint32_t for api arc4random/arc4random_uniform
...
Bug: 17894480
Change-Id: Ia4b5a7cd2b2c6002ed70955f86f7780d26d15e26
2014-10-28 13:44:48 -07:00
Elliott Hughes
382938d092
am ec58e29b
: Merge "pthread_setname_np appears in glibc 2.12."
...
* commit 'ec58e29b276b0f98eb624430fb70703dc32057bf':
pthread_setname_np appears in glibc 2.12.
2014-10-28 19:28:35 +00:00
Elliott Hughes
7dbb1cff0b
am 021b6412
: Merge "Fix the type of u_ar0 in <sys/user.h>."
...
* commit '021b6412f7b7ce73b383480b25a8e5d69323f78c':
Fix the type of u_ar0 in <sys/user.h>.
2014-10-28 19:28:34 +00:00
Elliott Hughes
ee8faa5e74
am 7f164f60
: Merge "POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK."
...
* commit '7f164f6052b6dcee1c2cc70accdfac4b2c790b19':
POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK.
2014-10-28 19:28:32 +00:00
Dmitriy Ivanov
3a3a4b8ae6
am e23f564b
: Merge "Fix *tests-run-on-host target"
...
* commit 'e23f564b52fed0dce661cf6db25cf3a89bd66f18':
Fix *tests-run-on-host target
2014-10-28 17:34:12 +00:00
Elliott Hughes
44331e8bb0
am c716dd1e
: Merge "bionic tests: migrate test for mutex type from system/extras"
...
* commit 'c716dd1e21438ac6585be79fb799b3135e9b381f':
bionic tests: migrate test for mutex type from system/extras
2014-10-28 17:34:01 +00:00
Elliott Hughes
13dcb88b0f
Merge "Disable tzdata in $ANDROID_DATA."
2014-10-28 16:34:46 +00:00
Elliott Hughes
e24bf5d7b9
Disable tzdata in $ANDROID_DATA.
...
(cherry picked from 4c30130a2155c37e80af4c3b53bf4f6ce832e760.)
Bug: 18139284
Change-Id: I2670dc1791d635139a5d39a438dc08777439476b
2014-10-28 09:34:09 -07:00
Dmitriy Ivanov
85d770211b
am f56a2f5e
: Merge "Remove unnecessary reinterpret_cast"
...
* commit 'f56a2f5ed2508e0743581003420c0f2d9cb54c7b':
Remove unnecessary reinterpret_cast
2014-10-28 04:51:51 +00:00
Chih-Hung Hsieh
f3b0d9cd79
am 57c5a556
: Merge "Disable clang compilation due to lack of ifunc."
...
* commit '57c5a5562b08007dbe6379a4b68ca3a0225747c0':
Disable clang compilation due to lack of ifunc.
2014-10-28 04:51:47 +00:00
Elliott Hughes
1dd65cc30c
am c83837ec
: Merge "Make the netdb unit tests work on the host."
...
* commit 'c83837ec158a14bf84ea702c04f606de3b0599a8':
Make the netdb unit tests work on the host.
2014-10-28 04:51:46 +00:00
Elliott Hughes
3f5d8a00e4
am cad8d226
: Merge "Use mxcr_mask instead of mxcsr_mask to match glibc."
...
* commit 'cad8d226c3589a65775fda972d4cd3ebd3877dab':
Use mxcr_mask instead of mxcsr_mask to match glibc.
2014-10-28 04:51:25 +00:00
Elliott Hughes
43ec1fb76c
am a4c0b756
: Merge "Add mkfifoat(3)."
...
* commit 'a4c0b7567190968d263bedd1073ea633510f9a45':
Add mkfifoat(3).
2014-10-28 04:49:11 +00:00
Dmitriy Ivanov
3db80168ff
am f33a7d7f
: Merge "Fix mips build"
...
* commit 'f33a7d7f1cc96cf1445013fe49f6db0f03cbd44f':
Fix mips build
2014-10-28 04:46:55 +00:00
Dmitriy Ivanov
fee054f3ec
am 398eb5a7
: Merge "Remove unnecessary lookups during relocations"
...
* commit '398eb5a7ee1f0f7173e463e82381431ef4b21a17':
Remove unnecessary lookups during relocations
2014-10-28 04:46:54 +00:00
Dmitriy Ivanov
1babff27fd
am 566f2bc6
: Merge "Fix relocation to look for symbols in local group"
...
* commit '566f2bc623dbd1d6e8bcf3a6c6e7a6fffe7f68fd':
Fix relocation to look for symbols in local group
2014-10-28 04:46:52 +00:00
Elliott Hughes
ac5df33e09
am 6c5694b6
: Merge "Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3)."
...
* commit '6c5694b6c8343d740c36adbe904442cecd8030a6':
Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3).
2014-10-28 04:33:09 +00:00
Elliott Hughes
f96eaf6202
Merge "[x86,x86_64] Fix libgcc unwinding through signal"
2014-10-27 23:30:56 +00:00
Pavel Chupin
50321e2e66
[x86,x86_64] Fix libgcc unwinding through signal
...
This change provides __restore/__restore_rt on x86 and __restore_rt on
x86_64 with unwinding information to be able to unwind through signal
frame via libgcc provided unwinding interface. See comments inlined for
more details.
Also remove the test that had a dependency on
__attribute__((cleanup(foo_cleanup))). It doesn't provide us with any
better test coverage than we have from the newer tests, and it doesn't
work well across a variety architectures (presumably because no one uses
this attribute in the real world).
Tested this on host via bionic-unit-tests-run-on-host on both x86 and
x86-64.
Bug: 17436734
Change-Id: I2f06814e82c8faa732cb4f5648868dc0fd2e5fe4
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com >
2014-10-27 16:14:55 -07:00
Elliott Hughes
ec58e29b27
Merge "pthread_setname_np appears in glibc 2.12."
2014-10-27 20:01:36 +00:00
Elliott Hughes
ed29e858d0
pthread_setname_np appears in glibc 2.12.
...
And our emulator kernels are now new enough to not require a workaround.
Change-Id: Id56c983dbfd8abc69f72a78411a5502391941dfc
2014-10-27 12:01:51 -07:00
Elliott Hughes
021b6412f7
Merge "Fix the type of u_ar0 in <sys/user.h>."
2014-10-27 17:41:00 +00:00
Elliott Hughes
7f164f6052
Merge "POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK."
2014-10-27 17:38:33 +00:00
Dmitriy Ivanov
e23f564b52
Merge "Fix *tests-run-on-host target"
2014-10-26 05:47:53 +00:00
Dmitriy Ivanov
095636e6ad
Fix *tests-run-on-host target
...
Change-Id: Id0e5060977a2df91c47b5a916989eb7e2e3f8153
2014-10-25 21:41:32 -07:00
Elliott Hughes
e03950fa0c
Fix the type of u_ar0 in <sys/user.h>.
...
Change-Id: I9332dea60f7c60b45bc80026686c266bfa7a782c
2014-10-24 20:57:09 -07:00
Elliott Hughes
5b1111a694
POSIX says pthread_mutex_trylock returns EBUSY, not EDEADLK.
...
Found by unit test.
Change-Id: Iffbd2f04213616927fbd7b5419460031f7a078e9
2014-10-24 19:33:11 -07:00
Elliott Hughes
c716dd1e21
Merge "bionic tests: migrate test for mutex type from system/extras"
2014-10-25 02:03:19 +00:00
Derek Xue
4199695657
bionic tests: migrate test for mutex type from system/extras
...
Migrate the test about pthread mutex type in file
system/extras/tests/bionic/libc/bionic/test_mutex.c
to the new place
bionic/tests/pthread_test.cpp
in the gtest format.
Change-Id: I6aab10170ccad5b9a4892d52dba2403876c86659
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org >
2014-10-24 18:54:42 -07:00
Dmitriy Ivanov
f56a2f5ed2
Merge "Remove unnecessary reinterpret_cast"
2014-10-24 22:05:36 +00:00
Dmitriy Ivanov
c9d1658397
Remove unnecessary reinterpret_cast
...
Change-Id: Id2ddf4e74bc66825206d1287f899d716537a68d0
2014-10-24 14:46:12 -07:00
Elliott Hughes
7f558f60cb
am cf8ea37f
: Merge "bionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests"
...
* commit 'cf8ea37fc91e23d37b3c5873b5e152ccae293f03':
bionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests
2014-10-24 20:18:09 +00:00
Chih-Hung Hsieh
57c5a5562b
Merge "Disable clang compilation due to lack of ifunc."
2014-10-24 18:34:40 +00:00
Elliott Hughes
c83837ec15
Merge "Make the netdb unit tests work on the host."
2014-10-24 18:30:37 +00:00
Chih-Hung Hsieh
b086298629
Disable clang compilation due to lack of ifunc.
...
BUG: 18055309
Change-Id: I0f36011cf7872a20ddd36a6c3c607eb96f0a8ec2
2014-10-24 11:04:51 -07:00
Elliott Hughes
1e8ebdc375
Make the netdb unit tests work on the host.
...
Bug: 18111005
Change-Id: I79c6929c3827716e19b44d7469db69740f4b449c
2014-10-24 10:45:08 -07:00
Elliott Hughes
cad8d226c3
Merge "Use mxcr_mask instead of mxcsr_mask to match glibc."
2014-10-24 15:40:44 +00:00
Elliott Hughes
96a6f40163
am e516321d
: Merge "Update bionic to tzdata2014i."
...
* commit 'e516321d78162479a4ce17bd5a9ba8c0834abf18':
Update bionic to tzdata2014i.
2014-10-24 13:01:54 +00:00
Christopher Ferris
274f5e737d
am efd2ec8f
: Merge "Fix race condition in timer disarm/delete."
...
* commit 'efd2ec8fbddb99a7a2d7da8e1024655fa08153ca':
Fix race condition in timer disarm/delete.
2014-10-24 13:01:53 +00:00
Elliott Hughes
f485547b92
Use mxcr_mask instead of mxcsr_mask to match glibc.
...
Bug: 18097559
Change-Id: Iaca301d7d4c4902989d4699117f72b88d5c4bd78
2014-10-23 20:29:42 -07:00
Elliott Hughes
a4c0b75671
Merge "Add mkfifoat(3)."
2014-10-24 02:57:12 +00:00
Elliott Hughes
ca8e84c6ff
Add mkfifoat(3).
...
Looks like I missed one of the *at functions when I added the rest.
Change-Id: If16de82dbf6f9a3ea7bfdcba406ca1c74a3f2279
2014-10-23 19:10:54 -07:00
Dmitriy Ivanov
f33a7d7f1c
Merge "Fix mips build"
2014-10-23 22:53:24 +00:00
Dmitriy Ivanov
398eb5a7ee
Merge "Remove unnecessary lookups during relocations"
2014-10-23 22:53:13 +00:00
Dmitriy Ivanov
90b74fb867
Fix mips build
...
Change-Id: Ia2dc2e07740bdbb91ee92bfea459230015fcc99b
2014-10-23 14:34:12 -07:00
Dmitriy Ivanov
e47b3f8456
Remove unnecessary lookups during relocations
...
local_group includes this library and its dependencies.
Change-Id: Ib02474b2355bb147de3889f60092cb2f312997ef
2014-10-23 14:19:07 -07:00
Dmitriy Ivanov
566f2bc623
Merge "Fix relocation to look for symbols in local group"
2014-10-23 20:49:00 +00:00
Dmitriy Ivanov
cfa97f172d
Fix relocation to look for symbols in local group
...
The local group is a sequence of libraries in default (breadth-first)
order. It allows RTLD_LOCALLY loaded library to correctly relocate
symbols within its group (see test-cases).
Local group lookup is performed after main executable and ld_preloads.
Bug: 2643900
Bug: 15432753
Change-Id: I9bb013b46d17dbb5cbdfb8fef26f552748385541
2014-10-23 12:13:54 -07:00
Elliott Hughes
6c5694b6c8
Merge "Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3)."
2014-10-23 17:57:06 +00:00
Derek Xue
ba811120ae
Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3).
...
This change is to migrate the getaddrinfo tests defined in the old file
system/extras/tests/bionic/libc/common/test_getaddrinfo.c
to the new place bionic/tests/netdb_test.cpp.
The test here is more thorough, and catches a bug in getservbyname(3)
that was breaking getaddrinfo(3)'s ability to look up services by name
without a hint that would cause it to ask for a specific protocol.
Change-Id: Ief5ebd0869496d1bc6a97861dfefa04bdf24bab1
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org >
2014-10-22 22:23:10 -07:00
Elliott Hughes
cf8ea37fc9
Merge "bionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests"
2014-10-22 21:30:40 +00:00
Derek Xue
4912fc7d15
bionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests
...
this change migrate the gethostbyname test defined in the old file
system/extras/tests/bionic/libc/common/test_gethostbyname.c
to the new place bionic/tests/netdb_test.cpp
Change-Id: I342171090f681581fb54d68ea4a09adf61f52081
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org >
2014-10-22 14:30:01 -07:00
Elliott Hughes
e516321d78
Merge "Update bionic to tzdata2014i."
2014-10-22 20:41:44 +00:00
Christopher Ferris
efd2ec8fbd
Merge "Fix race condition in timer disarm/delete."
2014-10-22 20:33:06 +00:00
Christopher Ferris
62d84b1935
Fix race condition in timer disarm/delete.
...
When setting a repeat timer using the SIGEV_THREAD mechanism, it's possible
that the callback can be called after the timer is disarmed or deleted.
This happens because the kernel can generate signals that the timer thread
will continue to handle even after the timer is supposed to be off.
Add two new tests to verify that disarming/deleting doesn't continue to
call the callback.
Modify the repeat test to finish more quickly than before.
Refactor the Counter implementation a bit.
Bug: 18039727
(cherry pick from commit 0724132c32
)
Change-Id: I135726ea4038a47920a6c511708813b1a9996c42
2014-10-22 13:20:39 -07:00
Elliott Hughes
a05c2a2a70
Update bionic to tzdata2014i.
...
From the release notes:
Changes affecting future time stamps
Pacific/Fiji will observe DST from 2014-11-02 02:00 to
2015-01-18 03:00. (Thanks to Ken Rylander for the heads-up.)
Guess that future years will use a similar pattern.
A new Zone Pacific/Bougainville, for the part of Papua New
Guinea that plans to switch from UTC+10 to UTC+11 on
2014-12-28 at 02:00. (Thanks to Kiley Walbom for the
heads-up.)
Changes affecting time zone abbreviations
Since Belarus is not changing its clocks even though Moscow
is, the time zone abbreviation in Europe/Minsk is changing
from FET to its more-traditional value MSK on 2014-10-26 at
01:00. (Thanks to Alexander Bokovoy for the heads-up about
Belarus.)
The new abbreviation IDT stands for the pre-1976 use of UT+8
in Indochina, to distinguish it better from ICT (UT+7).
Changes affecting past time stamps
Many time stamps have been corrected for Asia/Ho_Chi_Minh
before 1976 (thanks to Trần Ngọc Quân for an indirect pointer
to Trần Tiến Bình's authoritative book). Asia/Ho_Chi_Minh has
been added to zone1970.tab, to give tzselect users in Vietnam
two choices, since north and south Vietnam disagreed after our
1970 cutoff.
Asia/Phnom_Penh and Asia/Vientiane have been turned into
links, as they differed from existing zones only for older
time stamps. As usual, these changes affect pre-1970 time
stamps only. Their old contents have been moved to the
'backzone' file.
Bug: 18085936
Change-Id: I89c065b4788b10ed7530cc4e8cfbc1b65c05c1b7
2014-10-22 12:31:02 -07:00
Bill Yi
4b8c96d6cd
Merge commit 'bc8745cc3dd94331d008d553a374e733df978963' into HEAD
2014-10-22 08:45:57 -07:00
Chih-Hung Hsieh
098cf45f4e
Merge "Replace ambiguous cmp operator with cmpl."
2014-10-22 00:55:14 +00:00
Chih-Hung Hsieh
c89ee272fb
Replace ambiguous cmp operator with cmpl.
...
Clang assembler rejects ambiguous cmp instruction.
BUG: 17302482
Change-Id: Ie8dca7e4f46e0906c47076bba21c1941482ba6b3
2014-10-21 16:25:35 -07:00
Dmitriy Ivanov
54d76360eb
Merge "Rename library_offset to library_fd_offset"
2014-10-21 21:06:18 +00:00
Dmitriy Ivanov
a6c1279098
Rename library_offset to library_fd_offset
...
replace lseek() and use pread() instead
add test for library_fd_offset > file_size case
Bug: 17762003
Change-Id: I4555f0be635124efe849c1f226985bcba72ffcbd
2014-10-21 13:51:08 -07:00
Dan Albert
ad136624b2
Merge "Never use ASAN."
2014-10-21 18:28:19 +00:00
Dan Albert
5ba672ebcb
Never use ASAN.
...
Unless we completely redo how we build bionic (so that the object
files for libc.so get built separately from libc.a), we can't enable
ASAN here, as libc.a gets linked into static executables.
Change-Id: I2ce4f51248bd51c4213a555ff481b6faabbf53f8
2014-10-21 11:22:26 -07:00
Christopher Ferris
bc8745cc3d
am 8f41d3d3
: Merge "Fix generic __memcpy_chk implementation."
...
* commit '8f41d3d3bc7cf2375e5dd9202da619fd67a5928f':
Fix generic __memcpy_chk implementation.
2014-10-20 18:38:27 +00:00
Christopher Ferris
8f41d3d3bc
Merge "Fix generic __memcpy_chk implementation."
2014-10-20 18:21:22 +00:00
Chih-Hung Hsieh
042319b908
am 9a740482
: Merge "Add -no-integrated-as at local level."
...
* commit '9a7404824b3dfaad6ba14a41aab5f14132392a92':
Add -no-integrated-as at local level.
2014-10-20 17:02:32 +00:00
Chih-Hung Hsieh
9a7404824b
Merge "Add -no-integrated-as at local level."
2014-10-20 16:51:06 +00:00
Chih-Hung Hsieh
a371750681
Add -no-integrated-as at local level.
...
Later we will enable integrated-as as default at the global level.
BUG: 17820427
BUG: 17302991
Change-Id: I233204ca04d7222b2cb1fbd0fa48a482f8b63f6f
2014-10-20 09:09:25 -07:00
Christopher Ferris
7123d4371a
Fix generic __memcpy_chk implementation.
...
- Clean up the labels (add .L to make them local).
- Change to using cfi directives.
- Fix unwinding of the __memcpy_chk fail path.
Bug: 18033671
Change-Id: I12845f10c7ce5e6699c15c558bda64c83f6a392a
2014-10-17 14:44:36 -07:00
Dmitriy Ivanov
d8c3171172
am dec4de45
: Merge "Correct way to specify additional dependencies"
...
* commit 'dec4de456c046881fb1e8c7c7d0c27a11ef09eb7':
Correct way to specify additional dependencies
2014-10-17 20:33:55 +00:00
Dmitriy Ivanov
dec4de456c
Merge "Correct way to specify additional dependencies"
2014-10-17 20:19:18 +00:00
Dmitriy Ivanov
4a9e1937c5
Correct way to specify additional dependencies
...
Previous one was not covering all the targets
Bug: 17548097
Change-Id: I425e0f8d6e5a43feabd29dcb327049b82754d249
2014-10-17 11:47:18 -07:00
Dmitriy Ivanov
d932c36385
am 5281e1fb
: Merge "Fix misleading comment."
...
* commit '5281e1fb15632c8dc714d10abc6cd1a22a061782':
Fix misleading comment.
2014-10-16 18:02:17 +00:00
Dmitriy Ivanov
5281e1fb15
Merge "Fix misleading comment."
2014-10-16 17:54:02 +00:00
Dan Albert
96def860ae
am 90aa7e37
: Merge "Only use <atomic> for C++11 and newer."
...
* commit '90aa7e374f9000577cde64c4fb88c5dab8dac62e':
Only use <atomic> for C++11 and newer.
2014-10-16 16:27:37 +00:00
Dan Albert
90aa7e374f
Merge "Only use <atomic> for C++11 and newer."
2014-10-16 16:19:44 +00:00
Dan Albert
c2d70c0f34
am 8bb12127
: Merge "Don\'t use an STL for libm."
...
* commit '8bb12127e62c1fc4d9dc99ce9272008023c7c08e':
Don't use an STL for libm.
2014-10-16 16:05:31 +00:00
Dan Albert
8bb12127e6
Merge "Don't use an STL for libm."
2014-10-16 15:56:32 +00:00
Dan Albert
3ce0769aa5
Only use <atomic> for C++11 and newer.
...
Any pre-C++11 clients of stdatomic.h that use libc++ are being forced
over to <atomic>, which they don't have the language support to use.
Change-Id: I62445c1f2541410a1569498c09433c7196635537
2014-10-16 07:52:51 -07:00
Dan Albert
e91d9cd4ad
Don't use an STL for libm.
...
The default is none right now, but this will be needed when the
default becomes libc++.
Change-Id: Ib022adac2b9dc08fbfae830908128043cfffb91e
2014-10-16 07:44:47 -07:00
Dmitriy Ivanov
bb5f4eebc0
am f5e02582
: Merge "Ignore DT_BIND_NOW (0x18)"
...
* commit 'f5e0258268b45faa4d84de34047660061720abc7':
Ignore DT_BIND_NOW (0x18)
2014-10-15 23:57:28 +00:00
Dmitriy Ivanov
f5e0258268
Merge "Ignore DT_BIND_NOW (0x18)"
2014-10-15 23:46:26 +00:00
Dmitriy Ivanov
ea6eae182a
Ignore DT_BIND_NOW (0x18)
...
Bug: 17552334
Change-Id: Ibe93fd3d6580f369f9a6ef8d235bf0df00fe7607
2014-10-15 22:57:14 +00:00
Robert Grosse
4544d9f9bf
Fix misleading comment.
...
Change-Id: I9e2aa6c2ba938c8f8d7c74eba32d313c866c77b2
2014-10-15 14:32:19 -07:00
Dan Albert
8d87796d19
am 71cbcdcf
: Merge "We don\'t actually need all of libc++ here."
...
* commit '71cbcdcf947835076241b9dd72099f28997eb290':
We don't actually need all of libc++ here.
2014-10-15 20:10:06 +00:00
Dan Albert
71cbcdcf94
Merge "We don't actually need all of libc++ here."
2014-10-15 19:59:09 +00:00
Dan Albert
a7c2e0bad6
We don't actually need all of libc++ here.
...
All we're actually interested in is the unwinder. Since that's now a
separate library, just use that.
Change-Id: If86071a0d850da961336a58147b70369ace7bd12
2014-10-14 14:19:34 -07:00
Elliott Hughes
2476691632
am 97df16ba
: Merge "Add clock_settime and clock_nanosleep."
...
* commit '97df16ba5c2911e06d1211781a5724706abd227b':
Add clock_settime and clock_nanosleep.
2014-10-14 03:26:03 +00:00
Elliott Hughes
97df16ba5c
Merge "Add clock_settime and clock_nanosleep."
2014-10-14 03:07:43 +00:00
Haruki Hasegawa
1816025684
Add clock_settime and clock_nanosleep.
...
Add the missing prototypes, fix the existing prototypes to use clockid_t
rather than int, fix clock_nanosleep's failure behavior, and add simple
tests.
Bug: 17644443
Bug: https://code.google.com/p/android/issues/detail?id=77372
Change-Id: I03fba369939403918abcabae9551a7123953d780
Signed-off-by: Haruki Hasegawa <h6a.h4i.0@gmail.com >
2014-10-13 17:04:10 -07:00
Dmitriy Ivanov
951e582c68
am c2297050
: Merge "Add glibc alias for NT_PRFPREG"
...
* commit 'c229705051c8b6a06ad81c221ca74ef9aa743e13':
Add glibc alias for NT_PRFPREG
2014-10-13 22:15:39 +00:00
Christopher Ferris
737b6581c2
am 083769a3
: Merge "Return total footprint, not high water mark."
...
* commit '083769a3dffabfb968a03a700b9f2fd7838bcf75':
Return total footprint, not high water mark.
2014-10-13 22:10:03 +00:00
Dan Albert
c01a38622a
am 94571f9a
: Merge "Use LOCAL_CXX_STL to select libc++_static."
...
* commit '94571f9ade03cfe24bff1bddc4d6c1a320b39b8e':
Use LOCAL_CXX_STL to select libc++_static.
2014-10-13 22:10:00 +00:00
Dmitriy Ivanov
c229705051
Merge "Add glibc alias for NT_PRFPREG"
2014-10-13 22:08:52 +00:00
Dmitriy Ivanov
a6bee4df4c
Add glibc alias for NT_PRFPREG
...
Also fix comment style for DF_1_ constants
Change-Id: I7c3ed1d834f0a2b85ee8cc8016c79020955084f8
2014-10-13 15:03:27 -07:00
Christopher Ferris
083769a3df
Merge "Return total footprint, not high water mark."
2014-10-13 19:48:35 +00:00
Christopher Ferris
fee09e556f
Return total footprint, not high water mark.
...
The mallinfo usmblks value returned by dlmalloc is a little misleading.
It's not the current max, it's the historical high water mark. This
leads to dumpsys meminfo producing native memory numbers that don't add up.
Change this to the real total footprint, not this high water mark.
Bug: 17265653
(cherry pick from commit f4ada9c9ce
)
Change-Id: I2fba10285859dccfe8331063c9be14cc169f2d91
2014-10-13 12:45:35 -07:00
Dan Albert
94571f9ade
Merge "Use LOCAL_CXX_STL to select libc++_static."
2014-10-13 19:09:00 +00:00
Dan Albert
90a29db0f4
Use LOCAL_CXX_STL to select libc++_static.
...
Directly adding the library to LOCAL_STATIC_LIBRARIES thwarts a few
build system checks.
Change-Id: Ib23c43badfa85de21c691f79ccdcc2cbe2a89b33
2014-10-13 11:20:29 -07:00
Dan Albert
04e0d0ee7e
am 4c086247
: Merge "Fix some formatting so GitHub displays it nicely."
...
* commit '4c0862474e63b09c901d11de47a318ce73a0c686':
Fix some formatting so GitHub displays it nicely.
2014-10-11 00:57:31 +00:00
Dan Albert
4c0862474e
Merge "Fix some formatting so GitHub displays it nicely."
2014-10-11 00:48:33 +00:00
Dan Albert
472cce5c98
Fix some formatting so GitHub displays it nicely.
...
Change-Id: Id6ce9a61bebd98544c85e5780147715c73d0e78b
2014-10-10 17:14:37 -07:00
Dan Albert
64d5450947
am 8c3901b2
: Merge "Improve documentation for testing and coverage."
...
* commit '8c3901b2999e6821b8ee984193352ba45b003492':
Improve documentation for testing and coverage.
2014-10-10 19:05:03 +00:00
Dan Albert
8c3901b299
Merge "Improve documentation for testing and coverage."
2014-10-10 18:59:03 +00:00
Dan Albert
efee1ce46a
Improve documentation for testing and coverage.
...
Also rename HACKING.txt to README.md so it will display on the GitHub
mirror.
Change-Id: I70157a4ad262700212bf9afd87253d195c7013a9
2014-10-10 11:45:19 -07:00
Elliott Hughes
b503f51080
am 2698f9ef
: Merge "Catch up on upstream\'s round/roundf/roundl."
...
* commit '2698f9ef8412011295702cd6df4b66e01cf6c220':
Catch up on upstream's round/roundf/roundl.
2014-10-10 17:39:00 +00:00
Elliott Hughes
2698f9ef84
Merge "Catch up on upstream's round/roundf/roundl."
2014-10-10 17:29:52 +00:00
Elliott Hughes
14538ca75e
Catch up on upstream's round/roundf/roundl.
...
Not sure how we missed these, but better late than never...
Change-Id: Ib08d1bb6e340a1907cbeb1cbe220e33f70642bdc
2014-10-10 10:21:43 -07:00
Christopher Ferris
8f055f7f54
am c891e240
: Add back symbols to fix Greed for Glory franchise.
...
* commit 'c891e24073830e07ba7373dee554ff2c70e1d313':
Add back symbols to fix Greed for Glory franchise.
2014-10-10 14:35:22 +00:00
Christopher Ferris
472c21b437
am 62a665a6
: Merge "Add back symbols to fix Greed for Glory franchise."
...
* commit '62a665a605df64a6ea5ac680bb564ad7a5f03711':
Add back symbols to fix Greed for Glory franchise.
2014-10-10 06:38:26 +00:00
Christopher Ferris
62a665a605
Merge "Add back symbols to fix Greed for Glory franchise."
2014-10-10 05:25:26 +00:00
Christopher Ferris
78ba823033
Add back symbols to fix Greed for Glory franchise.
...
Bug: 17813018
(cherry picked from commit c891e24073
)
Change-Id: I4e891c2dbad9ea00d2377c5175317d9ae3840153
2014-10-09 22:23:50 -07:00
Elliott Hughes
dc4dc99268
am 8dd3b65f
: Merge "Sync libm with upstream."
...
* commit '8dd3b65f2dd63df1baa83285f607cf110f21c27c':
Sync libm with upstream.
2014-10-10 01:59:21 +00:00
Elliott Hughes
8dd3b65f2d
Merge "Sync libm with upstream."
2014-10-10 01:26:18 +00:00
Elliott Hughes
488268b134
Sync libm with upstream.
...
Change-Id: I3b4e2c9c6ce6c5934f270a51ce5eb9154c5805d5
2014-10-09 16:20:37 -07:00
Elliott Hughes
a852bb56e8
am e9c216fc
: Merge "Fix pthread_attr_getstack under valgrind."
...
* commit 'e9c216fca56e84b0d0a96f7d5e3c99d3276ef071':
Fix pthread_attr_getstack under valgrind.
2014-10-09 22:10:37 +00:00
Elliott Hughes
e9c216fca5
Merge "Fix pthread_attr_getstack under valgrind."
2014-10-09 21:17:41 +00:00
Elliott Hughes
9afb2f2106
Fix pthread_attr_getstack under valgrind.
...
valgrind seems to mess with the stack enough that the kernel will
report "[stack:pid]" rather than "[stack]" in /proc/self/maps, so
switch to the task-specific file instead to force "[stack]". (There
are two conditions in the kernel code that decides which form to
output.)
Bug: 17897476
Change-Id: Iff85ceb6d52e8716251fab4e45d95a27184c5529
2014-10-09 14:01:47 -07:00
Christopher Ferris
42e0817b45
resolved conflicts for merge of c9734d24
to lmp-dev-plus-aosp
...
Change-Id: I2ced64fed071f126725a8cdbd12d7c1f45ab7947
2014-10-09 12:12:49 -07:00
Christopher Ferris
95296d4129
am d0944d9e
: Merge "Re-add dlmalloc for 32 bit."
...
* commit 'd0944d9ed38be0d74c3d8876f0f36b9ddc0ce38c':
Re-add dlmalloc for 32 bit.
2014-10-09 18:59:43 +00:00
Christopher Ferris
d0944d9ed3
Merge "Re-add dlmalloc for 32 bit."
2014-10-09 18:50:32 +00:00
Christopher Ferris
f183f95946
Re-add dlmalloc for 32 bit.
...
It turns out that appportable has a version that calls dlmalloc directly.
Re-add the dlmalloc symbol for 32 bit only as a compatibility shim that
calls malloc.
Bug: 17881362
(cherry pick commit from c9734d24d9
)
Change-Id: Iee9a777f66a1edb407d7563a60792b767ac4f83a
2014-10-09 11:47:01 -07:00
Dan Albert
b9122b73bf
am 8a7f8387
: Merge "Use snprintf(3) instead of sprintf(3)."
...
* commit '8a7f8387b3b95de2ee0c42e34a226a1fcc066896':
Use snprintf(3) instead of sprintf(3).
2014-10-09 00:40:24 +00:00
Dan Albert
8a7f8387b3
Merge "Use snprintf(3) instead of sprintf(3)."
2014-10-09 00:32:11 +00:00
Dan Albert
a2220ffb74
am 72d72d91
: Merge "Replace uses of sprintf(3) with snprintf(3)."
...
* commit '72d72d91262fabe6bc169618ef3acb0721441cf0':
Replace uses of sprintf(3) with snprintf(3).
2014-10-09 00:13:06 +00:00
Ying Wang
196f4eee9f
am 0c0e728b
: Merge "Build dlext_testzip as custom module."
...
* commit '0c0e728bd8cdeb0e73fd9c491d05993dfc77b622':
Build dlext_testzip as custom module.
2014-10-09 00:13:05 +00:00
Dan Albert
ca75f9cdeb
Use snprintf(3) instead of sprintf(3).
...
This change should probably be made upstream as well, but they have a
note about not using it because it isn't available on all systems.
Change-Id: I6d8404c031bd2f486532ced55d94bbb4a4cd2e71
2014-10-08 17:10:26 -07:00
Dan Albert
72d72d9126
Merge "Replace uses of sprintf(3) with snprintf(3)."
2014-10-08 23:44:48 +00:00
Ying Wang
0c0e728bd8
Merge "Build dlext_testzip as custom module."
2014-10-08 23:43:50 +00:00
Ying Wang
667853d477
Build dlext_testzip as custom module.
...
Use $(BUILD_SYSTEM)/base_rules to build it as custom module, so that
it's exposed to utilities like mm/mmma etc.
Bug: 17887283
Change-Id: Idd7b62d08e4d56331a3ff15da6aa46eae8c41898
2014-10-08 16:38:58 -07:00
Dan Albert
cfd8c45725
Replace uses of sprintf(3) with snprintf(3).
...
At -00, the compiler warns about sprintf(3), and it is promoted to an
error by -Werror.
Change-Id: Ibb380d27d7eb09dda8ac785be2478d656b379190
2014-10-08 16:12:27 -07:00
Dmitriy Ivanov
86c20f6a52
am ac3c94d0
: Merge "Fix mma build: \'cd bionic && mma\' case"
...
* commit 'ac3c94d031c16a0299471a593cdc6248494e539d':
Fix mma build: 'cd bionic && mma' case
2014-10-08 22:49:22 +00:00
Elliott Hughes
9a96ca3ec4
am 0511534d
: Merge "Don\'t silently return EINVAL for a NULL sem_t*."
...
* commit '0511534dcbb00f26b2fd6209b1b60a3263bf042c':
Don't silently return EINVAL for a NULL sem_t*.
2014-10-08 22:49:21 +00:00
Elliott Hughes
294d7d1215
am bfeef2d3
: Merge "Use ln(1) rather than cp(1) to set up host /system for testing."
...
* commit 'bfeef2d3a903f161531ce5e45b2dd7d280e7f154':
Use ln(1) rather than cp(1) to set up host /system for testing.
2014-10-08 22:49:20 +00:00
Dmitriy Ivanov
ac3c94d031
Merge "Fix mma build: 'cd bionic && mma' case"
2014-10-08 22:39:21 +00:00
Dmitriy Ivanov
51166d3aa2
Fix mma build: 'cd bionic && mma' case
...
Bug: 17887283
Change-Id: If2015f2361348eac8c53aed3f8715077b79ce2f5
2014-10-08 15:36:56 -07:00
Elliott Hughes
0511534dcb
Merge "Don't silently return EINVAL for a NULL sem_t*."
2014-10-08 22:21:13 +00:00
Elliott Hughes
bfeef2d3a9
Merge "Use ln(1) rather than cp(1) to set up host /system for testing."
2014-10-08 22:17:19 +00:00
Elliott Hughes
75129ae9f3
Don't silently return EINVAL for a NULL sem_t*.
...
Bug: 17571197
Change-Id: Ied31d8de87fc10d20dc338be0457e9a4ddb9a0a5
2014-10-08 15:11:44 -07:00
Elliott Hughes
3ea4d56ed4
Use ln(1) rather than cp(1) to set up host /system for testing.
...
The trouble with cp is that if you're running a command directly (because
you're using gdb, say), you need to make sure you've copied the linker
and shell again if you've done a rebuild that caused a change there.
Change-Id: I312da30c0f92b515967e854e0faba272c961ecc7
2014-10-08 14:56:27 -07:00
Elliott Hughes
7083b23b1c
am 13641010
: Merge "Fix compile-time tests for LP64."
...
* commit '1364101067072c2ce6fa395cdef2534f338f30b1':
Fix compile-time tests for LP64.
2014-10-08 20:39:57 +00:00
Elliott Hughes
1364101067
Merge "Fix compile-time tests for LP64."
2014-10-08 20:31:10 +00:00
Elliott Hughes
b4b15c63a1
Fix compile-time tests for LP64.
...
Change-Id: Ib9bec5c6c77c55679d64c2bc15ab70979c40e66c
2014-10-08 13:21:29 -07:00
Dan Albert
1b06736d96
am 5cc5c5ea
: Merge "Add basic compile time tests for sn?printf."
...
* commit '5cc5c5ea0b7a5a2d523ea35c645a42b222929276':
Add basic compile time tests for sn?printf.
2014-10-08 20:13:24 +00:00
Dan Albert
5cc5c5ea0b
Merge "Add basic compile time tests for sn?printf."
2014-10-08 20:04:27 +00:00
Dan Albert
2fbb1b653e
Add basic compile time tests for sn?printf.
...
Bug: 17782583
Change-Id: I6443537c643d1cc6b4a8f2dab5c364f2fbc1faa3
2014-10-08 13:02:53 -07:00
Elliott Hughes
b559513e08
am 5a3ca374
: Merge "Revert "Work around a bug in Immersion\'s libImmEmulatorJ.so.""
...
* commit '5a3ca374583f7605672d9e8f9098011de240f7c4':
Revert "Work around a bug in Immersion's libImmEmulatorJ.so."
2014-10-08 16:49:35 +00:00
Elliott Hughes
5a3ca37458
Merge "Revert "Work around a bug in Immersion's libImmEmulatorJ.so.""
2014-10-08 16:40:58 +00:00
Dan Albert
6c4a64e3e2
am c9e4f2de
: Merge "Inline helpers need to be exported unmangled."
...
* commit 'c9e4f2de0a92ebf6dec336f383ba172efe1bb366':
Inline helpers need to be exported unmangled.
2014-10-08 00:12:32 +00:00
Dan Albert
c9e4f2de0a
Merge "Inline helpers need to be exported unmangled."
2014-10-08 00:01:08 +00:00
Dan Albert
658727e111
Inline helpers need to be exported unmangled.
...
__open_2() is used by the fortify implementation of open(2) in
fcntl.h, and as such needs an unmangled C name. For some reason
(inlining?), this doesn't cause problems at the default optimization
level, but does for -O0.
The rest of these didn't cause build failures, but they look suspect
and probably will, we just haven't caught them yet.
Bug: 17784968
Change-Id: I7391a7a8999ee204eaf6abd14a3d5373ea419d5b
2014-10-07 16:46:47 -07:00
Elliott Hughes
3d773274ad
Revert "Work around a bug in Immersion's libImmEmulatorJ.so."
...
This reverts commit 7d3f553f98
.
Change-Id: I8909b6aa1d97e9a61dbe95a2d91b9fbe336b58f0
2014-10-07 23:31:06 +00:00
Elliott Hughes
5eebae46cb
am 1543fdf6
: Work around a bug in Immersion\'s libImmEmulatorJ.so.
...
* commit '1543fdf616ddebee7819214437527f380e5c743b':
Work around a bug in Immersion's libImmEmulatorJ.so.
2014-10-07 23:30:35 +00:00
Elliott Hughes
e698a7b5cf
am e8d9057e
: Merge "Work around a bug in Immersion\'s libImmEmulatorJ.so."
...
* commit 'e8d9057e3005f6f53f8ef2e876b43aea7a892292':
Work around a bug in Immersion's libImmEmulatorJ.so.
2014-10-07 23:20:57 +00:00
Elliott Hughes
e8d9057e30
Merge "Work around a bug in Immersion's libImmEmulatorJ.so."
2014-10-07 23:08:12 +00:00
Elliott Hughes
7d3f553f98
Work around a bug in Immersion's libImmEmulatorJ.so.
...
This library calls pthread_mutex_lock and pthread_mutex_unlock with a NULL
pthread_mutex_t*. This gives them (and their users) one release to fix things.
Bug: 17443936
Change-Id: I3b63c9a3dd63db0833f21073e323b3236a13b47a
2014-10-07 16:02:11 -07:00
Dan Albert
7c955d7797
am eeb9aa02
: Merge "Use snprintf instead of sprintf."
...
* commit 'eeb9aa02b7f307a1d9b80731dd69ef9dd2f47e47':
Use snprintf instead of sprintf.
2014-10-07 18:46:32 +00:00
Dan Albert
eeb9aa02b7
Merge "Use snprintf instead of sprintf."
2014-10-07 18:38:11 +00:00
Dan Albert
b0fd55608e
Use snprintf instead of sprintf.
...
At -O0, the attribute warning on sprintf is actually triggered (why
doesn't this happen with -Os?!) and promoted to an error by -Werror.
asctime64_r() is a non-standard function, but the IBM docs state that
the buffer is assumed to be at least 26 characters wide, and the
format string does limit to that (assuming a 4 digit year, also
defined by the IBM docs).
http://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxbd00/asctimer.htm
Change-Id: I1c884474a769aa16c53e985c3d8d694c478c1189
2014-10-07 11:28:47 -07:00
Dmitriy Ivanov
9ec3d2e69a
am 6d2dd6a7
: Merge "Fix 2nd arch prefix application"
...
* commit '6d2dd6a74035a7ace838dd44e7910d54e15c11c2':
Fix 2nd arch prefix application
2014-10-07 17:12:58 +00:00
Dmitriy Ivanov
6d2dd6a740
Merge "Fix 2nd arch prefix application"
2014-10-07 17:04:24 +00:00
Dmitriy Ivanov
75d66dd9a7
Fix 2nd arch prefix application
...
Bug: 17887283
Change-Id: I7b3b2332212fe416d6b5f5c2e5c1e07605ba09aa
2014-10-07 09:46:46 -07:00
Christopher Ferris
5ad21d60fb
am 2cf15571
: am 40bc7cd4
: (-s ours) DO NOT MERGE Re-add .save directive for arm assembler code.
...
* commit '2cf155713aaba451065d593335d544f2ada24ddf':
DO NOT MERGE Re-add .save directive for arm assembler code.
2014-10-07 15:31:51 +00:00
Christopher Ferris
fae2ad067e
am 81fca356
: Merge "Force export symbols on all x86 variants in libc."
...
* commit '81fca35672df90e2f770e67bbf7e7735c6ff8bd8':
Force export symbols on all x86 variants in libc.
2014-10-06 23:51:43 +00:00
Christopher Ferris
81fca35672
Merge "Force export symbols on all x86 variants in libc."
2014-10-06 23:45:03 +00:00
Christopher Ferris
6869d26ad9
Force export symbols on all x86 variants in libc.
...
For silvermont, the __popcountsi2 symbol does not get exported by libc.
But for atom, this symbol is exported. Since we already exported this symbol
for previous releases, it's better to just follow through and force
the export, but only for 32 bit. x86 64 bit will not export this symbol.
Bug: 17681440
(cherry picked from commit d11eac3455
)
Change-Id: I93704c721d98d569922f606f214069bda24872ba
2014-10-06 16:41:46 -07:00
Christopher Ferris
9a7d31eb9c
Merge "resolved conflicts for merge of d11eac34
to lmp-dev-plus-aosp" into lmp-dev-plus-aosp
2014-10-06 23:32:53 +00:00
Christopher Ferris
d61d2b7b80
resolved conflicts for merge of d11eac34
to lmp-dev-plus-aosp
...
Change-Id: I3cd9056d5d689b783f4afa870397ad4d9de357f5
2014-10-06 16:30:45 -07:00
Nick Kralevich
2d04b5e09f
am b5cba608
: Merge "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"
...
* commit 'b5cba6081bc9179d3ea2aa1bfd77dd8de1c88525':
cdefs.h: add artificial attribute to FORTIFY_SOURCE functions
2014-10-06 23:29:04 +00:00
Nick Kralevich
b5cba6081b
Merge "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"
2014-10-06 23:21:04 +00:00
Nick Kralevich
1aaa17802c
cdefs.h: add artificial attribute to FORTIFY_SOURCE functions
...
Otherwise the gcc compiler warning doesn't show up.
Add -Wno-error to fortify related tests. Fortify related tests
are expected to be examples of bad programs, and in many
cases shouldn't compile cleanly. Rewriting them to compile
cleanly isn't feasible nor desirable.
Bug: 17784968
Change-Id: I93bececa7444d965f18c7c27d46e7abce5c49a02
2014-10-06 15:11:52 -07:00
Dan Albert
65c10a1477
am 9969feca
: Merge "Add compile time test infrastructure for bionic."
...
* commit '9969fecad23edebcbc4f32a50dc65a2876a2478f':
Add compile time test infrastructure for bionic.
2014-10-06 19:54:52 +00:00
Dan Albert
9969fecad2
Merge "Add compile time test infrastructure for bionic."
2014-10-06 19:45:32 +00:00
Dmitriy Ivanov
b9d4a64866
am f4320e86
: Merge "Resolve "unused DT entry" warnings for x86_64"
...
* commit 'f4320e867cbc7764d2f1fa8ac64da9cc38cba733':
Resolve "unused DT entry" warnings for x86_64
2014-10-06 19:14:51 +00:00
Dmitriy Ivanov
f4320e867c
Merge "Resolve "unused DT entry" warnings for x86_64"
2014-10-06 19:07:58 +00:00
Dan Albert
f04a8bc226
Add compile time test infrastructure for bionic.
...
Actual tests to follow...
Bug: 17782583
Change-Id: I22857f19899c3b39dbc2e5473ad3be1a8a291139
2014-10-06 11:38:01 -07:00
Dmitriy Ivanov
513e29e16f
Resolve "unused DT entry" warnings for x86_64
...
Change-Id: I3a2c87bf6e6259313cd9203389623f13b7405ef3
2014-10-06 11:32:19 -07:00
Dmitriy Ivanov
47388d8297
am 6d569b92
: Merge "Add file_offset parameter to android_extinfo"
...
* commit '6d569b92012543a297dccf2dfeaa648d07b3c133':
Add file_offset parameter to android_extinfo
2014-10-06 17:28:54 +00:00
Dmitriy Ivanov
6d569b9201
Merge "Add file_offset parameter to android_extinfo"
2014-10-06 17:19:39 +00:00
Dmitriy Ivanov
07e5bc152d
Add file_offset parameter to android_extinfo
...
Bug: 17762003
Change-Id: I8fb267a3155acef3dba534038cf5d1ef00d7154b
2014-10-06 10:02:34 -07:00
Nick Kralevich
0fd98ec4d7
am a6eef3be
: Merge "Revert "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions""
...
* commit 'a6eef3be105fb34161fd1b1d513f7d03b5f1bbe9':
Revert "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"
2014-10-06 00:44:49 +00:00
Nick Kralevich
a6eef3be10
Merge "Revert "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions""
2014-10-06 00:40:07 +00:00
Nick Kralevich
884a3de60f
Revert "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"
...
Broke the build.
In file included from frameworks/rs/cpu_ref/rsCpuCore.cpp:36:
system/core/include/cutils/properties.h:118:1: error: unknown attribute '__artificial__' ignored [-Werror,-Wunknown-attributes]
__BIONIC_FORTIFY_INLINE
^
bionic/libc/include/sys/cdefs.h:537:110: note: expanded from macro '__BIONIC_FORTIFY_INLINE'
#define __BIONIC_FORTIFY_INLINE extern __inline__ __always_inline __attribute__((gnu_inline)) __attribute__((__artificial__))
^
1 error generated.
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuCore.o] Error 1
This reverts commit 9b543ffeac
.
Change-Id: I6a1198747505dcb402b722887c1bfbc3a628a8b8
2014-10-06 00:39:47 +00:00
Nick Kralevich
036cd686af
am 558ec810
: Merge "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"
...
* commit '558ec8103bad6eed78c3e372fc9b2535a3486745':
cdefs.h: add artificial attribute to FORTIFY_SOURCE functions
2014-10-06 00:17:24 +00:00
Nick Kralevich
558ec8103b
Merge "cdefs.h: add artificial attribute to FORTIFY_SOURCE functions"
2014-10-06 00:10:48 +00:00
Nick Kralevich
10450b14f7
am db6fea86
: Merge "further cleanup memcpy fortify implementation"
...
* commit 'db6fea86a5cb70c5aaad61ef6c126557f36e138b':
further cleanup memcpy fortify implementation
2014-10-05 16:52:37 +00:00
Nick Kralevich
db6fea86a5
Merge "further cleanup memcpy fortify implementation"
2014-10-05 16:43:24 +00:00
Nick Kralevich
b84f667e93
further cleanup memcpy fortify implementation
...
Change-Id: I0380f3c8ca8f9bb8a206accd839c32c9daf13c56
2014-10-05 06:52:24 -07:00
Nick Kralevich
9b543ffeac
cdefs.h: add artificial attribute to FORTIFY_SOURCE functions
...
Otherwise the gcc compiler warning doesn't show up.
Delete some unittests. These unittests no longer compile cleanly
using -Wall -Werror, and rewriting them to compile cleanly
isn't feasible.
Bug: 17784968
Change-Id: I9bbdc7b6a1c2ac75754f5d0f90782e0dfae66721
2014-10-04 22:01:41 -07:00
Nick Kralevich
2b208d96af
am ae97a776
: Merge "string.h: remove unused variable"
...
* commit 'ae97a776ea900e5923d6d320d72dcc04b224796e':
string.h: remove unused variable
2014-10-04 22:47:10 +00:00
Nick Kralevich
ae97a776ea
Merge "string.h: remove unused variable"
2014-10-04 22:38:09 +00:00
Nick Kralevich
48be71d02b
string.h: remove unused variable
...
Change-Id: I08b7dab1b374ad427fcbee4183f2c7d93d0199a9
2014-10-04 15:20:00 -07:00
Elliott Hughes
2e345351b3
resolved conflicts for merge of a5087148
to lmp-dev-plus-aosp
...
Change-Id: Ic6b352650a7dec53cdd681d0f0b8ba4278e560d3
2014-10-04 10:03:08 -07:00
Elliott Hughes
b4954dc384
am 4ef0e59f
: Merge "Reimplement clock(3) using clock_gettime(3)"
...
* commit '4ef0e59f339ad138eabe3bc408beda6004f5ea83':
Reimplement clock(3) using clock_gettime(3)
2014-10-04 02:24:08 +00:00
Elliott Hughes
4ef0e59f33
Merge "Reimplement clock(3) using clock_gettime(3)"
2014-10-04 01:57:42 +00:00
Alex Van Brunt
8d0b2dbf21
Reimplement clock(3) using clock_gettime(3)
...
Unlike times(), clock_gettime() is implemented as a vDSO on many architectures.
So, using clock_gettime() will return a more accurate time and do so with less
overhead because it does have the overhead of calling into the kernel.
It is also significantly more accurate because it measures the actual time in
nanoseconds rather than the number of ticks (typically 1 millisecond or more).
Bug: 17814435
Change-Id: Id4945d9f387330518f78669809639952e9227ed9
2014-10-03 18:54:28 -07:00
Elliott Hughes
f4555a003b
am ea9800e9
: Explain why clock(3) isn\'t broken.
...
* commit 'ea9800e98598c71fe76c4e2a0d0498b6bd490a83':
Explain why clock(3) isn't broken.
2014-10-03 23:57:39 +00:00
Dmitriy Ivanov
fc046eca0b
am d5df4124
: Merge "Add RTLD_NODELETE flag support"
...
* commit 'd5df4124bbbb30411ef19f7c2fbb3987d0eb9630':
Add RTLD_NODELETE flag support
2014-10-03 16:53:33 +00:00
Dmitriy Ivanov
d5df4124bb
Merge "Add RTLD_NODELETE flag support"
2014-10-02 21:47:29 +00:00
Hans Boehm
f26a55e13a
am 2d111d9e
: Merge "Make memory_order_acquire visible in global namespace"
...
* commit '2d111d9eb10b6c48e2e47251be66b418a6109dd9':
Make memory_order_acquire visible in global namespace
2014-10-01 19:23:05 +00:00
Hans Boehm
2d111d9eb1
Merge "Make memory_order_acquire visible in global namespace"
2014-10-01 19:16:50 +00:00
Christopher Ferris
3a25cdfd33
am b19bd93f
: Merge "Add stpcpy assembler version."
...
* commit 'b19bd93f8b83307f2f7530545f7c78824914f4eb':
Add stpcpy assembler version.
2014-10-01 18:24:16 +00:00
Christopher Ferris
b19bd93f8b
Merge "Add stpcpy assembler version."
2014-10-01 18:16:14 +00:00
Dmitriy Ivanov
1b20dafdbe
Add RTLD_NODELETE flag support
...
Bug: https://code.google.com/p/android/issues/detail?id=64069
Change-Id: Ie5f90482feae86391172be4b32d6cb7d76f446fb
2014-10-01 11:09:37 -07:00
Elliott Hughes
1f84254edb
am cadccfd7
: Merge "Update bionic to tzdata 2014h."
...
* commit 'cadccfd70821aeb107b8fc0084da04faecbfde2f':
Update bionic to tzdata 2014h.
2014-10-01 17:35:56 +00:00
Elliott Hughes
44ba5935e9
am 89fd3236
: Merge "Fix update-tzdata.py to rebuild icu4c .dat file."
...
* commit '89fd32362bb62775aad001802bc79e3f07d7d62f':
Fix update-tzdata.py to rebuild icu4c .dat file.
2014-10-01 17:35:55 +00:00
Elliott Hughes
cadccfd708
Merge "Update bionic to tzdata 2014h."
2014-10-01 17:20:34 +00:00
Elliott Hughes
89fd32362b
Merge "Fix update-tzdata.py to rebuild icu4c .dat file."
2014-10-01 17:00:23 +00:00
Christopher Ferris
7d849ac378
Add stpcpy assembler version.
...
For generic, continue to use the C version of the code.
Bug: 13746695
Change-Id: I77426a70b06131f2373bb51265bea1240bb3f101
2014-09-30 19:23:26 -07:00
Dan Albert
92df938168
am 81156d93
: Merge "Add coverage flag for libm."
...
* commit '81156d93c557e88379dd3e9d869dcc97a15293f5':
Add coverage flag for libm.
2014-10-01 01:38:35 +00:00
Hans Boehm
76ac4d0853
Make memory_order_acquire visible in global namespace
...
We were missing that using directive when including <atomic>.
Bug:17736764
Change-Id: Ie8ca92a952749415567bcd5fa21d56629a364660
2014-09-30 18:35:04 -07:00
Dan Albert
81156d93c5
Merge "Add coverage flag for libm."
2014-10-01 01:28:25 +00:00
Elliott Hughes
0c8fb51e6b
Update bionic to tzdata 2014h.
...
From the release notes:
Changes affecting past time stamps
America/Jamaica's 1974 spring-forward transition was Jan. 6, not Apr. 28.
Shanks says Asia/Novokuznetsk switched from LMT (not "NMT") on 1924-05-01,
not 1920-01-06. The old entry was based on a misinterpretation of Shanks.
Some more zones have been turned into links, when they differed
from existing zones only for older time stamps. As usual,
these changes affect UTC offsets in pre-1970 time stamps only.
Their old contents have been moved to the 'backzone' file.
The affected zones are: Africa/Blantyre, Africa/Bujumbura,
Africa/Gaborone, Africa/Harare, Africa/Kigali, Africa/Lubumbashi,
Africa/Lusaka, Africa/Maseru, and Africa/Mbabane.
Bug: 17731498
Change-Id: If65b740d4e3a67075cca770655a1df17952c3da0
2014-09-30 17:35:38 -07:00
Elliott Hughes
f8896c6c93
Fix update-tzdata.py to rebuild icu4c .dat file.
...
Bug: 17731498
Change-Id: I4c810507c0ca9883dde1bece14530db80485b8f6
2014-09-30 17:30:01 -07:00
Elliott Hughes
d0fb0873f5
am 252c1ac9
: Merge "Update our FreeBSD realpath(3) to upstream head."
...
* commit '252c1ac9738ff6187354f243ef118eac962b65dc':
Update our FreeBSD realpath(3) to upstream head.
2014-10-01 00:05:58 +00:00
Dmitriy Ivanov
fe1cfb1e09
am 701cf941
: Merge "Fix mips build"
...
* commit '701cf9419b4df92bd959bbc6f18150f6ae76df7c':
Fix mips build
2014-09-30 23:57:33 +00:00
Dan Albert
090b25e8a9
am e04aa450
: Merge "Clean up the pthread key tests."
...
* commit 'e04aa450c2b51ea066d1a1c37978cce808d13872':
Clean up the pthread key tests.
2014-09-30 23:57:33 +00:00
Dan Albert
12e3f22c7c
Add coverage flag for libm.
...
Change-Id: I195d38c5e1f50d1cc6d4353dc8857f11b803b7a3
2014-09-30 16:56:43 -07:00
Elliott Hughes
252c1ac973
Merge "Update our FreeBSD realpath(3) to upstream head."
2014-09-30 23:55:57 +00:00
Dmitriy Ivanov
c1429de2eb
am 1f7d5ac5
: Merge "Fix unused DT entry warnings."
...
* commit '1f7d5ac53854a09bbcace08b3a1d1b9cf3f2eed3':
Fix unused DT entry warnings.
2014-09-30 23:52:10 +00:00
Dan Albert
483319a776
am 0481471b
: Merge "Switch benchmarks and tests to libc++."
...
* commit '0481471b1bb95a90f632a9fb59c7a1767b9836c8':
Switch benchmarks and tests to libc++.
2014-09-30 23:51:26 +00:00
Dan Albert
c014e66a86
am e49491ad
: Merge "Ignore multiple symbol definition errors."
...
* commit 'e49491ada4c8e7827329b56a93e5377433aa9084':
Ignore multiple symbol definition errors.
2014-09-30 23:51:25 +00:00
Dmitriy Ivanov
701cf9419b
Merge "Fix mips build"
2014-09-30 23:42:24 +00:00
Dan Albert
e04aa450c2
Merge "Clean up the pthread key tests."
2014-09-30 23:41:06 +00:00
Elliott Hughes
31e072fc9b
Update our FreeBSD realpath(3) to upstream head.
...
Change-Id: I8c89728184ecd2c1a28a05cefa84a5037d28b552
2014-09-30 16:40:41 -07:00
Dmitriy Ivanov
ecf532fa1c
Fix mips build
...
Change-Id: I4454e69a982f239b168678c5a681d1078b4bd4f1
2014-09-30 16:30:22 -07:00
Dan Albert
c4bcc75f09
Clean up the pthread key tests.
...
The previous pthread_key_create_many test was really
pthread_key_create_all, which has proven very difficult to test
correctly (because it is affected by any other parts of the system using
pthread keys, and that can vary with test ordering). It also tested
expected values of PTHREAD_KEYS_MAX and the associated sysconf() value,
rather than those being in their own test.
Instead, split this test into a few distinct tests:
* pthread.pthread_keys_max
* pthread._SC_THREAD_KEYS_MAX_big_enough_for_POSIX
* pthread.pthread_key_many_distinct
* We actually didn't have a test to ensure that the keys we were
creating were distinct.
* pthread.pthread_key_EAGAIN
* Make sure pthread_key_create() will _eventually_ fail with
EAGAIN, not at a (sometimes incorrectly) predetermined maximum.
Change-Id: Iff1e4fdcc02404094bde0418122c64c227cf1702
2014-09-30 15:40:14 -07:00
Dmitriy Ivanov
1f7d5ac538
Merge "Fix unused DT entry warnings."
2014-09-30 22:14:33 +00:00
Dmitriy Ivanov
6cdeb5234d
Fix unused DT entry warnings.
...
DT_STRSZ Implement strtab boundary checks
DT_FLAGS_1 Warn if flags other than DF_1_NOW|DF_1_GLOBAL are set
Bug: 17552334
Change-Id: Iaad29cd52f5b2d7d2f785fb351697906dc1617d9
2014-09-30 14:41:29 -07:00
Dan Albert
0481471b1b
Merge "Switch benchmarks and tests to libc++."
2014-09-30 17:30:57 +00:00
Dan Albert
e49491ada4
Merge "Ignore multiple symbol definition errors."
2014-09-30 17:30:52 +00:00
Dan Albert
3a5aeba4bd
Switch benchmarks and tests to libc++.
...
Change-Id: I3b9c8f8c14a1e227e67ae1977cc29b0e8fccef5d
2014-09-30 10:28:30 -07:00
Dan Albert
d9898c5b82
Ignore multiple symbol definition errors.
...
libc and libc++ both define std::nothrow. libc's is a private symbol,
but this still causes issues when linking libc.a and libc++.a, since
private isn't effective until it has been linked. To fix this, just
allow multiple symbol definitions for the static tests.
Change-Id: Idbf19fefda47298c39360e3f5b6242b0b1a52fcc
2014-09-30 10:28:30 -07:00
Dmitriy Ivanov
02be1b2283
am 9997daa0
: Merge "Return has_DT_SYMBOLIC flag."
...
* commit '9997daa0ff8f630bee5d3b8eb0ab15a0ba1e5cf6':
Return has_DT_SYMBOLIC flag.
2014-09-30 16:49:46 +00:00
Dmitriy Ivanov
9997daa0ff
Merge "Return has_DT_SYMBOLIC flag."
2014-09-30 16:40:27 +00:00
Andrew Hsieh
98630f6cb7
am b104be32
: Merge "Remove arch-mips64/bionic/__get_sp.S"
...
* commit 'b104be321f2538a6e0bbd566bc958537d1f65cef':
Remove arch-mips64/bionic/__get_sp.S
2014-09-30 04:17:06 +00:00
Christopher Ferris
7de591d19b
am 85a932c0
: Merge "Cleanup arm assembly."
...
* commit '85a932c0c9225e0f71d94a0d8cbac85089a398cf':
Cleanup arm assembly.
2014-09-30 04:17:05 +00:00
Andrew Hsieh
b104be321f
Merge "Remove arch-mips64/bionic/__get_sp.S"
2014-09-30 00:01:02 +00:00
Andrew Hsieh
b0c0037370
Remove arch-mips64/bionic/__get_sp.S
...
__get_sp.S doesn't exist
Change-Id: Id84f8904c8022c683263a317a18fabeb50fed992
2014-09-30 07:55:32 +08:00
Christopher Ferris
85a932c0c9
Merge "Cleanup arm assembly."
2014-09-29 23:12:39 +00:00
Christopher Ferris
c8bd2abab2
Cleanup arm assembly.
...
Remove the old arm directives.
Change the non-local labels to .L labels.
Add cfi directives to strcpy.S.
Change-Id: I9bafee1ffe5d85c92d07cfa8a85338cef9759562
2014-09-29 15:53:10 -07:00
Dan Albert
6251d58e66
am 73e6c9b3
: Merge "Static libc++ is being renamed libc++_static."
...
* commit '73e6c9b39353807aae80170355ec0b67b7a4ce16':
Static libc++ is being renamed libc++_static.
2014-09-29 20:55:46 +00:00
Dmitriy Ivanov
96bc37f2e1
Return has_DT_SYMBOLIC flag.
...
This reverts commit 8f61d99183
Despite the fact that static linker does all the work while linking
-Bsymbolic executables, according to the SCO doc following DT_SYMBOLIC
and DF_SYMBOLIC flags is still a requirement for the dynamic linker
as well.
(see http://www.sco.com/developers/gabi/2012-12-31/ch5.dynamic.html )
Change-Id: I23f6a5e9b662e40cdbc462b64feff912431e800c
2014-09-29 12:10:36 -07:00
Dan Albert
73e6c9b393
Merge "Static libc++ is being renamed libc++_static."
2014-09-29 16:08:35 +00:00
Dan Albert
188d093993
Static libc++ is being renamed libc++_static.
...
Change-Id: I1596110e4ed7e8f9ab9e2605dfcd9fd0489ca0d1
2014-09-27 09:22:07 -07:00
Dan Albert
5eb62b3919
am 7ca5c4b9
: Merge "Make __aeabi_*() symbols weak."
...
* commit '7ca5c4b99b308550e34e185ed632b8a5ad5341ee':
Make __aeabi_*() symbols weak.
2014-09-27 00:29:49 +00:00
Dan Albert
e39c9f87e0
am 98ab0c52
: Merge "Add a dummy libdl.a."
...
* commit '98ab0c52f5672540c442611d838011be9252079b':
Add a dummy libdl.a.
2014-09-27 00:29:48 +00:00
Dan Albert
7ca5c4b99b
Merge "Make __aeabi_*() symbols weak."
2014-09-27 00:19:14 +00:00
Dan Albert
98ab0c52f5
Merge "Add a dummy libdl.a."
2014-09-27 00:19:05 +00:00
Elliott Hughes
f799da9f17
am d644fecc
: Merge "Fix gdb could not get shared library list issue"
...
* commit 'd644fecc8e5eec0107ca4e2011cee0e5c0a10bdd':
Fix gdb could not get shared library list issue
2014-09-26 23:10:41 +00:00
Elliott Hughes
d644fecc8e
Merge "Fix gdb could not get shared library list issue"
2014-09-26 23:01:00 +00:00
Ningsheng Jian
e93be99da0
Fix gdb could not get shared library list issue
...
Get dynamic flags from phdr table's correct entry rather the first
entry, so that the following DT_DEBUG entry can be set.
Also fix the undefined reference to LoadTask::deleter issue under gcc
-O0 option.
Bug: 17524778
Change-Id: I9c679af197b034761fb739d6c980e628ff2ab84c
2014-09-26 22:58:57 +00:00
Dan Albert
690211fcf8
Make __aeabi_*() symbols weak.
...
This is needed to avoid multiple symbol definitions when linking with
libstdc++ or with compiler-rt.
Change-Id: I2f713bcff113222f0d2538e49691e715d8a8475d
2014-09-26 15:36:14 -07:00
Dan Albert
a4ed64d4c3
Add a dummy libdl.a.
...
Change-Id: I4b30b8875f14352bae2948ab8cf544ae818795ab
2014-09-26 15:23:07 -07:00
Christopher Ferris
1d8b9213a9
am aa66e882
: Merge "Add __memcpy_chk assembly for 64 bit."
...
* commit 'aa66e8828048d8d6fd7e4bb9c5e341ed89614266':
Add __memcpy_chk assembly for 64 bit.
2014-09-26 21:04:41 +00:00
Christopher Ferris
aa66e88280
Merge "Add __memcpy_chk assembly for 64 bit."
2014-09-26 20:39:21 +00:00
Christopher Ferris
8cf61dab5f
Add __memcpy_chk assembly for 64 bit.
...
Bug: 17623887
Change-Id: I443723bc941b40f84884b330d222baabee01f868
2014-09-26 12:47:04 -07:00
Dan Albert
4247fbd6f9
am 852d4fbb
: Merge "Prevent benchmarks from being optimized away."
...
* commit '852d4fbbe9ddee0261c6b3dcadcd75185157ed46':
Prevent benchmarks from being optimized away.
2014-09-25 23:14:39 +00:00
Dan Albert
852d4fbbe9
Merge "Prevent benchmarks from being optimized away."
2014-09-25 22:52:53 +00:00
Dan Albert
055a59c3ed
Prevent benchmarks from being optimized away.
...
Change-Id: I2d27b39ecdfc50e78098314567c295a2f113f8d3
2014-09-25 15:43:48 -07:00
Elliott Hughes
94503a1578
am 17e7d320
: Merge "Re-expose more stdio implementation details for LP32."
...
* commit '17e7d3208c68ff69819179d8a63ca234be2d1ab9':
Re-expose more stdio implementation details for LP32.
2014-09-25 03:31:19 +00:00
Elliott Hughes
e74a9d0b35
am aaad5485
: Merge "Re-expose more stdio implementation details for LP32." into lmp-dev
...
* commit 'aaad548535c34e2bba16b2a0b71173e0ae4b16c0':
Re-expose more stdio implementation details for LP32.
2014-09-25 03:13:56 +00:00
Elliott Hughes
17e7d3208c
Merge "Re-expose more stdio implementation details for LP32."
2014-09-25 03:08:23 +00:00
Elliott Hughes
abefc93ff3
Re-expose more stdio implementation details for LP32.
...
Keeps a variety of apps running.
(cherry-pick of 5def2f5aecd968e4022b0afbe4441fa7ba3e7c7e.)
Bug: 17047819
Change-Id: I55882ec95f2b59a5df76e5a89c23aa315609e01d
2014-09-24 20:07:10 -07:00
Christopher Ferris
10c951bf38
am a864e72b
: Merge "Fix sys_stat.mkfifo when not run as root."
...
* commit 'a864e72b566234fdc41344725aa9b4f47c5baba3':
Fix sys_stat.mkfifo when not run as root.
2014-09-25 00:17:22 +00:00
Christopher Ferris
a864e72b56
Merge "Fix sys_stat.mkfifo when not run as root."
2014-09-24 23:56:06 +00:00
Christopher Ferris
983de79b36
am 6c69afdb
: Fix sys_stat.mkfifo when not run as root.
...
* commit '6c69afdb6ddd56e011b59e3060f12a5bdffb5f5c':
Fix sys_stat.mkfifo when not run as root.
2014-09-24 23:55:08 +00:00
Christopher Ferris
528ad742c6
Fix sys_stat.mkfifo when not run as root.
...
It's not allowed for a shell user to create a fifo in /data/local/tmp.
Make the test do nothing if not run as root.
Bug: 17646702
(cherry picked from commit 6c69afdb6d
)
Change-Id: Ia3a862ed4586413b7bb393557ab57e0a7141d888
2014-09-24 16:50:30 -07:00
Elliott Hughes
49471f3809
am 567d3fcb
: Merge "Switch to OpenBSD fopen/fclose."
...
* commit '567d3fcb7ece287a84912183e91eff851fa48fc2':
Switch to OpenBSD fopen/fclose.
2014-09-24 20:44:46 +00:00
Elliott Hughes
d98cac5fbb
am 4fcfd3a4
: Merge "Sync with current upstream getopt_long.c."
...
* commit '4fcfd3a474ae5a9e5095ca92a10a8aaa0a3dae5a':
Sync with current upstream getopt_long.c.
2014-09-24 20:44:45 +00:00
Elliott Hughes
567d3fcb7e
Merge "Switch to OpenBSD fopen/fclose."
2014-09-24 20:24:48 +00:00
Elliott Hughes
4fcfd3a474
Merge "Sync with current upstream getopt_long.c."
2014-09-24 20:24:19 +00:00
Elliott Hughes
af12924f67
Sync with current upstream getopt_long.c.
...
Change-Id: I269195aa581a688fd3eb99552d506b8f5f6a8395
2014-09-24 12:39:34 -07:00
Elliott Hughes
5a69da8d7a
Switch to OpenBSD fopen/fclose.
...
This means all our stdio implementation is now the OpenBSD implementation.
The only thing we lose is the STDIO_THREAD_LOCK calls but they were no-ops
anyway.
We should probably talk to upstream about this. Either fix the locking or,
preferably, encourage them to move away from this pooling (especially since
there's no eviction policy).
Bug: 17154680
Change-Id: Ie2523e444a7d0965b8d141d57e3e11f6432d5b9a
2014-09-24 11:14:36 -07:00
Elliott Hughes
7a2a1a8b6c
am f05410ed
: Merge "Sync with upstream findfp.c."
...
* commit 'f05410edc634040f96643b8f378320faddfef423':
Sync with upstream findfp.c.
2014-09-24 18:09:37 +00:00
Elliott Hughes
f05410edc6
Merge "Sync with upstream findfp.c."
2014-09-24 17:48:59 +00:00
Dan Albert
0d78bad579
am 21db6ff1
: Merge "Coverage configs for bionic."
...
* commit '21db6ff108a8df43582bf2ca0d7d6c925f26b5e5':
Coverage configs for bionic.
2014-09-24 17:45:54 +00:00
Dan Albert
8be25c646d
am 4a6e7110
: Merge "Add a dummy atexit(3) to the linker."
...
* commit '4a6e71100e9c99b90b517be5a8e1c21616772d16':
Add a dummy atexit(3) to the linker.
2014-09-24 17:45:54 +00:00
Elliott Hughes
c08c25b4c9
Sync with upstream findfp.c.
...
Change-Id: Ib298f46de0c4d0fd4ce0a9b456c163e8b8b06342
2014-09-24 10:32:30 -07:00
Dan Albert
21db6ff108
Merge "Coverage configs for bionic."
2014-09-24 17:28:04 +00:00
Dan Albert
4a6e71100e
Merge "Add a dummy atexit(3) to the linker."
2014-09-24 17:27:38 +00:00
Dan Albert
c2d39088d8
Coverage configs for bionic.
...
Bug: 17553780
Change-Id: Iee7d0c210e2379e71e0c1e4e7058bce23f61e8cd
2014-09-24 10:26:41 -07:00
Dan Albert
9a05e3818a
Add a dummy atexit(3) to the linker.
...
This is needed when building the linker against a libc that was built
with coverage information.
Bug: 17553780
Change-Id: If131002e067dd7768fc657c30e62c42a45c05ace
2014-09-24 10:26:41 -07:00
Dan Albert
81981b7301
am 086bb382
: Fix incorrect parameter types for locale funcs.
...
* commit '086bb382db3de7459bc5fad6bb1c257ca331b0e8':
Fix incorrect parameter types for locale funcs.
2014-09-24 16:52:32 +00:00
Dan Albert
b14a903421
am fc5a93f7
: Merge "Fix incorrect parameter types for locale funcs."
...
* commit 'fc5a93f7a2ea2be740f2c909e8a6a192fa65adc8':
Fix incorrect parameter types for locale funcs.
2014-09-24 16:13:50 +00:00
Dan Albert
fc5a93f7a2
Merge "Fix incorrect parameter types for locale funcs."
2014-09-24 16:00:07 +00:00
Elliott Hughes
f6067fa2e0
am ebf37e38
: Merge "Switch to OpenBSD flags.c."
...
* commit 'ebf37e38861e376ae47c72d45ab8de6703dd18f0':
Switch to OpenBSD flags.c.
2014-09-24 05:08:23 +00:00
Elliott Hughes
ebf37e3886
Merge "Switch to OpenBSD flags.c."
2014-09-24 04:50:45 +00:00
Christopher Ferris
f5da2641c3
am 04643c18
: Merge "Remove the unnecessary generic-neon code."
...
* commit '04643c181c3256348a6fd78e54c8bc5527ad0b0a':
Remove the unnecessary generic-neon code.
2014-09-24 04:15:16 +00:00
Christopher Ferris
04643c181c
Merge "Remove the unnecessary generic-neon code."
2014-09-24 04:01:23 +00:00
Elliott Hughes
a71b4c3f14
Switch to OpenBSD flags.c.
...
Change-Id: I0a35e5bd9f8edba27e0c73e5c8150636346d6a81
2014-09-23 20:02:42 -07:00
Elliott Hughes
42317a0e50
am c57e5c82
: Merge "CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps."
...
* commit 'c57e5c828914714a283dd41f0a4adb064f6b8763':
CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps.
2014-09-24 02:10:59 +00:00
Elliott Hughes
c57e5c8289
Merge "CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps."
2014-09-24 01:49:06 +00:00
Christopher Ferris
2169e17482
Remove the unnecessary generic-neon code.
...
Change-Id: Ib75c33caafd76750ec1aca3a74dec5e4b881e965
2014-09-23 18:31:45 -07:00
Elliott Hughes
31165edf57
CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps.
...
Change-Id: I74ea88e0d4973d6ab3c57da7d8bb643c31592b14
2014-09-23 18:21:52 -07:00
Dan Albert
3c5037f1b3
Fix incorrect parameter types for locale funcs.
...
strtoll(3), strtoull(3), wcstoll(3), and wcstoull(3) all take an _int_
as a base, not a size_t. This is an ABI compatibility issue.
Bug: 17628622
Change-Id: I17f8eead34ce2112005899fc30162067573023ec
2014-09-23 15:32:24 -07:00
Elliott Hughes
0d44da9eb4
am 87b6906f
: Merge "Pull in upstream fixes to reject invalid bases."
...
* commit '87b6906f6e0c17b2541535be8e054324cc2fef4a':
Pull in upstream fixes to reject invalid bases.
2014-09-23 22:12:57 +00:00
Elliott Hughes
87b6906f6e
Merge "Pull in upstream fixes to reject invalid bases."
2014-09-23 21:59:15 +00:00
Elliott Hughes
b05ec5ae93
Pull in upstream fixes to reject invalid bases.
...
Also add tests to make sure the full set works correctly.
Change-Id: I3e7f237f12c9c93e1185a97c9717803e7e55a73c
2014-09-23 14:53:10 -07:00
Elliott Hughes
3a86c0fd90
am 86421653
: Merge "Sync with some upstream OpenBSD #include cleanup."
...
* commit '8642165344217877b8a70811d19e09b584a0e10a':
Sync with some upstream OpenBSD #include cleanup.
2014-09-23 21:48:00 +00:00
Elliott Hughes
0c1008b9d8
am 0ab5fd9a
: Merge "Switch to OpenBSD insque/remque/killpg."
...
* commit '0ab5fd9a5af4cd00572e4881f46c1e6f974f657c':
Switch to OpenBSD insque/remque/killpg.
2014-09-23 21:48:00 +00:00
Elliott Hughes
8642165344
Merge "Sync with some upstream OpenBSD #include cleanup."
2014-09-23 21:27:29 +00:00
Elliott Hughes
0ab5fd9a5a
Merge "Switch to OpenBSD insque/remque/killpg."
2014-09-23 21:26:27 +00:00
Elliott Hughes
49eed7db79
Switch to OpenBSD insque/remque/killpg.
...
Change-Id: Ie02290ad3187b1c1596dd776fd1c8a743a55f7ef
2014-09-23 14:06:56 -07:00
Elliott Hughes
08dc9d83a2
Sync with some upstream OpenBSD #include cleanup.
...
Change-Id: Ibcd7adb19e9a6b9ad8c24d77e23935f19f56a144
2014-09-23 13:55:15 -07:00
Elliott Hughes
c65a1d5ee0
am 93951cfa
: Merge "Fix a couple more cases of missing CLOEXEC."
...
* commit '93951cfa96c3c7504a78f94e7ec408936e5db9bf':
Fix a couple more cases of missing CLOEXEC.
2014-09-23 01:39:11 +00:00
Elliott Hughes
93951cfa96
Merge "Fix a couple more cases of missing CLOEXEC."
2014-09-23 01:19:52 +00:00
Elliott Hughes
0dc39f9952
Fix a couple more cases of missing CLOEXEC.
...
The debuggerd case can probably never happen, because you're crashing at this
point anyway. The system property one seems possible though.
Change-Id: Idba6a4f1d68587ec5b320d1e25f0b6a987ea32a0
2014-09-22 17:43:09 -07:00
Elliott Hughes
eaf288d100
am e8a95624
: Merge "Test pthread_cleanup_push(3)/pthread_cleanup_pop(3)."
...
* commit 'e8a95624b6ee37f7ee85f0318f1fccd916292ebd':
Test pthread_cleanup_push(3)/pthread_cleanup_pop(3).
2014-09-22 23:47:29 +00:00
Elliott Hughes
e8a95624b6
Merge "Test pthread_cleanup_push(3)/pthread_cleanup_pop(3)."
2014-09-22 23:28:32 +00:00
Elliott Hughes
34c987a6dd
Test pthread_cleanup_push(3)/pthread_cleanup_pop(3).
...
Change-Id: I5a623fa1e1da55f11d51f3a9bdfa0627698c486f
2014-09-22 16:27:19 -07:00
Elliott Hughes
1f2e845f9a
am b2da4562
: Merge "Clean up fpathconf(3)/pathconf(3)."
...
* commit 'b2da45625353336452112e28872310903dc70a8f':
Clean up fpathconf(3)/pathconf(3).
2014-09-22 23:05:35 +00:00
Elliott Hughes
b2da456253
Merge "Clean up fpathconf(3)/pathconf(3)."
2014-09-22 22:50:11 +00:00
Elliott Hughes
a186b2e0ca
Clean up fpathconf(3)/pathconf(3).
...
fpathconf(3) and pathconf(3) can share code. There's no such
header file as <pathconf.h>. glibc/POSIX and BSD disagree about where
the _POSIX_* definitions should go.
Change-Id: I4a67f1595c9f5fbb26700a131178eedebd6bf712
2014-09-22 22:49:40 +00:00
Elliott Hughes
3ff4698f0a
am d9cb0ed2
: Merge "Unit test for abort(3)."
...
* commit 'd9cb0ed281f0301ec2ca6828f0acc1ed08dceb8a':
Unit test for abort(3).
2014-09-22 22:08:38 +00:00
Elliott Hughes
d9cb0ed281
Merge "Unit test for abort(3)."
2014-09-22 21:46:56 +00:00
Elliott Hughes
60452a211c
Unit test for abort(3).
...
Change-Id: I021604b977572801f228a193741624df26e76d72
2014-09-22 14:41:30 -07:00
Elliott Hughes
bb54a0d47a
am 9f423c55
: Merge "Use the uapi fs magic in <sys/vfs.h>."
...
* commit '9f423c554a0ffcee2e34472bf0bc1aef3621a822':
Use the uapi fs magic in <sys/vfs.h>.
2014-09-22 17:08:51 +00:00
Elliott Hughes
9f423c554a
Merge "Use the uapi fs magic in <sys/vfs.h>."
2014-09-22 16:51:07 +00:00
Elliott Hughes
c296e4f151
Use the uapi fs magic in <sys/vfs.h>.
...
Change-Id: I712b856a6d786bba400c9a8d08f596b826403731
2014-09-22 09:47:21 -07:00
Elliott Hughes
7d8796feaa
am 413de5b0
: Merge "Add semaphore tests, fix sem_destroy."
...
* commit '413de5b0d4ddcf039aaef8b40a5f02d41dbb06e6':
Add semaphore tests, fix sem_destroy.
2014-09-20 20:06:21 +00:00
Elliott Hughes
413de5b0d4
Merge "Add semaphore tests, fix sem_destroy."
2014-09-20 01:34:11 +00:00
Christopher Ferris
1b0654f4a7
am e7160449
: Merge "Remove references to MALLOC_LEAK_CHECK."
...
* commit 'e716044918d85cd3c34425779a09a24348f7f67a':
Remove references to MALLOC_LEAK_CHECK.
2014-09-20 00:50:08 +00:00
Elliott Hughes
04303f5a8a
Add semaphore tests, fix sem_destroy.
...
Bug: https://code.google.com/p/android/issues/detail?id=76088
Change-Id: I4a0561b23e90312384d40a1c804ca64ee98f4066
2014-09-19 17:37:06 -07:00
Christopher Ferris
e716044918
Merge "Remove references to MALLOC_LEAK_CHECK."
2014-09-20 00:29:09 +00:00
Christopher Ferris
6fe376d392
Remove references to MALLOC_LEAK_CHECK.
...
This define isn't really used any more.
Bug: 17378595
Change-Id: I39722b83cd98955a3a2514577de34a239524617f
2014-09-19 17:15:12 -07:00
Elliott Hughes
954782240e
am adc01348
: Merge "Add greg_t for arm64."
...
* commit 'adc01348ee51a4ad678b1c277f85cbbed5c2e728':
Add greg_t for arm64.
2014-09-19 18:23:59 +00:00
Elliott Hughes
adc01348ee
Merge "Add greg_t for arm64."
2014-09-19 18:01:23 +00:00
Elliott Hughes
8e4d371091
Add greg_t for arm64.
...
This was already present for the other architectures. I think we skipped
this because glibc seems to have an incorrect definition (int rather than
long), but the kernel has the sane definition (just not in a uapi header).
Change-Id: I0d47a424b505804389853dd8632693dad55a3907
2014-09-19 10:31:49 -07:00
Dan Albert
05ce5ff3f2
am 13d6023a
: Merge "Exclude libstdc++ from linked libraries."
...
* commit '13d6023aac62091a7d1df1c1afa1e228515832cb':
Exclude libstdc++ from linked libraries.
2014-09-19 00:05:23 +00:00
Dan Albert
13d6023aac
Merge "Exclude libstdc++ from linked libraries."
2014-09-18 23:43:24 +00:00
Christopher Ferris
cbf33a9988
am d5e1c583
: Merge "Move to v3.16.3 kernel headers."
...
* commit 'd5e1c583a66a821c7d7e8f43e1238a4569981b90':
Move to v3.16.3 kernel headers.
2014-09-18 21:48:49 +00:00
Elliott Hughes
88e6b2b5d0
am fb8d60f7
: Merge "Fix lgamma_r/lgammaf_r/lgammal_r for -0."
...
* commit 'fb8d60f7436d8f90f951fb2efc27449c3aee8046':
Fix lgamma_r/lgammaf_r/lgammal_r for -0.
2014-09-18 21:48:49 +00:00
Christopher Ferris
d5e1c583a6
Merge "Move to v3.16.3 kernel headers."
2014-09-18 21:34:43 +00:00
Elliott Hughes
fb8d60f743
Merge "Fix lgamma_r/lgammaf_r/lgammal_r for -0."
2014-09-18 21:28:35 +00:00
Christopher Ferris
653676dde8
Move to v3.16.3 kernel headers.
...
Change-Id: Ife491bd7630b853a78532dd74e4644438256a3a1
2014-09-18 13:14:58 -07:00
Elliott Hughes
755318548d
Fix lgamma_r/lgammaf_r/lgammal_r for -0.
...
Upstream has implemented lgammal/lgammal_r for ld128, and fixed the
sign problem we reported with all the lgamma*_r functions and -0.
Bug: 17471883
Change-Id: Ibb175d9cab67efae75f1010796fd44c9ba6ce4fc
2014-09-18 11:23:58 -07:00
Elliott Hughes
f2cab6f808
am 82e71085
: Merge "The nextafter functions use the wrong next representable value"
...
* commit '82e71085c23d11030e9950d8d08e30ef249fd73b':
The nextafter functions use the wrong next representable value
2014-09-18 16:11:30 +00:00
Elliott Hughes
14dfe3e62b
am 6ced0051
: Merge "Stack unwinding unit tests."
...
* commit '6ced005123aaedeed7cd653d0baab3fbd511a492':
Stack unwinding unit tests.
2014-09-18 16:11:30 +00:00
Elliott Hughes
82e71085c2
Merge "The nextafter functions use the wrong next representable value"
2014-09-18 15:51:46 +00:00
Jingwei Zhang
90be6c5fc5
The nextafter functions use the wrong next representable value
...
From C99 standard: “The nextafter functions determine the next representable value, in the type of the function,
after x in the direction of y, where x and y are first converted to the type of the function”.
The next representable value of 0.0 in direction of -1.0 is -4.9406564584124654e-324, not 0.0.
Similar thing holds for nextafterf, nextafterl, nexttowardf, nexttoward, and nexttowardl.
The tests pass either way, since the error is within the tolerance, but how it is written is wrong.
Change-Id: I1338eeffe3de8031a48f46e1b07146bc07dc2f0a
Signed-off-by: Jingwei Zhang <jingwei.zhang@intel.com >
Signed-off-by: Mingwei Shi <mingwei.shi@intel.com >
2014-09-19 00:50:00 +08:00
Elliott Hughes
6ced005123
Merge "Stack unwinding unit tests."
2014-09-18 15:49:30 +00:00
Elliott Hughes
bee1993a14
Stack unwinding unit tests.
...
Bug: 17436734
Change-Id: I1e98da7eaeab646b448fb3f2b683973dddc319b0
2014-09-17 19:52:14 -07:00
Christopher Ferris
aac37784df
am 0bd28a43
: Merge "Update kernel uapi headers to v3.16.1."
...
* commit '0bd28a43dae87c808f6af61ad3dba042b35be7e7':
Update kernel uapi headers to v3.16.1.
2014-09-18 00:41:24 +00:00
Christopher Ferris
0bd28a43da
Merge "Update kernel uapi headers to v3.16.1."
2014-09-18 00:18:46 +00:00
Dmitriy Ivanov
4dcc58887e
am 6a310f4a
: Merge "Temporary disable DL_WARNs for unused DT_*"
...
* commit '6a310f4ad6c06b6f513d6dd9784ce0377f94f9bd':
Temporary disable DL_WARNs for unused DT_*
2014-09-18 00:16:52 +00:00
Christopher Ferris
ba8d4f460b
Update kernel uapi headers to v3.16.1.
...
Other changes to support the new headers:
- Remove the flock64 structure it is defined in the new headers.
- Update the syscalls to correspond with the headers.
Change-Id: I49a6b07e8b2bfffb67be71b07b58e4e6848fcc09
2014-09-17 17:05:17 -07:00
Dmitriy Ivanov
6a310f4ad6
Merge "Temporary disable DL_WARNs for unused DT_*"
2014-09-17 23:56:45 +00:00
Dmitriy Ivanov
1b77423eff
Temporary disable DL_WARNs for unused DT_*
...
Bug: 17552334
Change-Id: I2f7b5e4b4d1db96e812a7f86adc929e113d4c11a
2014-09-17 16:46:40 -07:00
Dmitriy Ivanov
f412f82d41
am 77784cb9
: Merge "Add Android*.mk files to additional dependencies"
...
* commit '77784cb9b7bad354601a3f965c3eaffecf6798ca':
Add Android*.mk files to additional dependencies
2014-09-17 23:20:01 +00:00
Dmitriy Ivanov
77784cb9b7
Merge "Add Android*.mk files to additional dependencies"
2014-09-17 23:01:49 +00:00
Dmitriy Ivanov
bf50e2645d
Add Android*.mk files to additional dependencies
...
Bug: 17548097
Change-Id: Ie0d9c8f33459320008f561217c54eba42d283b47
2014-09-17 15:55:01 -07:00
Elliott Hughes
58fe4f0b07
am 03fef1f5
: Merge "Fix some 32-bit-isms in <stdio.h>."
...
* commit '03fef1f51179de5cb65eafd9b57ea05c8e061542':
Fix some 32-bit-isms in <stdio.h>.
2014-09-17 22:37:18 +00:00
Elliott Hughes
d75695d8e0
am 2f5cf100
: Merge "Pull input.h from v3.16.1 kernel headers."
...
* commit '2f5cf100a8cfaf51296fda69d31ef9e59c6d1da3':
Pull input.h from v3.16.1 kernel headers.
2014-09-17 22:37:17 +00:00
Elliott Hughes
8fa377eb6a
Fix an unintended difference between aosp/master and lmp-dev-plus-aosp.
...
Whitespace difference presumably introduced while fixing a merge conflict.
Bug: 17549448
Change-Id: If688330bf1dbaed23ba687d843d9744d6261023b
2014-09-17 15:25:35 -07:00
Elliott Hughes
03fef1f511
Merge "Fix some 32-bit-isms in <stdio.h>."
2014-09-17 22:22:32 +00:00
Elliott Hughes
2ad11a96a1
Fix some 32-bit-isms in <stdio.h>.
...
(cherry-pick of 2d80400a9e8454038a3ec29959436184be0c4c65.)
Bug: 17157793
Change-Id: I8290e240b92e5617f4c12c0eacad6e622e677b6a
2014-09-17 15:21:10 -07:00
Elliott Hughes
2f5cf100a8
Merge "Pull input.h from v3.16.1 kernel headers."
2014-09-17 22:18:48 +00:00
Christopher Ferris
e2d86feb7b
Pull input.h from v3.16.1 kernel headers.
...
(cherry-pick of 027d2717d067c3706f22bf84dc1226ede7c1566d.)
Bug: 17407564
Change-Id: Idcfc40a7254605280e3d5474c61ae1ab7b2b7b51
2014-09-17 15:18:21 -07:00
Elliott Hughes
21ce3f506f
More cases where libc should use O_CLOEXEC.
...
Change-Id: Idfa111aeebc5deca2399dae919e8b72eb54c23c0
(cherry picked from commit f73183f1a3
)
2014-09-17 15:13:35 -07:00
Dan Albert
ebb6b4a4d3
Hide ScopedTrace.
...
(cherry-pick of f2c1e7ee78a167ff323b9f45d20532d064d6778d.)
Bug: 11156955
Change-Id: I6cddc868d1c6503e30f1ffcf460f45670631d64a
2014-09-17 15:11:25 -07:00
Elliott Hughes
9e87f2f876
Revert "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp.""
...
This reverts commit 26c1420fbb
.
2014-09-17 14:59:24 -07:00
Dan Albert
3ec67de051
Exclude libstdc++ from linked libraries.
...
Also explicitly add libstdc++ includes for necessary targets.
Change-Id: If712ba0ae7908d8147a69e29da5c453a183d6540
2014-09-17 14:22:36 -07:00
Elliott Hughes
39f4686461
am 36a5aa05
: Merge "Use the kernel\'s sa_restorer for aarch64."
...
* commit '36a5aa057cf1738577754a3fc16a14a5f817109f':
Use the kernel's sa_restorer for aarch64.
2014-09-17 17:17:14 +00:00
Elliott Hughes
36a5aa057c
Merge "Use the kernel's sa_restorer for aarch64."
2014-09-17 17:04:40 +00:00
Elliott Hughes
0bbd77af89
am 56433ee2
: Merge "Clean up the architecture-specific makefiles."
...
* commit '56433ee2a2ccc097ac3ad753168722b0fc76f3b1':
Clean up the architecture-specific makefiles.
2014-09-17 17:00:39 +00:00
Elliott Hughes
56433ee2a2
Merge "Clean up the architecture-specific makefiles."
2014-09-17 16:36:47 +00:00
Dmitriy Ivanov
b5f0464d82
am e7c9a387
: Merge "Fix 64bit build"
...
* commit 'e7c9a387fa190b786b1f7becfe99cb22a6f2934a':
Fix 64bit build
2014-09-17 06:53:52 +00:00
Dmitriy Ivanov
e7c9a387fa
Merge "Fix 64bit build"
2014-09-17 06:36:19 +00:00
Dmitriy Ivanov
f240aa8089
Fix 64bit build
...
Change-Id: I6ef55b5951270c46ee5e9a11385bd09e33a9f969
2014-09-16 23:34:20 -07:00
Dmitriy Ivanov
f5a56f2180
am 34ac60ca
: Merge "Fix some unused DT_ warnings"
...
* commit '34ac60ca16713be227844798f4b20a2f68c8a241':
Fix some unused DT_ warnings
2014-09-17 05:49:55 +00:00
Dmitriy Ivanov
34ac60ca16
Merge "Fix some unused DT_ warnings"
2014-09-17 05:28:30 +00:00
Elliott Hughes
7c02d9428c
Clean up the architecture-specific makefiles.
...
Group things appropriately and name each group.
Change-Id: I0da45eb0ccde19c31d5e984d0e6eb3dad26630dc
2014-09-16 19:06:31 -07:00
Dmitriy Ivanov
4a6e9a835a
Fix some unused DT_ warnings
...
* DT_PLTGOT - ignored for non-mips
* DT_RELCOUNT/RELACOUNT - ignored
* DT_RELENT/RELAENT - sanity checks
* DT_SYMENT - sanity check
* DT_SONAME - ignore for now.
Change-Id: Ied90748d12f733a84f6c38a1250567a2f77608b7
2014-09-16 18:19:36 -07:00
Elliott Hughes
894f7f5819
am 17cc8e53
: Merge "No arm source refers to SOFTFLOAT."
...
* commit '17cc8e539a578184662c1966a60f37c7d4fed65e':
No arm source refers to SOFTFLOAT.
2014-09-17 00:07:22 +00:00
Elliott Hughes
17cc8e539a
Merge "No arm source refers to SOFTFLOAT."
2014-09-16 23:45:40 +00:00
Elliott Hughes
b1a6c319c4
No arm source refers to SOFTFLOAT.
...
So why bother #defining it?
Change-Id: I539e91916cee082cacac594ddf628419b737fa9d
2014-09-16 16:27:35 -07:00
Dmitriy Ivanov
7ccb499c63
am aea393c0
: Merge "Remove has_DT_SYMBOLIC flag"
...
* commit 'aea393c096460669647acbe803617affc5bc0697':
Remove has_DT_SYMBOLIC flag
2014-09-16 22:54:00 +00:00
Elliott Hughes
1cff9a8964
Use the kernel's sa_restorer for aarch64.
...
gdb was happy with what we had, but libgcc and libunwind weren't.
libgcc is happy with the kernel's restorer (because of the extra nop),
though libunwind looks like it's going to need code changes regardless.
We could make our restorer more like the kernel's one, but why bother
when we can just let the kernel supply the canonical one?
Bug: 17436734
Change-Id: I330fa5e68f23b1cf8133aa552896657b0b873ed3
2014-09-16 15:49:50 -07:00
Dmitriy Ivanov
aea393c096
Merge "Remove has_DT_SYMBOLIC flag"
2014-09-16 22:37:37 +00:00
Dmitriy Ivanov
8f61d99183
Remove has_DT_SYMBOLIC flag
...
From the elf-spec: "Symbolically bound shared objects are
identified by the .dynamic entry DT_SYMBOLIC. This tag is
informational only; the runtime linker processes symbol
lookups from these objects in the same manner as any
other object."
Change-Id: I4aae0e502ed9fac096fbf076f4d6b2e055d784f6
2014-09-16 15:26:47 -07:00
Elliott Hughes
67c12a8392
am 380a3be7
: Merge "Fix 32-bit arm unwinding through signal frames."
...
* commit '380a3be757b04378edecad6ecb96017d2ec6a8b9':
Fix 32-bit arm unwinding through signal frames.
2014-09-16 22:13:34 +00:00
Elliott Hughes
380a3be757
Merge "Fix 32-bit arm unwinding through signal frames."
2014-09-16 21:17:20 +00:00
Elliott Hughes
148dff3ec6
Fix 32-bit arm unwinding through signal frames.
...
gdb was already okay; libgcc and libunwind need a little extra help.
Bug: 17436734
Change-Id: I1f5108f9877373be078554a1ea4938aa4436204e
2014-09-16 14:10:53 -07:00
Calin Juravle
c417053e80
am 370704d6
: Merge "Add benchmarks for pthread_rw_locks"
...
* commit '370704d69db15ec0b4d24e6412b5d30ded0ffc03':
Add benchmarks for pthread_rw_locks
2014-09-16 19:52:58 +00:00
Elliott Hughes
ca2d1258fc
am 5cba3c6f
: Merge "Fix signal trampolines."
...
* commit '5cba3c6f8e571cd4e6e2468263b778a90331101f':
Fix signal trampolines.
2014-09-16 19:42:51 +00:00
Dmitriy Ivanov
3d76a5a1c7
am 2997ae83
: Merge "Fix dlsym() to take into account RTLD_GLOBAL/LOCAL"
...
* commit '2997ae83d55486ab86a6100265fa502eff721ce2':
Fix dlsym() to take into account RTLD_GLOBAL/LOCAL
2014-09-16 19:42:45 +00:00
Dmitriy Ivanov
fe78876f94
am 0b8f6d59
: Merge "Add dlfcn_test to glibc test suite."
...
* commit '0b8f6d592ac20ec81dbc96766123c67655f34842':
Add dlfcn_test to glibc test suite.
2014-09-16 19:42:44 +00:00
Calin Juravle
370704d69d
Merge "Add benchmarks for pthread_rw_locks"
2014-09-16 17:31:39 +00:00
Calin Juravle
837a962bf5
Add benchmarks for pthread_rw_locks
...
Benchmarks for the following sequences:
1) pthread_rwlock_rdlock -> pthread_rwlock_unlock
2) pthread_rwlock_wrlock -> pthread_rwlock_unlock
Change-Id: I8d87d4d8afab8637ea7ff5d23a0b3a81d6d40835
2014-09-16 18:02:30 +01:00
Elliott Hughes
5cba3c6f8e
Merge "Fix signal trampolines."
2014-09-16 15:19:06 +00:00
Dmitriy Ivanov
2997ae83d5
Merge "Fix dlsym() to take into account RTLD_GLOBAL/LOCAL"
2014-09-16 01:27:56 +00:00
Dmitriy Ivanov
e8ba50fe0d
Fix dlsym() to take into account RTLD_GLOBAL/LOCAL
...
Symbols from libraries opened with RTLD_LOCAL (default)
should not be visible via dlsym(RLTD_DEFAULT/RTLD_NEXT, .)
Bug: 17512583
Change-Id: I1758943081a67cf3d49ba5808e061b8251a91964
2014-09-15 17:39:48 -07:00
Dmitriy Ivanov
0b8f6d592a
Merge "Add dlfcn_test to glibc test suite."
2014-09-15 22:12:06 +00:00
Elliott Hughes
36f451a6d9
Fix signal trampolines.
...
* LP32 should use sa_restorer too. gdb expects this, and future (>= 3.15) x86
kernels will apparently stop supporting the case where SA_RESTORER isn't
set.
* gdb and libunwind care about the exact instruction sequences, so we need to
modify the code slightly in a few cases to match what they're looking for.
* gdb also cares about the exact function names (for some architectures),
so we need to use __restore and __restore_rt rather than __sigreturn and
__rt_sigreturn.
* It's possible that we don't have a VDSO; dl_iterate_phdr shouldn't assume
that getauxval(AT_SYSINFO_EHDR) will return a non-null pointer.
This fixes unwinding through a signal handler in gdb for all architectures.
It doesn't fix libunwind for arm and arm64. I'll keep investigating that...
Bug: 17436734
Change-Id: Ic1ea1184db6655c5d96180dc07bcc09628e647cb
2014-09-15 15:04:14 -07:00
Dmitriy Ivanov
eb27bbae8f
Add dlfcn_test to glibc test suite.
...
Change-Id: I955e4f7dfcc23ea5c767f967b3532dc31663b876
2014-09-15 15:03:15 -07:00
Elliott Hughes
b104f0c438
am 95b0c6a9
: Merge "POSIX says <signal.h> gets you ucontext_t."
...
* commit '95b0c6a9407d7a4084d956e273ad1697550452d3':
POSIX says <signal.h> gets you ucontext_t.
2014-09-15 22:02:31 +00:00
Elliott Hughes
95b0c6a940
Merge "POSIX says <signal.h> gets you ucontext_t."
2014-09-15 17:17:37 +00:00
Dan Albert
73c605e234
am 2c581047
: Merge "Fix filename in comment in cmath"
...
* commit '2c58104718187ae99ea381a19ce8395b5349fded':
Fix filename in comment in cmath
2014-09-14 19:59:41 +00:00
Christopher Ferris
07ce976788
am 027d2717
: Pull input.h from v3.16.1 kernel headers.
...
* commit '027d2717d067c3706f22bf84dc1226ede7c1566d':
Pull input.h from v3.16.1 kernel headers.
2014-09-14 19:51:38 +00:00
Dan Albert
2c58104718
Merge "Fix filename in comment in cmath"
2014-09-14 19:33:44 +00:00
m4tx
2214a1ce17
Fix filename in comment in cmath
...
It looks like the file comment was copy-pasted from ctime. Fixed filename in comment to "math.h".
Change-Id: I27b0c2a7827076a91fc7b63913fad6eee4d6a79e
Signed-off-by: m4tx <m4tx@m4tx.pl >
2014-09-14 16:41:31 +02:00
Elliott Hughes
35981194d8
am 85ef3b5b
: Merge "Update NOTICE files."
...
* commit '85ef3b5b80da353afa24d0ab21c35be01951e0b7':
Update NOTICE files.
2014-09-13 17:23:58 +00:00
Elliott Hughes
79f40ff929
am ae51accf
: Merge "Remove an unused file."
...
* commit 'ae51accf22a897eecda329202431faa11e0f6015':
Remove an unused file.
2014-09-13 17:23:57 +00:00
Elliott Hughes
85ef3b5b80
Merge "Update NOTICE files."
2014-09-13 17:01:08 +00:00
Elliott Hughes
ae51accf22
Merge "Remove an unused file."
2014-09-13 17:00:27 +00:00
Elliott Hughes
5c2264a136
Update NOTICE files.
...
Change-Id: I37a2c297b318b8e1b1ce8b29a7ccc58ba214708a
2014-09-13 09:42:41 -07:00
Elliott Hughes
5681fe8eae
Remove an unused file.
...
Also remove a reference to it and two other files that have already
been removed in a script --- these files were problematic because they
weren't UTF-8.
Change-Id: Ibf597bac1903c34d8d0fe0a09615c42f24d4f23d
2014-09-13 09:24:28 -07:00
Elliott Hughes
26a8eb50a8
POSIX says <signal.h> gets you ucontext_t.
...
POSIX also says that ucontext_t's uc_sigmask has type sigset_t.
MIPS64 strace needs this.
The #define is to keep chromium off our lawn; otherwise it tries to redefine
all this stuff itself. We should probably clean that up and remove the #define.
Change-Id: I765d6a765a33dca7db33cd8c40f408dc98e5c95b
2014-09-12 20:47:35 -07:00
Elliott Hughes
934028eba3
am 73d2059f
: Merge "Explain why clock(3) isn\'t broken."
...
* commit '73d2059f9b3f53446e25d800d64a86efb3bf3f9f':
Explain why clock(3) isn't broken.
2014-09-13 00:16:26 +00:00
Elliott Hughes
73d2059f9b
Merge "Explain why clock(3) isn't broken."
2014-09-12 23:52:13 +00:00
Elliott Hughes
8bd96e067c
am 21451f5b
: Merge "Get new coshl, sinhl, and tanhl implementations from upstream."
...
* commit '21451f5bf65ecaa00c9f3b7ac721738b97f41599':
Get new coshl, sinhl, and tanhl implementations from upstream.
2014-09-12 23:49:31 +00:00
Elliott Hughes
f83c208b82
Explain why clock(3) isn't broken.
...
Bug: 17441123
Change-Id: I6ee9b7f54bab55b1a8760ce9bcaaa6eab1dcc492
2014-09-12 16:33:37 -07:00
Elliott Hughes
21451f5bf6
Merge "Get new coshl, sinhl, and tanhl implementations from upstream."
2014-09-12 23:13:43 +00:00
Elliott Hughes
8ce73725a3
am a40a16ea
: Merge "Add a test for pthread_gettid_np."
...
* commit 'a40a16eab13b770c3ce80f4e4241dfcd9518022f':
Add a test for pthread_gettid_np.
2014-09-12 23:12:45 +00:00
Elliott Hughes
c729d4f237
Get new coshl, sinhl, and tanhl implementations from upstream.
...
Change-Id: I92f9cd53d12efb2e0f4f8a9590b9fe42398233f6
2014-09-12 16:09:40 -07:00
Elliott Hughes
a40a16eab1
Merge "Add a test for pthread_gettid_np."
2014-09-12 22:52:38 +00:00
Elliott Hughes
8fb639ca91
Add a test for pthread_gettid_np.
...
Bug: 17475191
Change-Id: I8c6a2f4ceba2d24a77ae9a21269edce523aea421
2014-09-12 14:43:07 -07:00
Elliott Hughes
4cc9c6cc83
am 69c2d7dc
: Merge "Sync libm with upstream."
...
* commit '69c2d7dc6434c7e7e9bd22797deb7f727199ab0c':
Sync libm with upstream.
2014-09-12 21:34:56 +00:00
Elliott Hughes
69c2d7dc64
Merge "Sync libm with upstream."
2014-09-12 21:07:48 +00:00
Elliott Hughes
460ad7454a
Sync libm with upstream.
...
Change-Id: I8ac8ee52122ee19a2e423c3211092023cb4896eb
2014-09-12 14:00:02 -07:00
Elliott Hughes
ecd6be3bd2
am e39e47c6
: Merge "Remove "private/bionic_pthread.h"."
...
* commit 'e39e47c6b377170d696c6b9b5b523a28c1382ca4':
Remove "private/bionic_pthread.h".
2014-09-12 20:08:45 +00:00
Dmitriy Ivanov
b58b821056
am d74aa580
: Merge "Fix unload of recursively linked library"
...
* commit 'd74aa580354037b9972524e9d654c0a336974838':
Fix unload of recursively linked library
2014-09-12 20:08:44 +00:00
Dmitriy Ivanov
75386aa5ff
am aad92067
: Merge "Reformatting"
...
* commit 'aad92067bf4eecda81a4c331ee4dec70483c5104':
Reformatting
2014-09-12 20:08:42 +00:00
Dmitriy Ivanov
bb5e2968ca
am 66bbf159
: Merge "Refactoring: C++11 style DISABLE_ bionic marcos"
...
* commit '66bbf1595c0fc25d4bc47457d8020b11e135996d':
Refactoring: C++11 style DISABLE_ bionic marcos
2014-09-12 20:08:41 +00:00
Elliott Hughes
e39e47c6b3
Merge "Remove "private/bionic_pthread.h"."
2014-09-12 18:43:05 +00:00
Elliott Hughes
0f001b67fe
Remove "private/bionic_pthread.h".
...
Bug: 17476168
Change-Id: Id642987e641de81e914a28daea4ffe9d11e090ed
2014-09-12 11:35:05 -07:00
Dmitriy Ivanov
d74aa58035
Merge "Fix unload of recursively linked library"
2014-09-12 16:55:42 +00:00
Dmitriy Ivanov
aad92067bf
Merge "Reformatting"
2014-09-12 16:50:29 +00:00
Dmitriy Ivanov
66bbf1595c
Merge "Refactoring: C++11 style DISABLE_ bionic marcos"
2014-09-12 16:50:05 +00:00
Dmitriy Ivanov
6abf624d12
Reformatting
...
No functional changes.
Change-Id: If71775e5fc207e91ebd31ba3c5f9d2c13dc8dada
2014-09-12 09:43:13 -07:00
Elliott Hughes
0654250eb9
am 8d8a789c
: Merge "Expose __swsetup for LP32 binary compatibility."
...
* commit '8d8a789c49ffb6b71e4b8f34df937cfaaff86e40':
Expose __swsetup for LP32 binary compatibility.
2014-09-12 05:59:18 +00:00
Dmitriy Ivanov
5a6e31c3cb
am 6487f0d8
: Merge "Add IFUNC support for arm64 and IRELATIVE reloc"
...
* commit '6487f0d8341b00b476995e0174dc92e5ae8efbbe':
Add IFUNC support for arm64 and IRELATIVE reloc
2014-09-12 05:59:16 +00:00
Elliott Hughes
7f4c7060f0
am 5920a9ad
: Merge "Add pthread_gettid_np and re-expose __get_thread for LP32."
...
* commit '5920a9ad5fd9f8d515c683e164f946bcfef1f1c3':
Add pthread_gettid_np and re-expose __get_thread for LP32.
2014-09-12 05:59:16 +00:00
Elliott Hughes
da7fe217d8
am 7e00b44e
: Expose __swsetup for LP32 binary compatibility.
...
* commit '7e00b44e80d6e38b8ab86d0ebc86b666c0ac2ef6':
Expose __swsetup for LP32 binary compatibility.
2014-09-12 05:48:54 +00:00
Elliott Hughes
66265e80a1
am 27efc488
: Add pthread_gettid_np and re-expose __get_thread for LP32.
...
* commit '27efc48814b8153c55cbcd0af5d9add824816e69':
Add pthread_gettid_np and re-expose __get_thread for LP32.
2014-09-12 05:48:52 +00:00
Dmitriy Ivanov
a6ac54a215
Fix unload of recursively linked library
...
Expanded test for recursive libs. Fixed bug with unnecessary
soinfo_free of already loaded library.
Change-Id: I2cc19f2650c8b12a35feeac127ef608ebba44d88
2014-09-11 22:40:48 -07:00
Elliott Hughes
8d8a789c49
Merge "Expose __swsetup for LP32 binary compatibility."
2014-09-12 01:27:45 +00:00
Elliott Hughes
5f35710fad
Expose __swsetup for LP32 binary compatibility.
...
(cherry-pick of 7e00b44e80d6e38b8ab86d0ebc86b666c0ac2ef6.)
Bug: 17476127
Change-Id: I0ef1355ac913d782c268a638f88642d6cfc236c2
2014-09-11 18:23:46 -07:00
Dmitriy Ivanov
6487f0d834
Merge "Add IFUNC support for arm64 and IRELATIVE reloc"
2014-09-12 00:40:12 +00:00
Dmitriy Ivanov
9aea164457
Add IFUNC support for arm64 and IRELATIVE reloc
...
There are number of changes in the way IFUNC related relocations are done:
1. IRELATIVE relocations are now supported for x86/x86_64 and arm64.
2. IFUNC relocations are now relying on static linker to generate
them in correct order - this removes necessety of additional
relocation pass for ifuncs.
3. Related to 2: rela?.dyn relocations are preformed before .plt ones.
4. Ifunc are resolved on symbol lookup this approach allowed to avoid
mprotect(PROT_WRITE) call on r-x program segments.
Bug: 17399706
Bug: 17177284
Change-Id: I414dd3e82bd47cc03442c5dfc7c279949aec51ed
2014-09-11 16:30:45 -07:00
Elliott Hughes
5920a9ad5f
Merge "Add pthread_gettid_np and re-expose __get_thread for LP32."
2014-09-11 23:25:46 +00:00
Elliott Hughes
a4831cb4a3
Add pthread_gettid_np and re-expose __get_thread for LP32.
...
A lot of third-party code calls the private __get_thread symbol,
often as part of a backport of bionic's pthread_rwlock implementation.
Hopefully this will go away for LP64 (since you're guaranteed the
real implementation there), but there are still APIs that take a tid
and no way to convert between a pthread_t and a tid. pthread_gettid_np
is a public API for that. To aid the transition, make __get_thread
available again for LP32.
(cherry-pick of 27efc48814b8153c55cbcd0af5d9add824816e69.)
Bug: 14079438
Change-Id: I43fabc7f1918250d31d4665ffa4ca352d0dbeac1
2014-09-11 16:22:50 -07:00
Elliott Hughes
d415e27d5b
am 9e833bf0
: Fix mips __fadvise64.S build failure.
...
* commit '9e833bf0cf2c5bc0e6b65e4d96aa4f2b33113771':
Fix mips __fadvise64.S build failure.
2014-09-11 18:32:24 +00:00
Elliott Hughes
5691dcfc0d
am ea66004c
: Merge "Fix mips __fadvise64.S build failure."
...
* commit 'ea66004c4a051e40c49314d808e7359634f6c641':
Fix mips __fadvise64.S build failure.
2014-09-11 17:32:03 +00:00
Elliott Hughes
ea66004c4a
Merge "Fix mips __fadvise64.S build failure."
2014-09-11 17:12:49 +00:00
Elliott Hughes
9990b3973b
Fix mips __fadvise64.S build failure.
...
Bug: 12449798
Change-Id: I0663b741108ba2f1d286904d6414b3ff4d475551
2014-09-11 10:10:08 -07:00
Elliott Hughes
65e619775e
am 176c3278
: Merge "Add posix_fadvise(3)." into lmp-dev
...
* commit '176c32787c53e720bf4664592fd0b8ea4ffbdd75':
Add posix_fadvise(3).
2014-09-11 16:08:32 +00:00
Elliott Hughes
db1e958109
am 33df10f2
: Merge "Add posix_fadvise(3)."
...
* commit '33df10f284a8adbf58f9734c0f43537db4206b2c':
Add posix_fadvise(3).
2014-09-11 15:58:49 +00:00
Elliott Hughes
33df10f284
Merge "Add posix_fadvise(3)."
2014-09-11 15:46:44 +00:00
Elliott Hughes
b587f339db
Add posix_fadvise(3).
...
(cherry-pick of 00008263782e484020420c606f7d145fe7d0a4d8.)
Bug: 12449798
Change-Id: I07cbf3f670a0d1304b68148325a774f266b5c433
2014-09-11 08:45:46 -07:00
Lorenzo Colitti
993a2315a7
am 33a73bfa
: When comparing DNS server configs, also compare number of servers
...
* commit '33a73bfa0712c483830e4c9abbf4d6a0551478bf':
When comparing DNS server configs, also compare number of servers
2014-09-11 00:13:20 +00:00
Lorenzo Colitti
da0ed4cbfa
am c71483c0
: Merge "When comparing DNS server configs, also compare number of servers"
...
* commit 'c71483c0b38a6b4f2675f0bffa221dcf175c34ac':
When comparing DNS server configs, also compare number of servers
2014-09-09 10:42:23 +00:00
Lorenzo Colitti
c71483c0b3
Merge "When comparing DNS server configs, also compare number of servers"
2014-09-09 10:22:18 +00:00
Lorenzo Colitti
bce18c9163
When comparing DNS server configs, also compare number of servers
...
Bug: 16070602
Change-Id: I605f1cca50b08479ebcad290b3bd179f59be8a96
2014-09-09 19:20:26 +09:00
Dmitriy Ivanov
06bd5e2d0a
am 3c3624f3
: Merge "Load libraries in breadth-first order"
...
* commit '3c3624f3df14590e7213d35c3b39a0a11c7d2d34':
Load libraries in breadth-first order
2014-09-09 01:11:41 +00:00
Dmitriy Ivanov
d9ff722661
Refactoring: C++11 style DISABLE_ bionic marcos
...
Enable the -std=gnu++11 flag for libstdc++ static and
dynamic libs.
ScopeGuard uses DISABLE_ macros instead of '= delete';
Change-Id: I07e21b306f95fffd49345f7fa136cfdac61e0225
2014-09-08 17:51:31 -07:00
Dmitriy Ivanov
3c3624f3df
Merge "Load libraries in breadth-first order"
2014-09-09 00:49:38 +00:00
Elliott Hughes
5574335dc5
am 671f96cd
: Merge "Ensure __set_errno is still visible on LP32."
...
* commit '671f96cd440d306dc2baf5e8631e927cd1aa759d':
Ensure __set_errno is still visible on LP32.
2014-09-09 00:05:24 +00:00
Elliott Hughes
e70e541e7f
am 201f36d2
: Merge "Don\'t expose non-standard basename_r and dirname_r in LP64."
...
* commit '201f36d23bb778b29c8d305fa40a41990e0487bc':
Don't expose non-standard basename_r and dirname_r in LP64.
2014-09-09 00:05:23 +00:00
Elliott Hughes
671f96cd44
Merge "Ensure __set_errno is still visible on LP32."
2014-09-08 23:47:53 +00:00
Elliott Hughes
011e111d29
Ensure __set_errno is still visible on LP32.
...
The use of the .hidden directive to avoid going via the PLT for
__set_errno had the side-effect of actually making __set_errno
hidden (which is odd because assembler directives don't usually
affect symbols defined in a different file --- you can't even
create a weak reference to a symbol that's defined in a different
file).
This change switches the system call stubs over to a new always-hidden
__set_errno_internal and has a visible __set_errno on LP32 just for
binary compatibility with old NDK apps.
(cherry-pick of 7efad83d430f4d824f2aaa75edea5106f6ff8aae.)
Bug: 17423135
Change-Id: I6b6d7a05dda85f923d22e5ffd169a91e23499b7b
2014-09-08 16:46:50 -07:00
Elliott Hughes
201f36d23b
Merge "Don't expose non-standard basename_r and dirname_r in LP64."
2014-09-08 23:46:04 +00:00
Elliott Hughes
cf5fc80c3e
Don't expose non-standard basename_r and dirname_r in LP64.
...
(cherry-pick of f0e9458ea596227720fa745df15f5357f6c0c8f6.)
Bug: 17407423
Change-Id: I47fe499a4c396bf09d7b78fd828728d04777398b
2014-09-08 16:44:48 -07:00
Elliott Hughes
938473a7f0
resolved conflicts for merge of 7efad83d
to lmp-dev-plus-aosp
...
Change-Id: I3994c3c69e187e08d69642e097de14b5040c5b3b
2014-09-08 16:21:24 -07:00
Dmitriy Ivanov
14669a939d
Load libraries in breadth-first order
...
This patch fixes the problem with symbol search order
for dlsym(RTLD_DEFAULT/RTLD_NEXT, .) by loading libraries
and ld_preloads in correct order.
Bug: https://code.google.com/p/android/issues/detail?id=74255
Change-Id: If1ba5c807322409faa914e27ecb675e2c4541f0d
Attempt: 2
2014-09-08 13:02:50 -07:00
Elliott Hughes
2af51cacde
Merge "resolved conflicts for merge of c8f6b82f
to lmp-dev-plus-aosp" into lmp-dev-plus-aosp
2014-09-08 18:41:54 +00:00
Elliott Hughes
08df25419f
resolved conflicts for merge of c8f6b82f
to lmp-dev-plus-aosp
...
Change-Id: I03a4645eb5fbb54e41da25018729b270ba0ed48e
2014-09-08 11:41:30 -07:00
Elliott Hughes
6b779c6b61
am 51c8355d
: Add arc4random_addrandom binary compatibility.
...
* commit '51c8355d5cf4b83ccd2ad250ca4c61a616356c2b':
Add arc4random_addrandom binary compatibility.
2014-09-08 18:36:55 +00:00
Elliott Hughes
ffa8672bd5
am d3d89f0d
: Merge "Add arc4random_addrandom binary compatibility."
...
* commit 'd3d89f0d28aba2db9f11cc0a9b3a865fa1d9d265':
Add arc4random_addrandom binary compatibility.
2014-09-08 18:11:52 +00:00
Elliott Hughes
d3d89f0d28
Merge "Add arc4random_addrandom binary compatibility."
2014-09-08 17:53:04 +00:00
Elliott Hughes
fc829736e1
Add arc4random_addrandom binary compatibility.
...
This was in <stdlib.h> in older releases. It's no longer used, but we can
preserve backwards compatibility by making it a no-op.
(cherry-pick of 51c8355d5cf4b83ccd2ad250ca4c61a616356c2b.)
Bug: 16205834
Change-Id: Idde7b46df4f253e39675600bcf82352879a716e7
2014-09-08 10:52:28 -07:00
Christopher Ferris
9e7abe2e60
am b4673c41
: Merge "Add dlmalloc_usable_size for 32 bit arches."
...
* commit 'b4673c41025f3a16804aff8438c2810c739a11ef':
Add dlmalloc_usable_size for 32 bit arches.
2014-09-06 20:28:37 +00:00
Christopher Ferris
b4673c4102
Merge "Add dlmalloc_usable_size for 32 bit arches."
2014-09-06 20:17:02 +00:00
Christopher Ferris
eb1dd673ec
am 47ed03f7
: Merge "Add dlmalloc_usable_size for 32 bit arches." into lmp-dev
...
* commit '47ed03f70c6c9addc7f05e4ee4dc71c96d215105':
Add dlmalloc_usable_size for 32 bit arches.
2014-09-06 20:14:17 +00:00
Christopher Ferris
f903558446
Add dlmalloc_usable_size for 32 bit arches.
...
Bug: 17337831
(cherry picked from commit 1c365cb494
)
Change-Id: Ice100e42eeac4b9c3b77737a546ec33174adcb2f
2014-09-06 13:06:57 -07:00
Ying Wang
455577d3ce
am e07b4da5
: Merge "Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker."
...
* commit 'e07b4da53ddcb34939c1b5a88db36dec34352add':
Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker.
2014-09-05 23:58:08 +00:00
Dmitriy Ivanov
2a0105f95d
am 320a01d5
: Merge "Revert "Load libraries in breadth-first order""
...
* commit '320a01d51693408dad859094ca52e5f315ff1d15':
Revert "Load libraries in breadth-first order"
2014-09-05 23:58:07 +00:00
Ying Wang
e07b4da53d
Merge "Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker."
2014-09-05 23:41:25 +00:00
Dmitriy Ivanov
320a01d516
Merge "Revert "Load libraries in breadth-first order""
2014-09-05 23:36:22 +00:00
Dmitriy Ivanov
498eb18b82
Revert "Load libraries in breadth-first order"
...
This reverts commit a3ad450a2e
.
Change-Id: Ia2b838ad2159c643b80c514849582f4b4f4f40e5
2014-09-05 16:27:54 -07:00
Dmitriy Ivanov
4a4dc7b37c
am b3ebfecd
: Merge "Fix order of soinfo links (repairs libcxx tests)."
...
* commit 'b3ebfecdae05e29062bf4d0234239a54a2733ce0':
Fix order of soinfo links (repairs libcxx tests).
2014-09-05 23:27:30 +00:00
Ying Wang
f9e147b0bf
Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker.
...
Previously we duplicated code in build/core/executable.mk and it's hard
to maintain. LOCAL_POST_LINK_CMD is a clean solution for this.
Bug: 17403674
Change-Id: I8c054bf782af68cf1f88b8d787a78ca74a7968b5
2014-09-05 16:16:35 -07:00
Dmitriy Ivanov
b3ebfecdae
Merge "Fix order of soinfo links (repairs libcxx tests)."
2014-09-05 23:11:19 +00:00
Dmitriy Ivanov
b2a30ee8d2
Fix order of soinfo links (repairs libcxx tests).
...
Change-Id: Iee9de09657351cd6a7512784ca797e4b84cdd98b
2014-09-05 16:01:47 -07:00
Chih-Hung Hsieh
1325d50c72
am 8adace5f
: Merge "Enable clang compilation with libc but not linker."
...
* commit '8adace5f2c185bd616f79159eaf90d2982157069':
Enable clang compilation with libc but not linker.
2014-09-05 19:11:06 +00:00
Chih-Hung Hsieh
8adace5f2c
Merge "Enable clang compilation with libc but not linker."
2014-09-05 18:54:48 +00:00
Chih-Hung Hsieh
b58db8b083
Enable clang compilation with libc but not linker.
...
Clang is still disabled for x86 and x86_64 long double code,
for x86_64 special assembly instruction, and the linker module.
BUG: 17163651
BUG: 17302991
BUG: 17403674
Change-Id: I43c5f5f0ddc0c2a31918f00b57150dadd8f3f26b
2014-09-05 11:18:35 -07:00
Elliott Hughes
3fd8eee516
am 5beddb7d
: Fix pthread_attr_getstack__main_thread.
...
* commit '5beddb7d642524ecb6655ab2823caf2add679917':
Fix pthread_attr_getstack__main_thread.
2014-09-05 15:32:44 +00:00
Dmitriy Ivanov
b7f09d0654
am 001815ed
: Merge "Reset enviroment for math_tests"
...
* commit '001815ed197280409d08e9622890e7462c6e6831':
Reset enviroment for math_tests
2014-09-05 02:21:28 +00:00
Dmitriy Ivanov
001815ed19
Merge "Reset enviroment for math_tests"
2014-09-05 01:56:44 +00:00
Dmitriy Ivanov
7b956ede3f
Reset enviroment for math_tests
...
Bug: 17390824
Change-Id: I42f4c8d9199a2efe7641f0b0e64580cacb5695da
2014-09-04 18:38:21 -07:00
Elliott Hughes
5c5bb4d04e
am aca9cae3
: Merge "Fix pthread_attr_getstack__main_thread."
...
* commit 'aca9cae30972ba2cd7a1158520dccd83b056513c':
Fix pthread_attr_getstack__main_thread.
2014-09-04 23:33:50 +00:00
Elliott Hughes
fc8f246a49
am c74a7680
: Merge "Fix mips signed/unsigned signal_test.cpp build breakage."
...
* commit 'c74a7680a409cd9f0cd3847b59e20ac16ad05806':
Fix mips signed/unsigned signal_test.cpp build breakage.
2014-09-04 23:22:50 +00:00
Dmitriy Ivanov
4effe38ae6
am 44352f5f
: Merge "Revert "Register __libc_fini as early as possible.""
...
* commit '44352f5f7f06ff9383d695b0a7d4243f5268f430':
Revert "Register __libc_fini as early as possible."
2014-09-04 23:22:37 +00:00
Dmitriy Ivanov
24d40f2df0
am c0cd9ce5
: Merge "Revert "Fix arm64 build""
...
* commit 'c0cd9ce5df753161aabb393420a8ada8f369b551':
Revert "Fix arm64 build"
2014-09-04 23:22:37 +00:00
Elliott Hughes
aca9cae309
Merge "Fix pthread_attr_getstack__main_thread."
2014-09-04 23:20:53 +00:00
Elliott Hughes
27a9aed819
Fix pthread_attr_getstack__main_thread.
...
There were two problems here:
* This would fail when run with unlimited stack, because it didn't know
that bionic reports unlimited stacks as 8MiB.
* This would leave RLIMIT_STACK small, causing failures to exec (so the
popen and system tests would fail).
Change-Id: I5b92dc64ca089400223b2d9a3743e9b9d57c1bc2
2014-09-04 16:09:25 -07:00
Elliott Hughes
c74a7680a4
Merge "Fix mips signed/unsigned signal_test.cpp build breakage."
2014-09-04 22:48:16 +00:00
Elliott Hughes
aa13e839f0
Fix mips signed/unsigned signal_test.cpp build breakage.
...
Change-Id: I045ce017c0c51e1843193759a2eb6fc5b93e3867
2014-09-04 15:43:10 -07:00
Elliott Hughes
ac5c111924
am 05f0bfd6
: Merge "Don\'t mask out SA_RESTORER from sa_flags."
...
* commit '05f0bfd6c56746aa4f737804ebb62b555dc0d921':
Don't mask out SA_RESTORER from sa_flags.
2014-09-04 22:20:50 +00:00
Chih-Hung Hsieh
020ccc3c75
am 4ee7c325
: Merge "Disable Clang, due to x86 LDBL_MANT_DIG errors."
...
* commit '4ee7c325df9662b344304f207faf73cc9c3b735c':
Disable Clang, due to x86 LDBL_MANT_DIG errors.
2014-09-04 22:20:48 +00:00
Dmitriy Ivanov
44352f5f7f
Merge "Revert "Register __libc_fini as early as possible.""
2014-09-04 21:55:59 +00:00
Dmitriy Ivanov
c0cd9ce5df
Merge "Revert "Fix arm64 build""
2014-09-04 21:55:55 +00:00
Dmitriy Ivanov
4b41555ba5
Revert "Register __libc_fini as early as possible."
...
This reverts commit e880c736d6
.
Change-Id: Ide83e442eb5dbfef5298a15bc602c3fe1dda1862
2014-09-04 21:54:34 +00:00
Dmitriy Ivanov
f0d8970435
Revert "Fix arm64 build"
...
This reverts commit 5c1a7fdbd5
.
Change-Id: Ia5fea0d6a8f59700edce0742e2271b5f02a5d87c
2014-09-04 21:53:14 +00:00
Elliott Hughes
05f0bfd6c5
Merge "Don't mask out SA_RESTORER from sa_flags."
2014-09-04 21:03:34 +00:00
Elliott Hughes
afe58ad989
Don't mask out SA_RESTORER from sa_flags.
...
glibc doesn't do this, and we probably shouldn't either.
Bug: 16703540
Change-Id: Id5b93c3782e34024a9916463348e8f3caff191bf
2014-09-04 13:54:42 -07:00
Chih-Hung Hsieh
4ee7c325df
Merge "Disable Clang, due to x86 LDBL_MANT_DIG errors."
2014-09-04 20:44:34 +00:00
Chih-Hung Hsieh
356a6249d8
Disable Clang, due to x86 LDBL_MANT_DIG errors.
...
Clang -m32 has incorrect sizeof(long double) = 12.
With -m64, LDBL_MANT_DIG is incorrect 64.
BUG: 17163651
Change-Id: I4b157aa1a8572c3a10aece6070e119a292ab8e83
2014-09-04 12:35:19 -07:00
Elliott Hughes
32dc56a1ca
am 071bed80
: Merge "_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE."
...
* commit '071bed8091cab4e070a1f5e6b2eb0dd1141f0498':
_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE.
2014-09-04 17:16:01 +00:00
Elliott Hughes
071bed8091
Merge "_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE."
2014-09-04 17:02:10 +00:00
Elliott Hughes
fc8974b7aa
_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE.
...
This showed up as open_memstream not being visible in <stdio.h>
if only _GNU_SOURCE was defined.
Bug: 17361504
Change-Id: I38f9843f4e6ee770a6325ad50f779bda5495ffca
2014-09-04 08:53:16 -07:00
Dmitriy Ivanov
04ecc77df6
am 1737b159
: Merge "Load libraries in breadth-first order"
...
* commit '1737b159374468a21859d97d8be70a726af0ec9e':
Load libraries in breadth-first order
2014-09-04 01:48:48 +00:00
Dmitriy Ivanov
1737b15937
Merge "Load libraries in breadth-first order"
2014-09-04 00:59:23 +00:00
Elliott Hughes
40acbd6904
am 1e010d60
: Add back a dummy arc4random_stir for compatibility.
...
* commit '1e010d60397db706cd3d1c4d5701a2bced441aa8':
Add back a dummy arc4random_stir for compatibility.
2014-09-03 23:49:36 +00:00
Dmitriy Ivanov
f851d60c13
am 8f3b8f52
: Merge "Fix arm64 build"
...
* commit '8f3b8f523ed594b48d28ca0b9a2651d209f29e26':
Fix arm64 build
2014-09-03 23:47:01 +00:00
Elliott Hughes
d05ad93003
am 58bb54c3
: Merge "Add back a dummy arc4random_stir for compatibility."
...
* commit '58bb54c38bf31fa5cdad8ddbdc44bbed04aaf0cf':
Add back a dummy arc4random_stir for compatibility.
2014-09-03 23:47:00 +00:00
Dmitriy Ivanov
8f3b8f523e
Merge "Fix arm64 build"
2014-09-03 23:36:35 +00:00
Elliott Hughes
58bb54c38b
Merge "Add back a dummy arc4random_stir for compatibility."
2014-09-03 23:34:05 +00:00
Dmitriy Ivanov
5c1a7fdbd5
Fix arm64 build
...
Bug: 14611536
Change-Id: I4f7f4d1f5c0a37ef38fa0956778393f8d7668512
2014-09-03 16:33:08 -07:00
Elliott Hughes
5dea47221a
Add back a dummy arc4random_stir for compatibility.
...
The current arc4random implementation stirs itself as needed, but we
need to keep an arc4random_stir symbol around for binary compatibility.
(cherry-pick of 1e010d60397db706cd3d1c4d5701a2bced441aa8.)
Bug: 17291075
Change-Id: Iaf6171c3ec65c39c1868364d5b35ea280e29a363
2014-09-03 16:30:22 -07:00
Dmitriy Ivanov
bd00ae8992
am 450aaa01
: Merge "Register __libc_fini as early as possible."
...
* commit '450aaa018df19464cb4e01ea3059a2a075ebde52':
Register __libc_fini as early as possible.
2014-09-03 22:44:15 +00:00
Dmitriy Ivanov
450aaa018d
Merge "Register __libc_fini as early as possible."
2014-09-03 22:29:59 +00:00
Dmitriy Ivanov
40412333b4
am 8da304b9
: Merge "Make string tests check all alignment combinations"
...
* commit '8da304b997bc0f81ebb30fadc79249fafc1c6fce':
Make string tests check all alignment combinations
2014-09-03 22:29:23 +00:00
Dmitriy Ivanov
e880c736d6
Register __libc_fini as early as possible.
...
We want __libc_fini to be called after all the destructors.
Bug: 14611536
Change-Id: Ibb83a94436795ec178fd605fa531ac29608f4a3e
2014-09-03 15:27:29 -07:00
Dmitriy Ivanov
8da304b997
Merge "Make string tests check all alignment combinations"
2014-09-03 22:08:57 +00:00
Dmitriy Ivanov
a3ad450a2e
Load libraries in breadth-first order
...
This patch fixes the problem with symbol search order
for dlsym(RTLD_DEFAULT/RTLD_NEXT, .) by loading libraries
and ld_preloads in correct order.
Bug: https://code.google.com/p/android/issues/detail?id=74255
Change-Id: I4cf84c70dbaabe99310230dfda12385ae5401859
2014-09-03 15:06:14 -07:00
Dan Albert
c71129a4e8
am 28f17701
: Merge "Don\'t fail a test just because we aren\'t root."
...
* commit '28f1770101d84153e100ad7bc0628b4ef3b6e85c':
Don't fail a test just because we aren't root.
2014-09-03 19:59:14 +00:00
Dan Albert
28f1770101
Merge "Don't fail a test just because we aren't root."
2014-09-03 18:37:11 +00:00
Dan Albert
69fb9f3f40
Don't fail a test just because we aren't root.
...
If the tests are not being run as root, emit a message and don't
continue with the test.
Change-Id: I352e1a4162caaeb18b81b8daf44797009756dcd9
2014-09-03 11:30:21 -07:00
Elliott Hughes
ce19b10f5f
am cb093d1f
: Merge "Upgrade bionic to tzdata2014g." into lmp-dev
...
* commit 'cb093d1f55701da419d1013cc3e6fbb8aea3e957':
Upgrade bionic to tzdata2014g.
2014-09-03 05:07:24 +00:00
Hans Boehm
5c2c544382
am 9ac60bf8
: Make stdatomic.h work with gcc4.6 host compiler
...
* commit '9ac60bf82b1f0e316666b862e9924f90caa60342':
Make stdatomic.h work with gcc4.6 host compiler
2014-09-03 05:07:24 +00:00
Andreas Gampe
c16f0486fc
resolved conflicts for merge of 2b10e2f1
to lmp-dev-plus-aosp
...
Change-Id: Ia41583773abbbe1f52d72d1e7f4b925e621d28ff
2014-09-02 22:02:48 -07:00
Dmitriy Ivanov
69fde6b4a7
am 3b10ba6f
: Merge "Add some missing dlclose(.)"
...
* commit '3b10ba6f1b743ddced32474891ff6d1cb83c027a':
Add some missing dlclose(.)
2014-09-03 01:08:16 +00:00
Dmitriy Ivanov
3b10ba6f1b
Merge "Add some missing dlclose(.)"
2014-09-03 00:36:22 +00:00
Dmitriy Ivanov
319356e39c
Add some missing dlclose(.)
...
Bug: 17358010
Change-Id: I9e427b7681f1a8fe890b0b47812d9e65ab95c792
2014-09-02 17:31:44 -07:00
Dan Albert
f3ba9f7171
am c7de9191
: Merge "Start math tests with a clean fenv."
...
* commit 'c7de919129098bac259f66f973888b1814ae0d1a':
Start math tests with a clean fenv.
2014-09-02 23:35:33 +00:00
Dan Albert
c7de919129
Merge "Start math tests with a clean fenv."
2014-09-02 23:11:42 +00:00
Dan Albert
95742d3603
am 847e52b9
: Merge "Prevent a few test pthread keys from leaking."
...
* commit '847e52b9b7bca9dee20e33d1006dfc23885e7494':
Prevent a few test pthread keys from leaking.
2014-09-02 23:02:57 +00:00
Dan Albert
6676a7d4ee
Start math tests with a clean fenv.
...
We always want the default floating point environment when running these
tests.
Bug: 17358010
Change-Id: I6ca2552e9f2d3e07d7b9dcaf0aec66905401c466
2014-09-02 16:00:10 -07:00
Dan Albert
847e52b9b7
Merge "Prevent a few test pthread keys from leaking."
2014-09-02 22:43:18 +00:00
Hans Boehm
e8d7729167
resolved conflicts for merge of c8cf3513
to lmp-dev-plus-aosp
...
Change-Id: If1181e3496d0309eebbaa1f1d2696269e61c64bc
2014-09-02 15:24:33 -07:00
Dan Albert
1d53ae2a01
Prevent a few test pthread keys from leaking.
...
Bug: 17358010
Change-Id: Ie718dc215ddfd431650295a1630c1b1716760c3d
2014-09-02 15:24:26 -07:00
Elliott Hughes
6c69675423
am ec95a9cf
: Merge "MIPS64 syscall() arguments"
...
* commit 'ec95a9cf11f7c4d2211c61da7ce05262a54409d1':
MIPS64 syscall() arguments
2014-09-02 21:18:55 +00:00
Elliott Hughes
ec95a9cf11
Merge "MIPS64 syscall() arguments"
2014-09-02 20:53:31 +00:00
Dmitriy Ivanov
a1d14f62f6
am 86f594b1
: Merge "Encapsulate soinfo_link_image and soinfo_relocate"
...
* commit '86f594b19bc51ffe87bfacb6b42687af94c3c648':
Encapsulate soinfo_link_image and soinfo_relocate
2014-09-02 19:45:29 +00:00
Chris Dearman
296895f1a9
MIPS64 syscall() arguments
...
The seventh argument for syscall is passed in a register, not on the stack
Change-Id: Idb69fac77d1f710cff5a3ab4ae1259feb61ae69d
2014-09-02 12:41:01 -07:00
Dmitriy Ivanov
86f594b19b
Merge "Encapsulate soinfo_link_image and soinfo_relocate"
2014-09-02 19:25:09 +00:00
Dmitriy Ivanov
29bbc9dd4c
Encapsulate soinfo_link_image and soinfo_relocate
...
Also get rid of needed[] array for these functions
Change-Id: I8d12887dbec0724309bb171e6bbd9b9ceb32cc70
2014-09-02 11:47:23 -07:00
Elliott Hughes
a5d70a4b15
am 4625dd75
: Merge "Upgrade bionic to tzdata2014g."
...
* commit '4625dd751e5f7beb0a9b8ec6a768fc7a2c36367a':
Upgrade bionic to tzdata2014g.
2014-09-02 18:29:15 +00:00
Elliott Hughes
4625dd751e
Merge "Upgrade bionic to tzdata2014g."
2014-09-02 17:57:10 +00:00
Dmitriy Ivanov
23fa71f7ca
am e057b9fc
: Merge "Introduce size-based r/w allocators"
...
* commit 'e057b9fc82e1674198738ff2fdd4eb70c645bf9e':
Introduce size-based r/w allocators
2014-09-02 17:35:37 +00:00
Dmitriy Ivanov
e057b9fc82
Merge "Introduce size-based r/w allocators"
2014-09-02 17:21:51 +00:00
Dmitriy Ivanov
80ecaf331e
am 4cafa3ce
: Merge "Implement LinkedList::visit()"
...
* commit '4cafa3ce808419325eefbb8013d21a919e2aabda':
Implement LinkedList::visit()
2014-09-02 17:15:38 +00:00
Dmitriy Ivanov
4cafa3ce80
Merge "Implement LinkedList::visit()"
2014-09-02 16:54:14 +00:00
Elliott Hughes
9685c30a23
Upgrade bionic to tzdata2014g.
...
From the release notes:
Changes affecting future time stamps
Turks & Caicos is switching from US eastern time to UTC-4 year-round,
modeled as a switch from EST/EDT to AST on 2014-11-02 at 02:00.
Changes affecting past time stamps
Time in Russia or the USSR before 1926 or so has been corrected by
a few seconds in the following zones: Asia/Irkutsk,
Asia/Krasnoyarsk, Asia/Omsk, Asia/Samarkand, Asia/Tbilisi,
Asia/Vladivostok, Asia/Yakutsk, Europe/Riga, Europe/Samara. For
Asia/Yekaterinburg the correction is a few minutes. (Thanks to
Vladimir Karpinsky.)
The Portuguese decree of 1911-05-26 took effect on 1912-01-01.
This affects 1911 time stamps in Africa/Bissau, Africa/Luanda,
Atlantic/Azores, and Atlantic/Madeira. Also, Lisbon's pre-1912
GMT offset was -0:36:45 (rounded from -0:36:44.68), not -0:36:32.
(Thanks to Stephen Colebourne for pointing to the decree.)
Asia/Dhaka ended DST on 2009-12-31 at 24:00, not 23:59.
A new file 'backzone' contains data which may appeal to
connoisseurs of old time stamps, although it is out of scope for
the tz database, is often poorly sourced, and contains some data
that is known to be incorrect. The new file is not recommended
for ordinary use and its entries are not installed by default.
(Thanks to Lester Caine for the high-quality Jersey, Guernsey, and
Isle of Man entries.)
Some more zones have been turned into links, when they differed
from existing zones only for older time stamps. As usual,
these changes affect UTC offsets in pre-1970 time stamps only.
Their old contents have been moved to the 'backzone' file.
The affected zones are: Africa/Bangui, Africa/Brazzaville,
Africa/Douala, Africa/Kinshasa, Africa/Libreville, Africa/Luanda,
Africa/Malabo, Africa/Niamey, and Africa/Porto-Novo.
Bug: 17277574
Change-Id: Idff4a68e927d49bef1e787af534e1b23b5b8a7fb
2014-09-02 09:51:04 -07:00
Dmitriy Ivanov
a492605849
Implement LinkedList::visit()
...
Change-Id: Ibd9d133dddf1f2e6e65660e3cd2dacafcc0c84d9
2014-09-02 09:45:40 -07:00
Dmitriy Ivanov
0cd83ebb0e
Introduce size-based r/w allocators
...
Change-Id: I75165fc392e5380124039e6db49b0f559c8a518e
2014-09-01 16:17:05 -07:00
Dmitriy Ivanov
e47b994975
am 5120bcf9
: Merge "Look into ld_preloads before current library"
...
* commit '5120bcf9f11951bffd8ac595c2b70252ed4a4958':
Look into ld_preloads before current library
2014-09-01 21:36:47 +00:00
Dmitriy Ivanov
e4c4311f44
resolved conflicts for merge of c191a8ad
to lmp-dev-plus-aosp
...
Change-Id: I24dcf9701ebe3344796f757a596754cbefbf358a
2014-09-01 14:34:15 -07:00
Dmitriy Ivanov
a20e37f291
am 11387985
: Merge "Erase elements in LinkedList::remove_if"
...
* commit '11387985d27f7d9794963779c69dcf0056bac43c':
Erase elements in LinkedList::remove_if
2014-09-01 21:24:50 +00:00
Dmitriy Ivanov
5120bcf9f1
Merge "Look into ld_preloads before current library"
2014-09-01 21:16:42 +00:00
Dmitriy Ivanov
c2048944ff
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
(cherry picked from commit 05e190c093
)
Change-Id: I5bfb58e18015b1ec5b77842dbb37fb122fa1fd1a
2014-09-01 14:14:09 -07:00
Dmitriy Ivanov
11387985d2
Merge "Erase elements in LinkedList::remove_if"
2014-09-01 21:06:32 +00:00
Elliott Hughes
1a96db3e8e
resolved conflicts for merge of b2eb09a9
to lmp-dev-plus-aosp
...
Change-Id: I0208958d78d6d7bc8c41568aa9abee15605b951e
2014-08-30 22:30:48 -07:00
Hans Boehm
94ea04c50a
am e505cc66
: Merge "Make stdatomic.h work with gcc4.6 host compiler"
...
* commit 'e505cc66a6e03f4ba460de3500f8b272421482c1':
Make stdatomic.h work with gcc4.6 host compiler
2014-08-30 01:25:10 +00:00
Hans Boehm
e505cc66a6
Merge "Make stdatomic.h work with gcc4.6 host compiler"
2014-08-30 00:49:51 +00:00
Dmitriy Ivanov
4bea498544
Erase elements in LinkedList::remove_if
...
Change-Id: I5119a78c73ffe780a81c53ab5ff0266d5c82d319
2014-08-29 17:09:24 -07:00
Hans Boehm
32429606bf
Make stdatomic.h work with gcc4.6 host compiler
...
This is needed to make L work correctly, and bionic tests pass
again, after applying the equivalent of
commit 00aaea3645
there.
It makes the preexisting code that uses __sync implementations
much more useful, although we should no longer be exercising that
code in AOSP.
Specifically fixes:
We were invoking __has_extension and __has_builtin for GCC compilations.
They're clang specific. Restructured the tests.
The __sync implementation was not defining the LOCK_FREE macros.
ATOMIC_VAR_INIT was using named field initializations. These are a
C, not C++, feature, that is not supported by g++ 4.6.
The stdatomic bionic test still failed with 4.6 and glibc with our
questionable LOCK_FREE macro implementation. Don't run that piece
with 4.6.
In L, this is a prerequisite for fixing:
Bug:16880454
Bug:16513433
Change-Id: I9b61e42307f96a114dce7552b6ead4ad1c544eab
2014-08-29 17:03:26 -07:00
Elliott Hughes
e21a624269
am bbe06e0d
: Merge "Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc."
...
* commit 'bbe06e0da1742e9bdc52d3246ffa9f2ab3ce999a':
Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc.
2014-08-29 23:30:14 +00:00
Elliott Hughes
bbe06e0da1
Merge "Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc."
2014-08-29 23:08:01 +00:00
Elliott Hughes
e0c56efddf
Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc.
...
Bug: 16874785
Change-Id: I8512f8be3fd149d8720c5c3b4657bedd5ce2b1d1
2014-08-29 15:54:11 -07:00
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
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
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
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
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
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
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
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 172955a4e3
)
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
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
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
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
Christopher Ferris
b78e60e7b7
Use the default unwind code.
...
This speeds up the debug malloc code by using the original unwinding code.
The only catch is that it has to link in the libc++ arm unwind code or
there will be crashes when attempting to unwind through libc++ compiled
code.
Bug: 16874447
(cherry picked from commit 3f7635f490
)
Change-Id: If8a3821cdd95ed481bb496bf2daab449d13790f8
2014-08-27 13:13:21 -07:00
Baligh Uddin
388369b788
Merge branch 'lmp-dev-plus-aosp' of https://googleplex-android.googlesource.com/_direct/platform/bionic into lmp-dev-plus-aosp
2014-08-27 17:39:51 +00:00
Elliott Hughes
6c3e6e7c40
am cb322a11
: Merge "call uselocale() before freelocale() to make sure that g_local_key has a valid locale."
...
* commit 'cb322a116804a690fdde6096d7efef4819151ad9':
call uselocale() before freelocale() to make sure that g_local_key has a valid locale.
2014-08-27 17:39:29 +00:00
Elliott Hughes
7a9471d815
am 64ae11ab
: Merge "Switch to OpenBSD <err.h> implementation."
...
* commit '64ae11ab766421fe2c49ebdecb14c36fe0a047fe':
Switch to OpenBSD <err.h> implementation.
2014-08-27 17:39:28 +00:00
Elliott Hughes
b489ba48a1
am 6cc4e3b6
: Merge "call uselocale() before freelocale() to make sure that g_local_key has a valid locale." into lmp-dev
...
* commit '6cc4e3b6ce726fb7aab6eff1ca8f4a28f9f21ee9':
call uselocale() before freelocale() to make sure that g_local_key has a valid locale.
2014-08-27 17:39:01 +00:00
Elliott Hughes
cb322a1168
Merge "call uselocale() before freelocale() to make sure that g_local_key has a valid locale."
2014-08-27 17:27:46 +00:00
Wally Yau
a40fdbd565
call uselocale() before freelocale() to make sure that g_local_key has a valid locale.
...
For tests that call uselocale(), the locale is stored in the
g_userlocale_key thread-specific key. If freelocale() is called later,
then g_uselocal_key points to a deleted pointer. CTS eventually calls
vfprintf to print the result, which calls MB_CUR_MAX and MB_CUR_MAX
accesses the deleted locale stored in g_uselocale_key, causing unpredictable
errors.
Fixed the tests by calling uselocale() with the old locale before
calling freelocale.
(cherry-pick of 8a46cf0fcf82b8c76e05be7e066ec854f974603a.)
Bug: 17299565
Change-Id: I87efa2a9b16999a11d587f68d3aeedcbe6ac8a2c
2014-08-27 10:26:49 -07:00
Elliott Hughes
64ae11ab76
Merge "Switch to OpenBSD <err.h> implementation."
2014-08-27 17:26:03 +00:00
Christopher Ferris
7bad1a90f1
am 3f7635f4
: Use the default unwind code.
...
* commit '3f7635f4906c53fa744731efc35235456b7d93bf':
Use the default unwind code.
2014-08-27 04:46:05 +00:00
Hans Boehm
3b32ba0e2c
am 6bfcefe0
: Merge "Undefine _Atomic before redefining"
...
* commit '6bfcefe02f8fbeec1f6790bd5ebb1fdd5dba1e33':
Undefine _Atomic before redefining
2014-08-27 00:01:46 +00:00
Elliott Hughes
d961078f2d
am 07401c71
: Merge "Switch to OpenBSD daemon(3)."
...
* commit '07401c7136af113304a22f4a8245ef3fc1b6929b':
Switch to OpenBSD daemon(3).
2014-08-27 00:01:45 +00:00
Elliott Hughes
3e95a0d6f0
am f1e64b5c
: (-s ours) Merge "More cases where libc should use O_CLOEXEC."
...
* commit 'f1e64b5c171a374f36cd970df0c84558d4209e1c':
More cases where libc should use O_CLOEXEC.
2014-08-27 00:01:42 +00:00
Elliott Hughes
cc7e5f489f
Switch to OpenBSD <err.h> implementation.
...
Change-Id: Ia950d88871a30f68e74f9ac7dbd87788e128e02f
2014-08-26 17:00:37 -07:00
Elliott Hughes
f975bc2d59
am 7b87d441
: Merge "Switch to OpenBSD res_random."
...
* commit '7b87d441b0f2aa3ad5021ab6bd879a995a1bc2ce':
Switch to OpenBSD res_random.
2014-08-26 23:41:23 +00:00
Elliott Hughes
06b033942a
am 59de803a
: Merge "libc should use O_CLOEXEC when opening files for its own use."
...
* commit '59de803af98a284378303489f614be3e53800b3f':
libc should use O_CLOEXEC when opening files for its own use.
2014-08-26 23:41:23 +00:00
Dmitriy Ivanov
a04130f54c
am 9f5dee55
: Merge "Remove unnecessary calls to LinkedList::clear()"
...
* commit '9f5dee55aa401b11b3eb15806d3f8ffc291c2bb1':
Remove unnecessary calls to LinkedList::clear()
2014-08-26 23:41:22 +00:00
Hans Boehm
6bfcefe02f
Merge "Undefine _Atomic before redefining"
2014-08-26 23:34:49 +00:00
Elliott Hughes
07401c7136
Merge "Switch to OpenBSD daemon(3)."
2014-08-26 23:33:43 +00:00
Dmitriy Ivanov
8e35e9e73e
am d2bd3c47
: Merge "Enable __cxa_atexit && __cxa_finalize for linker"
...
* commit 'd2bd3c4717ed223bca1c68a87f243f4bcf492a4b':
Enable __cxa_atexit && __cxa_finalize for linker
2014-08-26 23:26:32 +00:00
Elliott Hughes
e5055179fd
Switch to OpenBSD daemon(3).
...
Change-Id: I1fd0be09fdb24aa6f1d945410eba5987f8a949b4
2014-08-26 16:25:19 -07:00
Elliott Hughes
f1e64b5c17
Merge "More cases where libc should use O_CLOEXEC."
2014-08-26 23:23:59 +00:00
Elliott Hughes
f73183f1a3
More cases where libc should use O_CLOEXEC.
...
Change-Id: Idfa111aeebc5deca2399dae919e8b72eb54c23c0
2014-08-26 16:20:59 -07:00
Elliott Hughes
7b87d441b0
Merge "Switch to OpenBSD res_random."
2014-08-26 23:18:04 +00:00
Elliott Hughes
59de803af9
Merge "libc should use O_CLOEXEC when opening files for its own use."
2014-08-26 23:11:46 +00:00
Dmitriy Ivanov
9f5dee55aa
Merge "Remove unnecessary calls to LinkedList::clear()"
2014-08-26 23:00:44 +00:00
Hans Boehm
3e4a0099a1
Undefine _Atomic before redefining
...
Stdatomic.h was potentially redefining _Atomic, in spite of a
prior definition by <atomic>. This could cause g++ builds that
included <stdatomic.h> with an available <atomic> header to break.
Change-Id: I562c7115118c0587d594d4d5b62d25101e47bfd8
2014-08-26 15:58:15 -07:00
Elliott Hughes
c674edbf27
libc should use O_CLOEXEC when opening files for its own use.
...
Change-Id: I159f1d57e0ca090d837f57854fcef5879b8b8248
2014-08-26 15:56:54 -07:00
Dmitriy Ivanov
608217e167
Remove unnecessary calls to LinkedList::clear()
...
Change-Id: I981d2700cb17322c634b751715543fd33ee49b7c
2014-08-26 15:56:31 -07:00
Dmitriy Ivanov
d2bd3c4717
Merge "Enable __cxa_atexit && __cxa_finalize for linker"
2014-08-26 22:53:16 +00:00
Dmitriy Ivanov
14241402de
Enable __cxa_atexit && __cxa_finalize for linker
...
This allows adding destructors to classes used
for global variables.
Change-Id: I5e1cd63fe3bf8f66de88cc4f7437cafb350f49b5
2014-08-26 15:44:18 -07:00
Elliott Hughes
05409dedcd
am c764fb24
: Merge "Fix pthread_getattr_np for the main thread."
...
* commit 'c764fb24ccb47e05d8e140cde5b4111225790ef1':
Fix pthread_getattr_np for the main thread.
2014-08-26 20:08:44 +00:00
Elliott Hughes
c764fb24cc
Merge "Fix pthread_getattr_np for the main thread."
2014-08-26 19:53:40 +00:00
Elliott Hughes
57b7a6110e
Fix pthread_getattr_np for the main thread.
...
On most architectures the kernel subtracts a random offset to the stack
pointer in create_elf_tables by calling arch_align_stack before writing
the auxval table and so on. On all but x86 this doesn't cause a problem
because the random offset is less than a page, but on x86 it's up to two
pages. This means that our old technique of rounding the stack pointer
doesn't work. (Our old implementation of that technique was wrong too.)
It's also incorrect to assume that the main thread's stack base and size
are constant. Likewise to assume that the main thread has a guard page.
The main thread is not like other threads.
This patch switches to reading /proc/self/maps (and checking RLIMIT_STACK)
whenever we're asked.
Bug: 17111575
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com >
Change-Id: I1d4dbffe7bc7bda1d353c3a295dbf68d29f63158
2014-08-26 10:36:38 -07:00
Chih-Hung Hsieh
a9c435e072
am 9e307af9
: Merge "Add standard throw() spec to delete operators."
...
* commit '9e307af982ea9030849293b5e3307733289e3c2c':
Add standard throw() spec to delete operators.
2014-08-25 22:29:24 +00:00
Chih-Hung Hsieh
9e307af982
Merge "Add standard throw() spec to delete operators."
2014-08-25 22:08:33 +00:00
Chih-Hung Hsieh
ae558d6b4b
Add standard throw() spec to delete operators.
...
Without these specs, clang will reports mismatch between standard definitions and these declarations/definitions. These specs are ignored when compiled with -fno-exceptions.
BUG: 17136236
Change-Id: I386c712a61dc4fc74dfde45f9ec2d3d037f2e9f1
2014-08-25 21:16:14 +00:00
Hans Boehm
685c722d32
am a4a8c4fe
: Merge "Fix, generalize stdatomic.h; improve test."
...
* commit 'a4a8c4feb8cf3cebf8aceace70e699e128095b5c':
Fix, generalize stdatomic.h; improve test.
2014-08-22 23:15:54 +00:00
Hans Boehm
a4a8c4feb8
Merge "Fix, generalize stdatomic.h; improve test."
2014-08-22 22:52:31 +00:00
Hans Boehm
00aaea3645
Fix, generalize stdatomic.h; improve test.
...
We seem to use this stdatomic.h sometimes, and slightly different prebuilts
at other times, making them all difficult to test, and making it unclear
which one we're testing. This generalizes the bionic header so that it
can be used directly as the prebuilt header as well. So long as they
don't diverge again, that should somewhat improve test coverage.
Use the correct builtin for atomic_is_lock_free.
Fix atomic_flag_init.
Turn on atomic tests even with __GLIBC__, since they now appear to pass.
Include uchar.h in stdatomic.h where needed.
Add a basic memory ordering test.
Fix bit-rotted comments in bionic tests makefile.
Change-Id: If6a14c1075b379395ba5d93357d56025c0ffab68
2014-08-22 15:50:17 -07:00
Dmitriy Ivanov
0c3ef37501
am 9d34f6a9
: Merge "Bump soinfo version"
...
* commit '9d34f6a90973bea086b4244df6eff74ab2211814':
Bump soinfo version
2014-08-22 21:03:34 +00:00
Dmitriy Ivanov
9d34f6a909
Merge "Bump soinfo version"
2014-08-22 20:44:56 +00:00
Dmitriy Ivanov
0d15094287
Bump soinfo version
...
This includes:
1. Placing has_ifunc after fields with version = 0
2. Switch to has_min_version(v) function.
3. Minor soinfo initialization refactoring (placement new + ctor)
Change-Id: I1bf5fde4d930914012ce5f3ad5acb48217da9b2d
2014-08-22 13:29:18 -07:00
Dan Albert
740cf634f7
am 0b9fa4c9
: Merge "Fix dlmalloc build."
...
* commit '0b9fa4c9bff5d3128f120a2008aa6997c7363b49':
Fix dlmalloc build.
2014-08-22 18:25:06 +00:00
Dan Albert
0b9fa4c9bf
Merge "Fix dlmalloc build."
2014-08-22 18:06:36 +00:00
Dan Albert
ef619cc083
Fix dlmalloc build.
...
Change-Id: Ied542c40867ab443cdd2076bd2e535b00c4854e4
2014-08-22 11:05:48 -07:00
Dan Albert
a2dcd9449e
am 4756afe3
: Merge "Implement malloc_info(3)."
...
* commit '4756afe3d5017b50c89761c47f0da17a6799c81e':
Implement malloc_info(3).
2014-08-22 18:04:08 +00:00
Dan Albert
4756afe3d5
Merge "Implement malloc_info(3)."
2014-08-22 17:39:18 +00:00
Dan Albert
4caa1f0977
Implement malloc_info(3).
...
Expose jemalloc stats through the malloc_info(3) interface.
Bug: 16874689
Change-Id: I4358ac283002e60ff161107028d1a3fb1e9afb0a
2014-08-22 10:23:12 -07:00
Elliott Hughes
4592c5e993
Merge branch 'lmp-dev-plus-aosp' of https://googleplex-android.googlesource.com/_direct/platform/bionic into lmp-dev-plus-aosp
2014-08-22 16:42:23 +00:00
Elliott Hughes
021ce40c0c
am 84d0683a
: Fix unistd.getpid_caching_and_clone.
...
* commit '84d0683a824fa02dbaa6d1b56a79223804b54e80':
Fix unistd.getpid_caching_and_clone.
2014-08-22 16:42:17 +00:00
Elliott Hughes
0bcfedb8d2
am 538db6d2
: Merge "Fix unistd.getpid_caching_and_clone."
...
* commit '538db6d2e63b203622c49344488099eaa5062850':
Fix unistd.getpid_caching_and_clone.
2014-08-22 16:42:15 +00:00
Elliott Hughes
538db6d2e6
Merge "Fix unistd.getpid_caching_and_clone."
2014-08-22 16:28:02 +00:00
Elliott Hughes
2b3b2ecee8
Fix unistd.getpid_caching_and_clone.
...
This test only works if you're root (strictly: if you have permission to
CLONE_NEWNS), so it's useful to us when we're doing ad hoc testing (since
that's usually done as root), but it's not useful as part of CTS or when
running the tests on the host.
(cherry-pick of 84d0683a824fa02dbaa6d1b56a79223804b54e80.)
Bug: 16705621
Bug: 17170200
Change-Id: Ia92c871b15f7e45fc174bb59bc95540fd00ae745
2014-08-22 09:26:50 -07:00
Dan Albert
ab537ae574
am 2e6c5fc4
: Merge "Remove _flush_cache(2) for mips64."
...
* commit '2e6c5fc4e903b6ef58bd94e13e51b3f0aa4689b3':
Remove _flush_cache(2) for mips64.
2014-08-21 22:12:30 +00:00
Dan Albert
2e6c5fc4e9
Merge "Remove _flush_cache(2) for mips64."
2014-08-21 21:51:42 +00:00
Dmitriy Ivanov
87c5f24e4e
am 2bd88d45
: Merge "Run constructors before resolving ifunc functions"
...
* commit '2bd88d450ead2ad8b44a76126c720cf4a9772002':
Run constructors before resolving ifunc functions
2014-08-21 21:45:24 +00:00
Dmitriy Ivanov
2bd88d450e
Merge "Run constructors before resolving ifunc functions"
2014-08-21 21:27:52 +00:00
Dmitriy Ivanov
9598b8c415
Run constructors before resolving ifunc functions
...
Bug: 17177284
Change-Id: I5714b9bc2d1ca8f8711806bfb68da3d524213e99
2014-08-21 14:24:13 -07:00
Dan Albert
47793d6a29
Remove _flush_cache(2) for mips64.
...
Also remove declaration.
The only user is compiler-rt, and they can replace that call with one to
syscall(2). compiler-rt doesn't currently build on mips64 anyway.
Bug: 11156955
Change-Id: Ieae0ba49c8e7aa50253401fc1d7c2d17bc867d39
2014-08-21 13:32:37 -07:00
Dan Albert
ba8dede858
am 31572118
: Merge "__gnu_basename(3) is accounted for."
...
* commit '3157211849f808f89a7f1465fd60d6b41917ee4f':
__gnu_basename(3) is accounted for.
2014-08-21 19:33:19 +00:00
Dan Albert
3157211849
Merge "__gnu_basename(3) is accounted for."
2014-08-21 19:14:44 +00:00
Dan Albert
2320b02c7d
__gnu_basename(3) is accounted for.
...
Change-Id: I3836b14a797c4a8d121c6d29d95791ac768257da
2014-08-21 11:36:07 -07:00
Elliott Hughes
d00ce65a16
am 2d80400a
: Fix some 32-bit-isms in <stdio.h>.
...
* commit '2d80400a9e8454038a3ec29959436184be0c4c65':
Fix some 32-bit-isms in <stdio.h>.
2014-08-21 18:25:59 +00:00
Elliott Hughes
1fa71e6cbb
am d5fbc371
: Merge "Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream."
...
* commit 'd5fbc37119ef6cd757ceb449cb071ee03c66590e':
Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream.
2014-08-21 03:11:32 +00:00
Elliott Hughes
d5fbc37119
Merge "Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream."
2014-08-21 00:17:56 +00:00
Elliott Hughes
6b841db2ba
Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream.
...
Bug: 17164505
Change-Id: I59e28a08ff8b6ab632230b11a5807cfd5278aeb5
2014-08-20 17:03:46 -07:00
Elliott Hughes
ff3adf1632
am b6ed5407
: Merge "Simplify _ALIGN_TEXT."
...
* commit 'b6ed54076abdd337150d7a92a661247b69d26cb4':
Simplify _ALIGN_TEXT.
2014-08-20 20:54:13 +00:00
Elliott Hughes
1b6b56a9a6
am 7134fc30
: Merge "Regenerate "services.h" from /etc/services."
...
* commit '7134fc30892bff763e7c24ac722151e0777b5409':
Regenerate "services.h" from /etc/services.
2014-08-20 20:49:21 +00:00
Elliott Hughes
28bd4fd080
am 3bcd414b
: Merge "Clean up some of our python scripts."
...
* commit '3bcd414b78e515482139c7dc3dad8cad3357b374':
Clean up some of our python scripts.
2014-08-20 20:49:21 +00:00
Elliott Hughes
c64b680066
am 55244a9b
: Merge "Add <stdio_ext.h> for elfutils."
...
* commit '55244a9bdbc661212999655644c374352ae92040':
Add <stdio_ext.h> for elfutils.
2014-08-20 20:49:14 +00:00
Hans Boehm
c4b55c1221
am b61c5064
: Merge "Work around atomic_load(const T*) issues."
...
* commit 'b61c50647b85b3c33af8ca155e88ec098d9e8cb0':
Work around atomic_load(const T*) issues.
2014-08-20 20:48:45 +00:00
Elliott Hughes
b6ed54076a
Merge "Simplify _ALIGN_TEXT."
2014-08-20 20:25:32 +00:00
Elliott Hughes
0e7f8a9e52
Simplify _ALIGN_TEXT.
...
Bug: 16872067
Change-Id: I2b622f252c21ce1b344c040f828ab3f4bf9b6c0a
2014-08-20 13:11:58 -07:00
Hans Boehm
b61c50647b
Merge "Work around atomic_load(const T*) issues."
2014-08-19 22:32:42 +00:00
Elliott Hughes
d61f102bf8
am b9d674c8
: Merge "Implement the GNU basename(3) in addition to the POSIX one."
...
* commit 'b9d674c8ada9c1e9c22b41bc7c89e35f11f4eb1e':
Implement the GNU basename(3) in addition to the POSIX one.
2014-08-19 22:19:07 +00:00
Hans Boehm
1e8587a479
Work around atomic_load(const T*) issues.
...
Bug:17067219
Change-Id: I78e753bcf03464f5f05c3f37e394f2727d282589
2014-08-19 14:50:54 -07:00
Dan Albert
f642846c1c
am 1506fc17
: Expose android_set_abort_message().
...
* commit '1506fc178e9dcd873eaf95535ac7625ebb59388f':
Expose android_set_abort_message().
2014-08-19 20:29:23 +00:00
Elliott Hughes
b8a8d1d68e
am c5d6df6f
: Merge "Add in_port_t and move it and in_addr_t to the correct header file."
...
* commit 'c5d6df6f2fe57fd5aadbd9ebb131023234c30a0c':
Add in_port_t and move it and in_addr_t to the correct header file.
2014-08-19 20:26:45 +00:00
Elliott Hughes
59b5f58522
am 6f4220c4
: Merge "Move the meat of <features.h> into <sys/cdefs.h>."
...
* commit '6f4220c49e90b18a50d36e47cc9287c7593af939':
Move the meat of <features.h> into <sys/cdefs.h>.
2014-08-19 19:04:24 +00:00
Dan Albert
f01d69e9de
am 2222eae6
: Merge "Missing #include <sys/cdefs.h>."
...
* commit '2222eae61e723d946029899edaf7afcbaa160bb7':
Missing #include <sys/cdefs.h>.
2014-08-19 18:39:11 +00:00
Elliott Hughes
f00e86209d
am 17f83c93
: Merge "Remove unused defines from <features.h>."
...
* commit '17f83c93cbbde3e38a03182931f40b7390061a7d':
Remove unused defines from <features.h>.
2014-08-19 17:50:01 +00:00
Dan Albert
d971171dfb
am 934c8015
: Merge "Expose android_set_abort_message()."
...
* commit '934c8015d515f96c1f97255b48357da922cf626a':
Expose android_set_abort_message().
2014-08-19 17:32:53 +00:00
Elliott Hughes
ecd48356e3
am e4fcc3ad
: Merge "Fix _BSD_SOURCE/__USE_BSD."
...
* commit 'e4fcc3ad2b2965858571f5fb7d485ceb7e4a8266':
Fix _BSD_SOURCE/__USE_BSD.
2014-08-19 17:11:21 +00:00
Dmitriy Ivanov
707ed62b9f
am 8a76ee82
: Merge "Revert "Add support for protected local symbol lookup.""
...
* commit '8a76ee821e49a912d1777fbe83b1ab07c1da541a':
Revert "Add support for protected local symbol lookup."
2014-08-19 17:11:21 +00:00
Elliott Hughes
c5d6df6f2f
Merge "Add in_port_t and move it and in_addr_t to the correct header file."
2014-08-19 15:49:56 +00:00
Elliott Hughes
35d226e05d
Add in_port_t and move it and in_addr_t to the correct header file.
...
No one's reported this, but I saw it in an Android port of fuser(1).
We still have lots of problems in our network headers because we
get most of the structs direct from the kernel, and it doesn't use
types like this (which is why we've got away without this one for
so long). One day we should probably look at cleaning that up, but
doing so can wait.
Change-Id: If15edf0cfc32716fa312d7ed97c48321b760d979
2014-08-19 12:43:50 -07:00
Dmitriy Ivanov
19bf7f7170
resolved conflicts for merge of e3ad34b3
to lmp-dev-plus-aosp
...
Change-Id: Ib744885890d38fa8dfbc130de8373343f49352cc
2014-08-19 06:28:24 -07:00
Elliott Hughes
55244a9bdb
Merge "Add <stdio_ext.h> for elfutils."
2014-08-19 02:44:29 +00:00
Elliott Hughes
2b021e1066
Add <stdio_ext.h> for elfutils.
...
Bug: 17139679
Change-Id: I1605ac382dbb6f23b2d874dbb9769f3cde4a6a99
2014-08-20 10:23:52 -07:00
Elliott Hughes
b9d674c8ad
Merge "Implement the GNU basename(3) in addition to the POSIX one."
2014-08-19 02:44:29 +00:00
Elliott Hughes
09c39d6df0
Implement the GNU basename(3) in addition to the POSIX one.
...
Code like perf(1) needs this.
Bug: 11860789
Change-Id: I907eb448052a7b165e4012d74303330d32328cb2
2014-08-19 14:30:30 -07:00
Elliott Hughes
6f4220c49e
Merge "Move the meat of <features.h> into <sys/cdefs.h>."
2014-08-19 02:44:29 +00:00
Elliott Hughes
f4c948a9e9
Move the meat of <features.h> into <sys/cdefs.h>.
...
This way it's a lot harder for us to screw up (since we should always
be including <sys/cdefs.h> anyway).
Bug: 14659579
Change-Id: I23070fff3296b0d1c683bb5e3a6e214146327d53
2014-08-19 11:18:20 -07:00
Elliott Hughes
17f83c93cb
Merge "Remove unused defines from <features.h>."
2014-08-19 02:44:29 +00:00
Elliott Hughes
f800969d35
Remove unused defines from <features.h>.
...
Bug: 14659579
Change-Id: I2ab02b13cafe3faad31248b843d39ab2cdbfeb91
2014-08-19 10:07:00 -07:00
Elliott Hughes
e4fcc3ad2b
Merge "Fix _BSD_SOURCE/__USE_BSD."
2014-08-19 02:44:29 +00:00
Elliott Hughes
b810462028
Fix _BSD_SOURCE/__USE_BSD.
...
Bug: 14659579
Change-Id: I80ec9584f054c02d1078828f6bca759c42bc1d4c
2014-08-19 09:18:03 -07:00
Dmitriy Ivanov
8a76ee821e
Merge "Revert "Add support for protected local symbol lookup.""
2014-08-19 02:44:29 +00:00
Dmitriy Ivanov
02aa70589d
Revert "Add support for protected local symbol lookup."
...
This reverts commit d97e9f546e
.
Bug: 17107521
(cherry picked from commit 9419420919
)
Change-Id: I1a6df946ac8075699e77d68ffa6ac4a21b88e4bf
2014-08-19 05:19:53 -07:00
Elliott Hughes
38ba927c35
am 0baf2ca3
: Merge "Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE)."
...
* commit '0baf2ca34c7d9ec067b1f33bad69782c2dedc231':
Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE).
2014-08-19 00:41:14 +00:00
Elliott Hughes
c228979648
am 205cc415
: Merge "Improve <sys/cdefs.h>."
...
* commit '205cc41556d44b104a21bc6839b7ea44f72df9ba':
Improve <sys/cdefs.h>.
2014-08-18 22:28:12 +00:00
Dan Albert
247e441b0c
Resolved conflicts for merge of 6df7b609
to lmp-dev-plus-aosp.
...
Change-Id: I204e5701031c9ba9cd783c0db58cd51d93a5dc61
2014-08-18 14:58:13 -07:00
Elliott Hughes
205cc41556
Merge "Improve <sys/cdefs.h>."
2014-08-18 21:31:43 +00:00
Elliott Hughes
2cfb4e8e2e
Improve <sys/cdefs.h>.
...
Fix and use __RENAME (and lose ___RENAME --- two underscores should be
enough for anybody). This was the point of this change, because I want
to use __RENAME to support the two basename variants and the two
strerror_r variants.
Lose a bunch of macros that weren't being used.
Lose three dead files from the DNS code.
Change-Id: I3ef645c566b16a52217bc2e68c7d54b37c7c9522
2014-08-18 14:45:42 -07:00
Christopher Ferris
bd4351f945
am 54d24e09
: Merge "Fix leak_realloc, copy entire allocation."
...
* commit '54d24e099c24d0811ae723640d4e12e9558cab73':
Fix leak_realloc, copy entire allocation.
2014-08-18 21:05:59 +00:00
Christopher Ferris
3290fd4625
am 3c7c9a8d
: (-s ours) Merge "malloc_usable_size returns the original size."
...
* commit '3c7c9a8d3fda1057b8a4dea85f357a044dd21563':
malloc_usable_size returns the original size.
2014-08-18 21:05:59 +00:00
Dan Albert
2b91cf32e6
am db2e0247
: Merge "Hide C++ stuff in libc. Put it back in libstdc++."
...
* commit 'db2e0247ed67dfdf6e16eb47348db81dc8ccd04d':
Hide C++ stuff in libc. Put it back in libstdc++.
2014-08-18 20:14:48 +00:00
Christopher Ferris
3d7f92e914
am 9e56ce4c
: Merge "Fix leak_realloc, copy entire allocation." into lmp-dev
...
* commit '9e56ce4cd387cfa45de3a71dcccedd061e09d2f5':
Fix leak_realloc, copy entire allocation.
2014-08-18 19:33:55 +00:00
Elliott Hughes
7134fc3089
Merge "Regenerate "services.h" from /etc/services."
2014-08-16 04:28:29 +00:00
Elliott Hughes
c4a1de1ae2
Regenerate "services.h" from /etc/services.
...
Change-Id: Iec118f9a342b5c1f6ce6d48965798b12a7159ad3
2014-08-20 12:11:31 -07:00
Elliott Hughes
3bcd414b78
Merge "Clean up some of our python scripts."
2014-08-16 04:28:29 +00:00
Elliott Hughes
dc1fb7000a
Clean up some of our python scripts.
...
Change-Id: Ifa75345db43434298cfb6113fbe2f7a33b88c79d
2014-08-20 11:16:11 -07:00
Dan Albert
2222eae61e
Merge "Missing #include <sys/cdefs.h>."
2014-08-16 04:28:29 +00:00
Dan Albert
3a25ab952b
Missing #include <sys/cdefs.h>.
...
Needed for __BEGIN_DECLS/__END_DECLS. Currently fine because it's being
included after other files that do this.
Change-Id: I1f12368fc461f6ef5ca90992cf19f317f0b5d7af
2014-08-19 11:08:02 -07:00
Dan Albert
934c8015d5
Merge "Expose android_set_abort_message()."
2014-08-16 04:20:19 +00:00
Dan Albert
ce6b1abbb1
Expose android_set_abort_message().
...
Removes the leading underscores from __android_set_abort_message() and
moves its declaration into a public header file.
Bug: 17059126
Change-Id: I470c79db47ec783ea7a54b800f8b78ecbe7479ab
2014-08-18 14:37:42 -07:00
Christopher Ferris
3c7c9a8d3f
Merge "malloc_usable_size returns the original size."
2014-08-16 04:09:33 +00:00
Christopher Ferris
5d9e145c62
malloc_usable_size returns the original size.
...
Bug: 16874447
(cherry picked from commit 59c1ee44d0
)
Change-Id: I70839632974367c8b9893fb1f9c5ee4364608470
2014-08-18 13:10:16 -07:00
Christopher Ferris
54d24e099c
Merge "Fix leak_realloc, copy entire allocation."
2014-08-16 04:08:14 +00:00
Christopher Ferris
6d40d34908
Fix leak_realloc, copy entire allocation.
...
Bug: 16874447
(cherry picked from commit 5df0839cea
)
Change-Id: I9280505c0c1c3b5da24ba590448dcd6e7a230406
2014-08-18 13:10:47 -07:00
Dan Albert
db2e0247ed
Merge "Hide C++ stuff in libc. Put it back in libstdc++."
2014-08-16 04:08:14 +00:00
Dan Albert
fd5ee9aebc
Hide C++ stuff in libc. Put it back in libstdc++.
...
Bug: 17062445
Change-Id: I027b186719654c2865b08c3fa83f90fa00c1e838
2014-08-18 12:01:01 -07:00
Elliott Hughes
0baf2ca34c
Merge "Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE)."
2014-08-16 04:03:35 +00:00
Elliott Hughes
5f5cc45cf0
Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE).
...
<features.h> is supposed to take user-settable stuff like _GNU_SOURCE
and _BSD_SOURCE and turn them into __USE_GNU and __USE_BSD for use in
the C library headers. Instead, bionic used to unconditionally define
_BSD_SOURCE and _GNU_SOURCE, and then test _GNU_SOURCE in the header
files (which makes no sense whatsoever).
Bug: 14659579
Change-Id: Ice4cf21a364ea2e559071dc8329e995277d5b987
2014-08-18 16:04:03 -07:00
Dmitriy Ivanov
05d2a98133
am 2b6cdb5e
: Merge "Add atexit test for attributed c-tor/d-tor"
...
* commit '2b6cdb5e459661727c99e81660c7c3df5cdbe024':
Add atexit test for attributed c-tor/d-tor
2014-08-15 23:13:30 +00:00
Dmitriy Ivanov
18fbdce86e
am d8e00769
: Merge "Keep symbols for linker" into lmp-dev
...
* commit 'd8e007695c755bba75b7243077271b6d655d818a':
Keep symbols for linker
2014-08-15 21:42:47 +00:00
Dmitriy Ivanov
2b6cdb5e45
Merge "Add atexit test for attributed c-tor/d-tor"
2014-08-15 21:23:56 +00:00
Dmitriy Ivanov
4571f31bd4
Add atexit test for attributed c-tor/d-tor
...
1. Add test for __attribute__((constructor/destructor))
and static constructor
2. Compile C++ testlibs with -std=gnu++11
Change-Id: I67f9308144a0c638a51f111fcba8e1933fe0ba41
2014-08-15 14:22:07 -07:00
Hans Boehm
a1ff9e8eb0
am f0f66c02
: Have stdatomic.h punt to C++ atomic when possible
...
* commit 'f0f66c0264eb4b6ee56072af34c91a78a9184f23':
Have stdatomic.h punt to C++ atomic when possible
2014-08-15 21:16:51 +00:00
Hans Boehm
e9c7a4528c
am 7d05f741
: Merge "Have stdatomic.h punt to C++ atomic when possible"
...
* commit '7d05f741e7885ad42f853b5fe2b1d31cdc756b5c':
Have stdatomic.h punt to C++ atomic when possible
2014-08-15 18:27:38 +00:00
Dan Albert
47822dae63
am e2050ae1
: Merge "Change name of MB_CUR_MAX implementation function." into lmp-dev
...
* commit 'e2050ae1aa9d7e8e6f425bbb7a3991fe612f3913':
Change name of MB_CUR_MAX implementation function.
2014-08-15 11:49:36 +00:00
Dan Albert
716fe4caac
am 553c0ea5
: Merge "Move mtctxres.c to libc_dns.a." into lmp-dev
...
* commit '553c0ea52bde59800fda2ddd380dd18d4f3ab192':
Move mtctxres.c to libc_dns.a.
2014-08-15 11:49:36 +00:00
Christopher Ferris
c3731ea8fd
am 0533195e
: Merge "malloc_usable_size returns the original size." into lmp-dev
...
* commit '0533195e16b86794f14dfb1800ca170ce2548b9f':
malloc_usable_size returns the original size.
2014-08-15 11:36:56 +00:00
Hans Boehm
7d05f741e7
Merge "Have stdatomic.h punt to C++ atomic when possible"
2014-08-15 05:01:31 +00:00
Hans Boehm
019d395811
Have stdatomic.h punt to C++ atomic when possible
...
This is an alternate, somewhat simpler, fix that makes it safe to
include both <atomic> and <stdatomic.h> from C++ code in either order.
It means that C code consistently uses one implementation of atomics
and C++ another. We still have to make sure that those two
implementations interoperate correctly at runtime; in particular,
any flavor of atomic object needs to be represented exactly like the
underlying type, with the proper alignment constraint.
Bug:17007799
Change-Id: Iffcfc5220d8fa150f89dd083a121b24d23f268fc
2014-08-15 10:38:20 -07:00
Dmitriy Ivanov
a43011daf0
am 4bea4c63
: Label pages mapped by linker_allocator
...
* commit '4bea4c631f747cc6b570ecd42c744a9b1103bf28':
Label pages mapped by linker_allocator
2014-08-14 23:34:48 +00:00
Dan Albert
3dbab7a709
am d0cce143
: Merge "Move mtctxres.c to libc_dns.a."
...
* commit 'd0cce1436435bfcb477f2c5a670ea6675473c2f8':
Move mtctxres.c to libc_dns.a.
2014-08-14 23:28:19 +00:00
Dmitriy Ivanov
f6829737cc
am 8457779b
: Merge "Keep symbols for linker"
...
* commit '8457779b3469f5fa6b8104c2fd3869a72f1345dd':
Keep symbols for linker
2014-08-14 22:55:53 +00:00
Dmitriy Ivanov
1467dfe3e8
Make string tests check all alignment combinations
...
Reduce randomization of the test by (1) replacing random() & 255
with hard-coded char and (2) by making State *Iteration function
visit every possible alignment combination instead of 10 random ones.
Change-Id: I0ff0b4ca817ba9fbbcce53e09b25eb10a1a853c2
2014-08-14 15:05:20 -07:00
Dan Albert
49af4264ab
am 0d4ccee3
: Merge "Change name of MB_CUR_MAX implementation function."
...
* commit '0d4ccee35101c6bcd6cc28c23fe79d7b48a98dd0':
Change name of MB_CUR_MAX implementation function.
2014-08-14 21:31:21 +00:00
Dan Albert
72de50139d
am 104a4729
: Merge "Add more functionality to glibc symbol checker."
...
* commit '104a472958f86eafafe0c1d9e2c58ba6403f99e7':
Add more functionality to glibc symbol checker.
2014-08-14 21:31:20 +00:00
Dmitriy Ivanov
8457779b34
Merge "Keep symbols for linker"
2014-08-14 19:49:27 +00:00
Dmitriy Ivanov
ad5e8b5073
Keep symbols for linker
...
Bug: 17011146
Change-Id: I314e72a1ac9325bf5ea84d52e3d5bc51d8ea00cf
2014-08-14 15:46:36 -07:00
Dan Albert
0d4ccee351
Merge "Change name of MB_CUR_MAX implementation function."
2014-08-14 19:41:13 +00:00
Dan Albert
224ff048ef
Change name of MB_CUR_MAX implementation function.
...
Glibc calls theirs __ctype_get_mb_cur_max. Make ours match to cut down
on differences between bionic and glibc.
Bug: 11156955
Change-Id: Ib7231f01aa9676dff30aea0af25d597bfe07bc73
2014-08-14 13:56:51 -07:00
Dan Albert
104a472958
Merge "Add more functionality to glibc symbol checker."
2014-08-14 19:41:13 +00:00
Dan Albert
76212eeb53
Add more functionality to glibc symbol checker.
...
Also scan NDK's unwanted symbols list (to show the things that we're
exporting but the NDK isn't. Symbols hidden in the NDK will be marked
with a *.
Add a -u (--unwanted) flag to disable the first two printed groups
(all symbols in bionic, all symbols in glibc). This is helpful when
wanting to grep in the list of unwanted symbols.
Finally, update the list of known differences between us and glibc.
Change-Id: I6fdb4126823098430454763c391bd8cd369a75bb
2014-08-14 14:02:34 -07:00
Hans Boehm
faa0a7b788
am 4f85c6ff
: Merge "Add memory ordering constraint, convert to C11 atomics"
...
* commit '4f85c6ffd31d1f8cc000ab326edd8edb7ecd55a9':
Add memory ordering constraint, convert to C11 atomics
2014-08-14 01:21:44 +00:00
Dmitriy Ivanov
63ea43de8f
am e942b3ed
: Merge "Added test for ifunc support in dynamic linker."
...
* commit 'e942b3ed81ad4e0161f3ffa4f8d0017bfbb750e2':
Added test for ifunc support in dynamic linker.
2014-08-14 00:36:41 +00:00
Dan Albert
0733727194
am 9a74e4c1
: Merge "Hide __libc_init_vdso()."
...
* commit '9a74e4c15c17b9126ad348d865002880fc36bd12':
Hide __libc_init_vdso().
2014-08-13 23:05:11 +00:00
Dan Albert
9b4410b912
am 1f4c536f
: (-s ours) Merge "Hide ScopedTrace."
...
* commit '1f4c536fd53c69ba8122528435251b894e877e2a':
Hide ScopedTrace.
2014-08-13 20:16:54 +00:00
Dmitriy Ivanov
af2ee5068d
am 8a84d383
: Optimize symbol lookup
...
* commit '8a84d383fb74135e928d341baa180c55854f2f42':
Optimize symbol lookup
2014-08-13 16:47:03 +00:00
Dmitriy Ivanov
15921382fb
am db0785cb
: Merge "Optimize symbol lookup"
...
* commit 'db0785cbf9ee6cc0ace5c89496d7e9f12c288a83':
Optimize symbol lookup
2014-08-13 16:33:27 +00:00
Dan Albert
4b100dd72f
am d332bc68
: Hide __libc_malloc_dispatch.
...
* commit 'd332bc68783b9bdef4ecb38bec4e45765a5e9a94':
Hide __libc_malloc_dispatch.
2014-08-13 15:51:06 +00:00
Dmitriy Ivanov
db0785cbf9
Merge "Optimize symbol lookup"
2014-08-13 01:32:01 +00:00
Dmitriy Ivanov
042426ba63
Optimize symbol lookup
...
Do not run symbol lookup on already visited soinfos
Not taking into account already visited libraries
dramatically slows down dlsym in cases when there
are multiple occurrences of a large library in
dependency tree.
Bug: 16977077
Change-Id: I1379f30ed8b06758dd1cc76b80833ac8589afa50
2014-08-13 09:21:57 -07:00
Dan Albert
25b55a09f6
am 6e3823d3
: Merge "Hide __libc_malloc_dispatch."
...
* commit '6e3823d37e54929558990d7c475bc30d381098fe':
Hide __libc_malloc_dispatch.
2014-08-13 00:02:04 +00:00
Dan Albert
9a74e4c15c
Merge "Hide __libc_init_vdso()."
2014-08-12 23:11:16 +00:00
Dan Albert
b3aaf398e1
Hide __libc_init_vdso().
...
Bug: 11156955
Change-Id: I7ee31e1ee2ce479c5746b374a239637d582815fe
2014-08-13 13:11:58 -07:00
Dan Albert
d0cce14364
Merge "Move mtctxres.c to libc_dns.a."
2014-08-12 19:23:43 +00:00
Dan Albert
891ec7a6e4
Move mtctxres.c to libc_dns.a.
...
Has the effect of making ___mtctxres hidden.
Bug: 17007799
Change-Id: I5aa5f49344ad5ecb33f48737430561b329bcbb0d
2014-08-14 22:50:45 +00:00
Hans Boehm
4f85c6ffd3
Merge "Add memory ordering constraint, convert to C11 atomics"
2014-08-12 19:23:43 +00:00
Dmitriy Ivanov
e942b3ed81
Merge "Added test for ifunc support in dynamic linker."
2014-08-12 19:23:43 +00:00
Dan Albert
1f4c536fd5
Merge "Hide ScopedTrace."
2014-08-12 19:23:43 +00:00
Dan Albert
f2c1e7ee78
Hide ScopedTrace.
...
Bug: 11156955
Change-Id: I6cddc868d1c6503e30f1ffcf460f45670631d64a
2014-08-13 11:25:01 -07:00
Dan Albert
6e3823d37e
Merge "Hide __libc_malloc_dispatch."
2014-08-12 19:23:43 +00:00
Dan Albert
edd81faff0
Hide __libc_malloc_dispatch.
...
Now that -Bsymbolic is fixed, we can hide __libc_malloc_dispatch without
breaking ASAN.
Bug: 11156955
Change-Id: Ia2fc9b046a74e666b33aa6c6c5435f70a63b8021
2014-08-12 16:53:14 -07:00
Dmitriy Ivanov
ab63b6b067
am 00c16c1b
: Merge "Label pages mapped by linker_allocator"
...
* commit '00c16c1b921dfeab42eb92ac53c6d79addc9f549':
Label pages mapped by linker_allocator
2014-08-11 16:42:25 +00:00
Elliott Hughes
a466df528c
am 72d7e667
: Fix our x86 PIC_PROLOGUE.
...
* commit '72d7e667c7e926cb120c4edb53cbf74c652ab915':
Fix our x86 PIC_PROLOGUE.
2014-08-10 08:55:52 +00:00
Elliott Hughes
cd2cd65c5f
am 4d0f742a
: Merge "Fix our x86 PIC_PROLOGUE."
...
* commit '4d0f742afe4867a0064d46a5b55df33e07c02c9d':
Fix our x86 PIC_PROLOGUE.
2014-08-10 08:36:55 +00:00
Dan Albert
2a8efb8169
am f4d21fba
: Merge "Make __set_errno hidden in asm." into lmp-dev
...
* commit 'f4d21fba064c398110ec0428afc0a025afb2254e':
Make __set_errno hidden in asm.
2014-08-09 06:55:08 +00:00
Elliott Hughes
4d0f742afe
Merge "Fix our x86 PIC_PROLOGUE."
2014-08-09 00:52:40 +00:00
Elliott Hughes
ca5b6a74a7
Fix our x86 PIC_PROLOGUE.
...
The old definition only worked for functions that didn't use numbered
local labels. Upstream uses '666' not only as some kind of BSD in-joke,
but also because there's little likelihood of any function having
labels that high.
There's a wider question about whether we actually want to go via the
PLT at all in this code, but that's a question for another day.
(cherry-pick of 72d7e667c7e926cb120c4edb53cbf74c652ab915.)
Bug: 16906712
Change-Id: I3cd8ecc448b33f942bb6e783931808ef39091489
2014-08-09 22:18:33 -07:00
Dmitriy Ivanov
00c16c1b92
Merge "Label pages mapped by linker_allocator"
2014-08-09 00:45:41 +00:00
Dmitriy Ivanov
51a22a12ab
Label pages mapped by linker_allocator
...
Change-Id: I7e0bf29bc1a480e9be0d1ae573ca1063d90d82ff
2014-08-11 09:22:48 -07:00
Dan Albert
21588d1f2e
am a0db4641
: Merge "Make __set_errno hidden in asm."
...
* commit 'a0db46418757dd1b399acb97ff42083cc274e8ae':
Make __set_errno hidden in asm.
2014-08-08 22:46:15 +00:00
Dan Albert
287762edb7
am 3788a1ee
: Merge "Revert "Fix incorrect relocations for x86.""
...
* commit '3788a1ee8eae4180117010bb9302334acfe1d218':
Revert "Fix incorrect relocations for x86."
2014-08-08 22:42:29 +00:00
Hans Boehm
30214b901e
Add memory ordering constraint, convert to C11 atomics
...
Add an ordering constraint/fence to __system_property_serial.
This slows down a read on a Nexus 5 from about 50 to about 70 ns,
but avoids the possibility of seeing an inconsistent property value.
Use C11 atomic operations where easy and appropriate.
This code remains not fully C++11 memory model conformant, but
I would now expect the generated code to now be correct with current compilers.
Bug:14970171
Change-Id: I0891ff1d0f914ae5c3857e3d76b6a7c8a4a07d83
2014-08-08 11:34:25 -07:00
Brigid Smith
c5a13efa9b
Added test for ifunc support in dynamic linker.
...
ifuncs now work in i386 and x86_64 when called in the same library as
well as in a different library.
Bug:6657325
Change-Id: Ic0c48b1b0a76cb90f36c20c79f68294cc3fd44a1
2014-08-08 11:29:35 -07:00
Dan Albert
a0db464187
Merge "Make __set_errno hidden in asm."
2014-08-08 18:16:13 +00:00
Dan Albert
bc9f9f25bf
Make __set_errno hidden in asm.
...
This fixes the build after the -Bsymbolic change.
Bug: 16853291
Change-Id: I989c9fec3c32e0289ea257a3bd2b7fd2709b6ce2
2014-08-08 15:35:47 -07:00
Christopher Ferris
98d4eaab3f
am 1c5e415f
: Merge "Add a way to disable backtracing in malloc debug."
...
* commit '1c5e415f8c4cd2cb10ad1d1cf660d17161132772':
Add a way to disable backtracing in malloc debug.
2014-08-08 16:53:11 +00:00
Christopher Ferris
f18203517e
am 49de01a5
: Add a way to disable backtracing in malloc debug.
...
* commit '49de01a5be7bfb07baaea7415647d838383e1b59':
Add a way to disable backtracing in malloc debug.
2014-08-08 16:35:57 +00:00
Elliott Hughes
b763b7d6d5
am f2d8c357
: Merge "Remove misleading arm/arm64 PIC_SYM."
...
* commit 'f2d8c357eec1bbc4e7441942dfc338ad1d9a207a':
Remove misleading arm/arm64 PIC_SYM.
2014-08-08 16:21:23 +00:00
Christopher Ferris
e2005cdae0
am 92f0c91b
: Merge "Create a distinct temp directory for each run."
...
* commit '92f0c91b82c60788b14062ca032ccc732f0fba4c':
Create a distinct temp directory for each run.
2014-08-08 07:17:17 +00:00
Elliott Hughes
0d9cc846f7
am 43227c0b
: Android is all-PIC/PIE.
...
* commit '43227c0b400a33dc9722269beda26313c391fb1e':
Android is all-PIC/PIE.
2014-08-08 00:53:31 +00:00
Dan Albert
d17047ffd6
am cdd2f072
: Merge "Fix incorrect relocations for x86."
...
* commit 'cdd2f072af5c22750e06d1613b72336ecda7e71f':
Fix incorrect relocations for x86.
2014-08-08 00:23:54 +00:00
Dan Albert
3788a1ee8e
Merge "Revert "Fix incorrect relocations for x86.""
2014-08-07 18:51:06 +00:00
Dan Albert
3726f9c38b
Revert "Fix incorrect relocations for x86."
...
Bug: 16853291
This reverts commit 512bc52326
.
2014-08-08 22:26:47 +00:00
Elliott Hughes
1636f80b7d
am d994622e
: Merge "Android is all-PIC/PIE."
...
* commit 'd994622ebf2c4b7e918d9e1f1840f9df88ee7222':
Android is all-PIC/PIE.
2014-08-07 18:33:33 +00:00
Christopher Ferris
1c5e415f8c
Merge "Add a way to disable backtracing in malloc debug."
2014-08-07 17:53:11 +00:00
Christopher Ferris
88a1f520d2
Add a way to disable backtracing in malloc debug.
...
The property libc.debug.malloc.nobacktrace set to non-zero disables
getting backtracing when using mode 1 or mode 10.
Bug: 16874447
(cherry picked from 49de01a5be
)
Change-Id: I6bbefe5420b14991fe84c2f849222dcd7cb592bf
2014-08-08 09:40:17 -07:00
Christopher Ferris
92f0c91b82
Merge "Create a distinct temp directory for each run."
2014-08-07 15:46:11 +00:00
Christopher Ferris
01bd32e0e4
Create a distinct temp directory for each run.
...
Modify make__NR_name so that only __ARM_NR_ is exempted from the
__NR_ being prepended. This avoids a case where using a name starting
with __ but is not a valid syscall name in SYSCALLS.TXT does not generate
code that will compile but references the function itself and causes
link errors.
Fix all of the directory references from dir_part1 + dir_part2 to
use os.path.join() instead.
Change-Id: Ib9527eba6f25f26a30c5cb0ad431f3f88a7683cf
2014-08-07 19:33:22 -07:00
Dan Albert
cdd2f072af
Merge "Fix incorrect relocations for x86."
2014-08-07 14:59:23 +00:00
Dan Albert
512bc52326
Fix incorrect relocations for x86.
...
These calls were not going through the PLT like they should have been.
Bug: 16853291
Change-Id: Id70488b077256a70137c4417f21be2c2d1d4341c
2014-08-07 16:21:47 -07:00
Elliott Hughes
d994622ebf
Merge "Android is all-PIC/PIE."
2014-08-07 14:59:23 +00:00
Elliott Hughes
6b6364a7fc
Android is all-PIC/PIE.
...
Clean up the x86/x86_64 assembler. The motivator (other than reducing
confusion) was that asm.h incorrectly checked PIC rather than __PIC__.
Bug: 16823325
Change-Id: Iaa9d45009e93a4b31b719021c93ac221e336479b
2014-08-07 10:54:54 -07:00
Christopher Ferris
1c85152f76
am 85ebcfce
: Merge "Do a second key cleanup in pthread_exit."
...
* commit '85ebcfceb62f011e0db359affefcf5570f518bd5':
Do a second key cleanup in pthread_exit.
2014-08-07 01:14:05 +00:00
Christopher Ferris
60b4de132c
am 3e7b8e2a
: Merge "Do a second key cleanup in pthread_exit." into lmp-dev
...
* commit '3e7b8e2a8bd16a37cecdae1135a5e7fc6e64c762':
Do a second key cleanup in pthread_exit.
2014-08-07 01:05:51 +00:00
Elliott Hughes
3ea3982f1f
am 501eb513
: Merge "Upgrade bionic to tzdata2014f." into lmp-dev
...
* commit '501eb513ae4f037dc5ef5db530886c05b7f5d964':
Upgrade bionic to tzdata2014f.
2014-08-07 00:53:33 +00:00
Elliott Hughes
af0ec906bd
am 6edf8985
: Merge "Fix the tzdata update tools." into lmp-dev
...
* commit '6edf8985c1fe205d13543212fba0e079ed7dc4a9':
Fix the tzdata update tools.
2014-08-07 00:44:37 +00:00
Elliott Hughes
5a09267019
am f3868fa7
: Merge "Upgrade bionic to tzdata2014f."
...
* commit 'f3868fa735ad67ec853f3db36936ca184bd5f79a':
Upgrade bionic to tzdata2014f.
2014-08-07 00:42:12 +00:00
Elliott Hughes
0415a4a6f8
am b4b7e054
: Merge "Fix the tzdata update tools."
...
* commit 'b4b7e0547da259b38b3e31dbd08cf26026cff1ee':
Fix the tzdata update tools.
2014-08-07 00:42:11 +00:00
Elliott Hughes
f3868fa735
Merge "Upgrade bionic to tzdata2014f."
2014-08-07 00:00:55 +00:00
Elliott Hughes
51fde5b865
Upgrade bionic to tzdata2014f.
...
From the release notes:
Changes affecting future time stamps
Russia will subtract an hour from most of its time zones on
2014-10-26 at 02:00 local time. (Thanks to Alexander Krivenyshev.)
There are a few exceptions: Magadan Oblast (Asia/Magadan) and
Zabaykalsky Krai are subtracting two hours; conversely, Chukotka
Autonomous Okrug (Asia/Anadyr), Kamchatka Krai (Asia/Kamchatka),
Kemerovo Oblast (Asia/Novokuznetsk), and the Samara Oblast and the
Udmurt Republic (Europe/Samara) are not changing their clocks. The
changed zones are Europe/Kaliningrad, Europe/Moscow,
Europe/Simferopol, Europe/Volgograd, Asia/Yekaterinburg, Asia/Omsk,
Asia/Novosibirsk, Asia/Krasnoyarsk, Asia/Irkutsk, Asia/Yakutsk,
Asia/Vladivostok, Asia/Khandyga, Asia/Sakhalin, and Asia/Ust-Nera;
Asia/Magadan will have two hours subtracted; and Asia/Novokuznetsk's
time zone abbreviation is affected, but not its UTC offset. Two
zones are added: Asia/Chita (split from Asia/Yakutsk, and also with
two hours subtracted) and Asia/Srednekolymsk (split from
Asia/Magadan, but with only one hour subtracted). (Thanks to Tim
Parenti for much of the above.)
Changes affecting past time stamps
China's five zones have been simplified to two, since the post-1970
differences in the other three seem to have been imaginary. The
zones Asia/Harbin, Asia/Chongqing, and Asia/Kashgar have been
removed; backwards-compatibility links still work, albeit with
different behaviors for time stamps before May 1980. Asia/Urumqi's
1980 transition to UTC+8 has been removed, so that it is now at
UTC+6 and not UTC+8. (Thanks to Luther Ma and to Alois Treindl;
Treindl sent helpful translations of two papers by Guo Qingsheng.)
Some zones have been turned into links, when they differed from
existing zones only for older UTC offsets where the data were likely
invented. These changes affect UTC offsets in pre-1970 time stamps
only. This is similar to the change in release 2013e, except this
time for western Africa. The affected zones are: Africa/Bamako,
Africa/Banjul, Africa/Conakry, Africa/Dakar, Africa/Freetown,
Africa/Lome, Africa/Nouakchott, Africa/Ouagadougou, Africa/Sao_Tome,
and Atlantic/St_Helena. This also affects the
backwards-compatibility link Africa/Timbuktu. (Thanks to Alan
Barrett, Stephen Colebourne, Tim Parenti, and David Patte for
reporting problems in earlier versions of this change.)
Asia/Shanghai's pre-standard-time UT offset has been changed from
8:05:57 to 8:05:43, the location of Xujiahui Observatory. Its
transition to standard time has been changed from 1928 to 1901.
Asia/Taipei switched to JWST on 1896-01-01, then to JST on
1937-10-01, then to CST on 1945-09-21 at 01:00, and did not observe
DST in 1945. In 1946 it observed DST from 05-15 through 09-30; in
1947 from 04-15 through 10-31; and in 1979 from 07-01 through 09-30.
(Thanks to Yu-Cheng Chuang.)
Asia/Riyadh's transition to standard time is now 1947-03-14, not
1950.
Europe/Helsinki's 1942 fall-back transition was 10-04 at 01:00, not
10-03 at 00:00. (Thanks to Konstantin Hyppönen.)
Pacific/Pago_Pago has been changed from UTC-11:30 to UTC-11 for the
period from 1911 to 1950.
Pacific/Chatham has been changed to New Zealand standard time plus
45 minutes for the period before 1957, reflecting a 1956 remark in
the New Zealand parliament.
Europe/Budapest has several pre-1946 corrections: in 1918 the
transition out of DST was on 09-16, not 09-29; in 1919 it was on
11-24, not 09-15; in 1945 it was on 11-01, not 11-03; in 1941 the
transition to DST was 04-08 not 04-06 at 02:00; and there was no DST
in 1920.
Africa/Accra is now assumed to have observed DST from 1920 through
1935.
Time in Russia before 1927 or so has been corrected by a few seconds
in the following zones: Europe/Moscow, Asia/Irkutsk, Asia/Tbilisi,
Asia/Tashkent, Asia/Vladivostok, Asia/Yekaterinburg,
Europe/Helsinki, and Europe/Riga. Also, Moscow's location has been
changed to its Kilometer 0 point. (Thanks to Vladimir Karpinsky for
the Moscow changes.)
(cherry-pick of 0dc2c1db6fc84b4526f2a5f8d73e1187500f2300.)
Bug: 16168653
Change-Id: I23827254bcf50dd07a2192ed34b02224d73e07a0
2014-08-06 17:38:01 -07:00
Elliott Hughes
b4b7e0547d
Merge "Fix the tzdata update tools."
2014-08-06 23:55:49 +00:00
Elliott Hughes
13bab43337
Fix the tzdata update tools.
...
The recent libcore ZoneInfo changes mean that we can no longer
compile libcore's ZoneInfo against the RI. Luckily, the field in
our data file that we needed ZoneInfo for isn't actually used.
This change removes our dependence on libcore.
I've left the field in to avoid a file format change. We can remove
the field if/when we next have a real need to bump the file format.
(cherry-pick of 90cb5ffb85a9bc2e725824b3ca8db932d02c45db.)
Bug: 16168653
Change-Id: Iedad2252c2b49f4d8bb2c7d9078b39b622444ca7
2014-08-06 17:31:48 -07:00
Elliott Hughes
f2d8c357ee
Merge "Remove misleading arm/arm64 PIC_SYM."
2014-08-06 23:49:29 +00:00
Elliott Hughes
651a0683ca
Remove misleading arm/arm64 PIC_SYM.
...
Bug: 16823325
Change-Id: Ic8ff3a628bb4cd71361e3a1c2cfde4b3d39c50b1
2014-08-07 11:52:38 -07:00
Christopher Ferris
85ebcfceb6
Merge "Do a second key cleanup in pthread_exit."
2014-08-06 23:49:29 +00:00
Christopher Ferris
e380960813
Do a second key cleanup in pthread_exit.
...
During pthread_exit, the keys are cleaned. Unfortunately, a call to
free occurs after the cleanup and the memory for some of the keys
is recreated when using jemalloc. The solution is to do the key
cleanup twice.
Also, modify the pthread_detach__leak test to be less flaky
when run on a jemalloc system.
Bug: 16513133
(cherry picked from commit 18d93f2793
)
Change-Id: Idb32e7f9b09e2c088d256ed9eb881df80c81ff8e
2014-08-06 17:57:04 -07:00
Dan Albert
0f3b73aa22
am bc0d65c1
: Merge "Proper MB_CUR_MAX." into lmp-dev
...
* commit 'bc0d65c114f3ead6d89f8e92622bc941d731b01c':
Proper MB_CUR_MAX.
2014-08-06 21:26:13 +00:00
Dan Albert
589859a125
am 5b39a445
: Merge "Fix mbsrtowcs(3) src param for finished string." into lmp-dev
...
* commit '5b39a44575e01ecf65397ffb7518efc3c65a6d8b':
Fix mbsrtowcs(3) src param for finished string.
2014-08-06 21:26:13 +00:00
Dan Albert
d14344adf2
am 40079b00
: Fixes build.
...
* commit '40079b003168b39dab91e106c7a877b677e64ef1':
Fixes build.
2014-08-06 21:26:12 +00:00
Dan Albert
8b1af4762c
am 5386a741
: Revert "Replaces vfork() implementation with fork()"
...
* commit '5386a741e77bfff4e72ca6861fdd3fe2208452ce':
Revert "Replaces vfork() implementation with fork()"
2014-08-06 21:26:09 +00:00
Elliott Hughes
fa70bacc6c
am 3a238ae7
: Merge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""
...
* commit '3a238ae7620298608e1d463901051c397e4f8a2f':
Revert "Add a hack to <stdlib.h> until we can fix libvpx."
2014-08-06 20:38:40 +00:00
Elliott Hughes
5fb6ce2950
am 00a8344a
: Merge "Workaround b/16818336 which fails build under aggressive inlining." into lmp-dev
...
* commit '00a8344ae82a691209b665adae828a5abe570cfb':
Workaround b/16818336 which fails build under aggressive inlining.
2014-08-06 19:50:02 +00:00
Paul Jensen
8019e6f0fd
am 7a5f0952
: Merge "Revert most of "Cleanup: Delete dead code."" into lmp-dev
...
* commit '7a5f0952a293fd6e511db0e0a72e18f20bb4c500':
Revert most of "Cleanup: Delete dead code."
2014-08-06 19:50:01 +00:00
Elliott Hughes
428483446e
am bb91a1b8
: Merge "Workaround b/16818336 which fails build under aggressive inlining."
...
* commit 'bb91a1b845f7c8b3b09d07fe467aa32d2aeddc4f':
Workaround b/16818336 which fails build under aggressive inlining.
2014-08-06 18:53:23 +00:00
Elliott Hughes
987e533ed4
am 59b0933e
: Explain how wcswcs ended up in ndk_cruft.cpp.
...
* commit '59b0933e6d4cd9671ad3b6baeae424bc72c8ece0':
Explain how wcswcs ended up in ndk_cruft.cpp.
2014-08-06 18:09:18 +00:00
Elliott Hughes
10d197c681
am 8b91980e
: Merge "Explain how wcswcs ended up in ndk_cruft.cpp."
...
* commit '8b91980e4c139558f9cca4e9a0980dad07c06e68':
Explain how wcswcs ended up in ndk_cruft.cpp.
2014-08-06 18:02:59 +00:00
Elliott Hughes
8b91980e4c
Merge "Explain how wcswcs ended up in ndk_cruft.cpp."
2014-08-06 17:20:04 +00:00
Elliott Hughes
1628eb1d43
Explain how wcswcs ended up in ndk_cruft.cpp.
...
Change-Id: Ie45148095b2d5c3896c0df623d5d06a700c33c70
2014-08-06 10:47:33 -07:00
Elliott Hughes
3a238ae762
Merge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""
2014-08-06 17:15:22 +00:00
Elliott Hughes
9d2a05a6dd
Revert "Add a hack to <stdlib.h> until we can fix libvpx."
...
This reverts commit 3fb5097a7e
.
libvpx is now fixed.
(cherry-pick of 2be1be47aa9b63568fe6ce1e0a4029b37d90764d.)
Bug: 15598056
Change-Id: Icca974e667f92206505f484bd291726eb0150f68
2014-08-06 13:20:41 -07:00
Elliott Hughes
0a693b4fc8
am afc86723
: Merge "Add an obvious comment to <stdio.h> for fixincludes."
...
* commit 'afc8672387438f9c8926a12831f43a6dd1f59323':
Add an obvious comment to <stdio.h> for fixincludes.
2014-08-06 16:13:37 +00:00
Dmitriy Ivanov
36730936a1
am db7a17d4
: Revert "Revert "Fix dlsym(3) to do breadth first search.""
...
* commit 'db7a17d4ff56a05af01ee2fee1f3c55245bfc630':
Revert "Revert "Fix dlsym(3) to do breadth first search.""
2014-08-06 01:23:25 +00:00
Dan Albert
909464c2cb
am de69069f
: Merge "Fixes build."
...
* commit 'de69069fcfee8d89dfc70da374760ef0c29fe0a4':
Fixes build.
2014-08-05 21:55:18 +00:00
Dan Albert
dfe8417a58
am a7ef8188
: Merge "Revert "Replaces vfork() implementation with fork()""
...
* commit 'a7ef8188e24446d41c5abbe9addf55cc6a128968':
Revert "Replaces vfork() implementation with fork()"
2014-08-05 21:43:20 +00:00
Elliott Hughes
afc8672387
Merge "Add an obvious comment to <stdio.h> for fixincludes."
2014-08-05 17:41:26 +00:00
Elliott Hughes
df85f50b82
Add an obvious comment to <stdio.h> for fixincludes.
...
We don't want GCC's fixincludes to touch our <stdio.h> because we
want to support multiple platform versions with one toolchain. Give
them a nice easy unambiguous string to look for.
Bug: http://code.google.com/p/android/issues/detail?id=73728
Change-Id: I15cb9a2c9eb0a44b0965dc2139f224f2b6e68ea1
2014-08-06 09:03:52 -07:00
Dan Albert
de69069fcf
Merge "Fixes build."
2014-08-05 17:41:26 +00:00
Dan Albert
9eae8405e8
Fixes build.
...
This change somehow went missing from the vfork change.
Change-Id: I807a2072080eac20601c694e85ba5723220289d8
2014-08-05 14:46:03 -07:00
Dan Albert
a7ef8188e2
Merge "Revert "Replaces vfork() implementation with fork()""
2014-08-05 17:41:26 +00:00
Dan Albert
6a918870ba
Revert "Replaces vfork() implementation with fork()"
...
We're getting cold feet on this one... let's put it back.
This reverts commit 210331d976
.
Change-Id: I6b0d3c2b1dbf7f1dc9566979a91b7504c2189269
2014-08-05 14:11:38 -07:00
Elliott Hughes
bb91a1b845
Merge "Workaround b/16818336 which fails build under aggressive inlining."
2014-08-05 00:30:25 +00:00
Dehao Chen
28285f85a1
Workaround b/16818336 which fails build under aggressive inlining.
...
(cherry-pick of 7aa27e1c1a53afe28f6180fd1fc50d096cabea7b.)
Change-Id: Ifcd596714c427a2ec39502b9c0af9082ded91884
2014-08-06 11:43:38 -07:00
Dmitriy Ivanov
f9a0af9c93
am 1b1966d9
: Revert "Fix dlsym(3) to do breadth first search."
...
* commit '1b1966d9448e979d1503a3d8843708bfa8880dc6':
Revert "Fix dlsym(3) to do breadth first search."
2014-08-04 16:46:55 +00:00
Dan Albert
b782c20b82
am 447fe1c2
: Merge "Fix mbsrtowcs(3) src param for finished string."
...
* commit '447fe1c23bc5adaded9a51d3b58f3adaf2cce7b3':
Fix mbsrtowcs(3) src param for finished string.
2014-07-31 22:28:59 +00:00
Dan Albert
0c4ad535dc
am 36bacd23
: Merge "Proper MB_CUR_MAX."
...
* commit '36bacd237de931c48714d1a8aa4aa9522283e407':
Proper MB_CUR_MAX.
2014-07-31 00:22:22 +00:00
Dan Albert
36bacd237d
Merge "Proper MB_CUR_MAX."
2014-07-31 00:14:55 +00:00
Dan Albert
1aec7c1a35
Proper MB_CUR_MAX.
...
Previously this was hard coded to 4. This is only the case for UTF-8
locales.
As a side effect, this properly reports C.UTF-8 as the default locale
instead of C.
Change-Id: I7c73cc8fe6ffac61d211cd5f75287e36de06f4fc
2014-07-30 17:09:46 -07:00
Christopher Ferris
592cfa90c3
am 61833de6
: Fix memchr with a zero length.
...
* commit '61833de613990f2fdaf357bb3d854d72a4980890':
Fix memchr with a zero length.
2014-07-30 23:46:26 +00:00
Christopher Ferris
30ac3d58ea
am 0f7ed163
: Merge "Fix memchr with a zero length."
...
* commit '0f7ed163cf6c1fe6d71a1d7e5fb6d0989213be85':
Fix memchr with a zero length.
2014-07-30 23:33:45 +00:00
Elliott Hughes
63b6416f33
am 4f76469e
: Implement <sys/fsuid.h>.
...
* commit '4f76469e88e255bab1f8264e9ff8b95bff84365f':
Implement <sys/fsuid.h>.
2014-07-30 23:27:43 +00:00
Elliott Hughes
897aca77ee
am 83b9826e
: Merge "Implement <sys/fsuid.h>."
...
* commit '83b9826e683db30e9b359737253b87ef8b3ba3df':
Implement <sys/fsuid.h>.
2014-07-30 23:25:22 +00:00
Duane Sand
66fa2c87d6
am cd541952
: [MIPSR6] Use C-coded string ops on mips32r6/mips64r6
...
* commit 'cd54195262ac5531fff892255849925ebbbd303e':
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
2014-07-30 22:28:55 +00:00
Elliott Hughes
abd2844578
am c7706a02
: Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"
...
* commit 'c7706a02ad90ab73f3a056040d2c4a3464ab1ab1':
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
2014-07-30 22:21:57 +00:00
Elliott Hughes
84093b174e
am 11bf8a30
: Only wipe TLS for user-supplied stacks.
...
* commit '11bf8a3025a7b5aee891c521255a7db1860e5b12':
Only wipe TLS for user-supplied stacks.
2014-07-30 22:06:54 +00:00
Elliott Hughes
594a527518
am 18a1bbe6
: Merge "Only wipe TLS for user-supplied stacks."
...
* commit '18a1bbe6e18770694d489f2e140e779dc59fde86':
Only wipe TLS for user-supplied stacks.
2014-07-30 22:02:31 +00:00
Christopher Ferris
0f7ed163cf
Merge "Fix memchr with a zero length."
2014-07-30 20:40:05 +00:00
Christopher Ferris
e03e1eac0b
Fix memchr with a zero length.
...
The memchr implementation for 64 bit fails if these conditions occur:
- The buffer is 32 byte aligned.
- The buffer contains the character in the first byte.
- The count sent in is zero.
The function should return NULL, but it's not.
Bug: 16676625
Change-Id: Iab33cc7a8b79920350c72f054dff0e0a3cde69ce
2014-07-30 16:06:56 -07:00
Elliott Hughes
18a1bbe6e1
Merge "Only wipe TLS for user-supplied stacks."
2014-07-30 19:31:16 +00:00
Elliott Hughes
40a5217448
Only wipe TLS for user-supplied stacks.
...
Bug: 16667988
Change-Id: Id180ab2bc6713e1612386120a306db5bbf1d6046
2014-07-30 14:49:40 -07:00
Christopher Ferris
0770ed0680
am c701e5b3
: Use libunwindbacktrace for debug malloc code.
...
* commit 'c701e5b3357b6484572d46f29c5d1e51063dfcbb':
Use libunwindbacktrace for debug malloc code.
2014-07-30 16:42:36 +00:00
Elliott Hughes
a99a69a640
am 1242f7eb
: Remove declarations for things that don\'t exist.
...
* commit '1242f7eb67c678922b55e2077d9cf2d5cdc85b15':
Remove declarations for things that don't exist.
2014-07-30 16:41:43 +00:00
Elliott Hughes
4d17c6c39f
am f6aa1779
: Merge "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."" into lmp-dev
...
* commit 'f6aa17798c5b0015d002b982c3684595b817d2d0':
Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."
2014-07-30 16:41:43 +00:00
Dan Albert
5fce71b56e
am e872c923
: Merge "en_US.UTF-8 is also supported." into lmp-dev
...
* commit 'e872c9239af180df6bf4b28a623241c6b1c7f1c3':
en_US.UTF-8 is also supported.
2014-07-30 14:15:47 +00:00
Dan Albert
d735a0723a
am 9379ce69
: Merge "There is no _MIN for unsigned types." into lmp-dev
...
* commit '9379ce694d8a6bd70341eee003e23e96e21352e5':
There is no _MIN for unsigned types.
2014-07-30 14:15:46 +00:00
Dan Albert
bb0c053105
am a1a813da
: Merge "Fix mbsrtowcs(3)\'s handling of len parameter." into lmp-dev
...
* commit 'a1a813da8184153606bfcf8ffcce557eda09a5ba':
Fix mbsrtowcs(3)'s handling of len parameter.
2014-07-30 14:15:46 +00:00
Dan Albert
ff20ad985e
am 8db0ce70
: Merge "__libc_fatal should print a newline to stderr." into lmp-dev
...
* commit '8db0ce7050b0f6ee3874456394a1d7cb0d336c3a':
__libc_fatal should print a newline to stderr.
2014-07-30 14:15:45 +00:00
Dmitriy Ivanov
2d36173271
am 422106a2
: Fix dlsym(3) to do breadth first search.
...
* commit '422106a24d620af4be58e8d92a2e9b7b6167b72d':
Fix dlsym(3) to do breadth first search.
2014-07-30 14:15:44 +00:00
Dan Albert
447fe1c23b
Merge "Fix mbsrtowcs(3) src param for finished string."
2014-07-30 11:26:00 +00:00
Dan Albert
b6cc8e00cd
Fix mbsrtowcs(3) src param for finished string.
...
A mistake I made while cleaning this up the first time through.
mbstrtowcs(3) sets the src param to null if it finishes the string.
Change-Id: I6263646e25d9537043b7025fd1dd6ae195f365e2
2014-07-31 11:31:03 -07:00
Christopher Ferris
4cc7dba978
am 4ad5066e
: Merge "Use libunwindbacktrace for debug malloc code."
...
* commit '4ad5066e1de326e5db46df18eeade9a88bc11bec':
Use libunwindbacktrace for debug malloc code.
2014-07-30 02:23:58 +00:00
Elliott Hughes
eb0642a2b9
am 17886971
: Merge "Remove declarations for things that don\'t exist."
...
* commit '17886971ffc758270bb3da3fecec86fa5b2bb3c3':
Remove declarations for things that don't exist.
2014-07-30 01:12:55 +00:00
Dmitriy Ivanov
60abfd28ca
am 2b591b37
: Merge "Fix dlsym(3) to do breadth first search."
...
* commit '2b591b37420b4186bda7fa823b9058d4b19565f6':
Fix dlsym(3) to do breadth first search.
2014-07-29 22:09:23 +00:00
Elliott Hughes
c7706a02ad
Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"
2014-07-29 21:36:05 +00:00
Dmitriy Ivanov
2b591b3742
Merge "Fix dlsym(3) to do breadth first search."
2014-07-29 21:36:05 +00:00
Dmitriy Ivanov
aa0f2bdbc2
Fix dlsym(3) to do breadth first search.
...
dlsym(3) with handle != RTLD_DEFAULT|RTLD_NEXT performs
breadth first search through the dependency tree.
Bug: 16653281
Change-Id: I017a6975d1a62abb0218a7eb59ae4deba458e324
2014-07-29 14:35:13 -07:00
Elliott Hughes
0950f26335
am 2ea0a58e
: Fix linkage of grantpt(3).
...
* commit '2ea0a58e01c1ed6db1da9dd0314ee053f5a32026':
Fix linkage of grantpt(3).
2014-07-29 18:01:25 +00:00
Elliott Hughes
e9c1d67375
am a7dc7600
: Merge "Fix linkage of grantpt(3)."
...
* commit 'a7dc7600fe1be1f3fd61856b407bb7065307e711':
Fix linkage of grantpt(3).
2014-07-29 17:52:05 +00:00
Brigid Smith
674e245cd4
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.
2014-07-29 17:25:00 +00:00
Elliott Hughes
1b36954017
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.
2014-07-29 16:47:01 +00:00
Dmitriy Ivanov
46330ed410
am 24dcda0f
: Merge "Fix mips/mips64 build"
...
* commit '24dcda0f4febe7d257b31c68887183c81d1b8791':
Fix mips/mips64 build
2014-07-29 14:23:25 +00:00
Dmitriy Ivanov
fed22f73c1
am 1a5db57d
: Fix mips/mips64 build
...
* commit '1a5db57d5a0f633a83f20e667a4698757a63413e':
Fix mips/mips64 build
2014-07-29 13:15:21 +00:00
Dmitriy Ivanov
4139020da3
am 5febb0da
: Fix \'adb shell /system/bin/linker\' crash
...
* commit '5febb0da6f6d7106c403e6809917d89d6ee081ad':
Fix 'adb shell /system/bin/linker' crash
2014-07-29 00:56:21 +00:00
Elliott Hughes
3164805b2e
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."
2014-07-28 23:50:42 +00:00
Dmitriy Ivanov
18358f0e67
am 337c0cef
: Merge "Fix \'adb shell /system/bin/linker\' crash"
...
* commit '337c0cefdc4667143a1f4f2c30113b452c5d188f':
Fix 'adb shell /system/bin/linker' crash
2014-07-28 23:45:07 +00:00
Elliott Hughes
63b5e167ad
am 78e4f8fe
: syscall(3)\'s return type should be long.
...
* commit '78e4f8fed2c162f8ada55180e48487ef2180cf93':
syscall(3)'s return type should be long.
2014-07-28 23:21:28 +00:00
Elliott Hughes
a032277bb4
am 8a2ecf86
: Merge "syscall(3)\'s return type should be long."
...
* commit '8a2ecf868feebaa39caddc6cdf9500b5385651f0':
syscall(3)'s return type should be long.
2014-07-28 22:47:57 +00:00
Christopher Ferris
4ad5066e1d
Merge "Use libunwindbacktrace for debug malloc code."
2014-07-28 22:45:44 +00:00
Christopher Ferris
861c0ef37b
Use libunwindbacktrace for debug malloc code.
...
Create a method of disabling the debug allocation code paths so that
it's possible to use the libunwindbacktrace library without any
modifications.
Use this path to create and destroy the maps for the process. It's not
stricly necessary in the init code since the symbols are not modified
until after the initialize calls.
Also, remove the debug_XXX source files that doesn't need to be in libc.so.
Fix the maps reading code since it was completely broken for 64 bit.
Bug: 16408686
Change-Id: I6b02ef6ce26fdb7a59ad1029e7cbba9accceb704
2014-07-29 18:10:00 -07:00
Elliott Hughes
a7dc7600fe
Merge "Fix linkage of grantpt(3)."
2014-07-28 22:45:44 +00:00
Elliott Hughes
36666a4d51
am 8c66fd79
: Merge "Use vsnprintf(3) in syslog(3)."
...
* commit '8c66fd798ed5b7cefe1568d9a000d01b69d29dd9':
Use vsnprintf(3) in syslog(3).
2014-07-28 16:51:57 +00:00
Elliott Hughes
d201486cdb
am b1b60c30
: Use vsnprintf(3) in syslog(3).
...
* commit 'b1b60c30bf321c0fc02264b953b5c16c49d34457':
Use vsnprintf(3) in syslog(3).
2014-07-28 16:47:40 +00:00
Elliott Hughes
4916706cfe
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
2014-07-25 19:55:23 -07:00
Elliott Hughes
a09f2ebb40
am c1a6a725
: Remove localtime_tz and strftime_tz.
...
* commit 'c1a6a7256026431a9ae49ef2a6139ea99410819b':
Remove localtime_tz and strftime_tz.
2014-07-26 00:36:25 +00:00
Elliott Hughes
e7e5e37ca4
am 1a918d9b
: Merge "Remove localtime_tz and strftime_tz."
...
* commit '1a918d9be83013cdc8e194edf35b5295eba4ab1c':
Remove localtime_tz and strftime_tz.
2014-07-25 23:26:24 +00:00
Elliott Hughes
d76f4a9b6f
am 708c1120
: Start hiding "private/bionic_time.h".
...
* commit '708c11205443cda14cfb21138d441106aa77a5f9':
Start hiding "private/bionic_time.h".
2014-07-25 23:04:23 +00:00
Elliott Hughes
4b4ee2fc1b
am 50a9630c
: Merge "Start hiding "private/bionic_time.h"."
...
* commit '50a9630cc26cbc1e38e3ddc589f04fa5cd91697b':
Start hiding "private/bionic_time.h".
2014-07-25 22:21:42 +00:00
Elliott Hughes
17886971ff
Merge "Remove declarations for things that don't exist."
2014-07-25 21:16:27 +00:00
Elliott Hughes
f4c1a36a45
Remove declarations for things that don't exist.
...
The <grp.h> ones prevent gdb from building out of the box.
Change-Id: I0efbffad2215cfcd75b4d442dfc972444b51d97c
2014-07-29 16:57:47 -07:00
Elliott Hughes
52f8271fa9
Merge "Added a bionic systrace class and tracing to pthread_mutex.cpp."
2014-07-25 21:16:27 +00:00
Brigid Smith
a406ee6d5f
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
2014-07-28 19:38:08 -07:00
Dmitriy Ivanov
24dcda0f4f
Merge "Fix mips/mips64 build"
2014-07-25 21:16:27 +00:00
Dmitriy Ivanov
ed48534718
Fix mips/mips64 build
...
Add _start entry label to mips/mips64 linker begin.S
Change-Id: Idcdfc3391427b53880650798be0583a7ac022bcc
2014-07-28 21:03:17 -07:00
Dan Albert
779fdd7c0d
am a4c14fda
: Merge "en_US.UTF-8 is also supported."
...
* commit 'a4c14fda9176678cadb65fb53f503fda6668f8d1':
en_US.UTF-8 is also supported.
2014-07-25 19:06:44 +00:00
Elliott Hughes
f4fd7cf138
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.
2014-07-25 01:03:46 +00:00
Dmitriy Ivanov
ceaec0d95c
am dbf52ec3
: Merge "Fix global variable initialization for linker"
...
* commit 'dbf52ec37b835973d8f357af2a16694c98894c4d':
Fix global variable initialization for linker
2014-07-25 01:03:45 +00:00
Elliott Hughes
e7b2b02dec
am d6f614a4
: Merge "Implement twalk(3), add unit tests."
...
* commit 'd6f614a4e16b0fcf4a4fba748bf21fc0017d3619':
Implement twalk(3), add unit tests.
2014-07-25 01:03:33 +00:00
Dmitriy Ivanov
a9b2185bc4
am 65549969
: Fix global variable initialization for linker
...
* commit '65549969488bbce7f5d1b57714ba32c466943470':
Fix global variable initialization for linker
2014-07-24 23:58:31 +00:00
Raghu Gandham
56152a8b81
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.
2014-07-24 23:46:28 +00:00
Elliott Hughes
d00b2327c5
am b902641d
: Implement twalk(3), add unit tests.
...
* commit 'b902641d7303d2ea24c10f6d6e7ff49e7ee75611':
Implement twalk(3), add unit tests.
2014-07-24 23:36:16 +00:00
Duane Sand
eb1fbf1781
am 5ade7e3f
: [MIPS] Drop soft-fp targets
...
* commit '5ade7e3f6bb43d419402aab2c7adca2173e2c584':
[MIPS] Drop soft-fp targets
2014-07-24 23:33:44 +00:00
Elliott Hughes
d6f614a4e1
Merge "Implement twalk(3), add unit tests."
2014-07-24 22:07:52 +00:00
Elliott Hughes
3e424d0a24
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
2014-07-24 14:55:29 -07:00
Elliott Hughes
8a2ecf868f
Merge "syscall(3)'s return type should be long."
2014-07-24 20:55:36 +00:00
Elliott Hughes
21972b61ec
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
2014-07-28 12:33:07 -07:00
Elliott Hughes
8c66fd798e
Merge "Use vsnprintf(3) in syslog(3)."
2014-07-24 20:55:36 +00:00
Elliott Hughes
f1e83cc34a
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
2014-07-28 09:43:21 -07:00
Elliott Hughes
50a9630cc2
Merge "Start hiding "private/bionic_time.h"."
2014-07-24 20:55:36 +00:00
Elliott Hughes
905e6d58aa
Start hiding "private/bionic_time.h".
...
Bug: 15765976
Change-Id: Ibd9cf07067ec8dffe9fda6c3d498d4ab90708220
2014-07-25 12:03:51 -07:00
Elliott Hughes
1a918d9be8
Merge "Remove localtime_tz and strftime_tz."
2014-07-24 20:55:36 +00:00
Elliott Hughes
39d903aea9
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
2014-07-25 15:50:31 -07:00
Dan Albert
a4c14fda91
Merge "en_US.UTF-8 is also supported."
2014-07-24 20:55:36 +00:00
Dan Albert
1abb8bd21d
en_US.UTF-8 is also supported.
...
Change-Id: Ic35fad3596dc5e24ee8ae35543a274a471f27bb2
2014-07-25 11:24:03 -07:00
Dmitriy Ivanov
dbf52ec37b
Merge "Fix global variable initialization for linker"
2014-07-24 20:55:36 +00:00
Dmitriy Ivanov
4151ea73b7
Fix global variable initialization for linker
...
Linker now calls init functions for itself.
Change-Id: Ibd099812493041ac70f591e3f379ee742b4683b8
2014-07-24 15:33:25 -07:00
Duane Sand
3a11c10ad6
am c86950cb
: [MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models
...
* commit 'c86950cb3f50ead0c9a9d0366b870d6c6e1b91c8':
[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models
2014-07-24 19:48:30 +00:00
Christopher Ferris
efbb837dc4
am bc74ecfa
: HACK: Disable syslog going to android log.
...
* commit 'bc74ecfaf5de47056fd8a48db65c0e5aef892f0c':
HACK: Disable syslog going to android log.
2014-07-24 19:47:58 +00:00
Nick Kralevich
9a2778a3a6
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
2014-07-24 19:46:25 +00:00
Colin Cross
abca870989
am 49fbec6d
: HACK: remove %m support from printf.
...
* commit '49fbec6d9aee62462a4acf3ba47788ca1e35be37':
HACK: remove %m support from printf.
2014-07-24 19:23:45 +00:00
Elliott Hughes
c6f39339de
am 8dbe3f0f
: Merge "[MIPS] Drop soft-fp targets"
...
* commit '8dbe3f0f51f0cd26c22df82bdef9a2f8caea7ef6':
[MIPS] Drop soft-fp targets
2014-07-24 18:29:55 +00:00
Elliott Hughes
0caa27b148
am 7d22a451
: Merge "[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models"
...
* commit '7d22a4519610f830178bbff32d961a2784354397':
[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models
2014-07-24 04:03:03 +00:00
Nick Kralevich
3363e16ac9
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
2014-07-23 23:00:01 +00:00
Elliott Hughes
83b9826e68
Merge "Implement <sys/fsuid.h>."
2014-07-23 22:55:49 +00:00
Elliott Hughes
79310994d2
Implement <sys/fsuid.h>.
...
Change-Id: I1e5e50444a1b5a430ba5b5d9b8b1d91219af5e92
2014-07-30 15:19:29 -07:00
Elliott Hughes
123172ae37
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."
2014-07-23 22:55:49 +00:00
Raghu Gandham
f1837377d2
[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
2014-07-24 16:11:52 -07:00
Duane Sand
bc5a3ec6df
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
...
The existing assembler code uses deprecated lwl/lwr/swl/swr ops.
Replacing those with misalignment-forgiving lw/sw ops may
involve careful performance tuning.
Change-Id: I47a042f7b22b87d7d52e46c29c44b1db1ba8b693
2014-07-23 14:00:21 -07:00
Elliott Hughes
aa8672cb6d
am 4126c129
: Fix belated review comments on syslog change.
...
* commit '4126c129613e27717c110626070c44ea7e3f29ce':
Fix belated review comments on syslog change.
2014-07-23 20:20:33 +00:00
Elliott Hughes
0200a28583
am f9bfc2ff
: Merge "Fix belated review comments on syslog change."
...
* commit 'f9bfc2ff8eb5db99a106a8a384498165361291ce':
Fix belated review comments on syslog change.
2014-07-23 20:18:59 +00:00
Elliott Hughes
5e1183c216
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.
2014-07-23 19:02:16 +00:00
Nick Kralevich
f965075749
Merge "debuggerd: if PR_GET_DUMPABLE=0, don't ask for dumping"
2014-07-23 18:51:55 +00:00
Nick Kralevich
be0e43b776
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
2014-07-23 15:48:49 -07:00
Elliott Hughes
7d22a45196
Merge "[MIPSR6] setjmp supports mips32r6 and FP64A/FPXX reg models"
2014-07-23 18:45:08 +00:00
Duane Sand
dd37251c47
[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
2014-07-23 13:57:30 -07:00
Elliott Hughes
f9bfc2ff8e
Merge "Fix belated review comments on syslog change."
2014-07-23 18:45:08 +00:00
Elliott Hughes
e34ce3741f
am 2aa142ff
: Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros.
...
* commit '2aa142ffb20337e60f81642bed1c11d24a3756b1':
Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros.
2014-07-23 18:42:30 +00:00
Elliott Hughes
afe6360627
Fix belated review comments on syslog change.
...
Bug: 14292866
Change-Id: I3cd92084cb55b5673f6ba62d51952941b79deb51
2014-07-23 11:38:38 -07:00
Dmitriy Ivanov
337c0cefdc
Merge "Fix 'adb shell /system/bin/linker' crash"
2014-07-23 17:53:27 +00:00
Dmitriy Ivanov
efe13832dc
Fix 'adb shell /system/bin/linker' crash
...
Bug: https://code.google.com/p/android/issues/detail?id=63174
Change-Id: I072290ea11109c07f277ad3dec7f44fcb7bf6aa6
2014-07-28 16:29:52 -07:00
Elliott Hughes
8dbe3f0f51
Merge "[MIPS] Drop soft-fp targets"
2014-07-23 17:53:27 +00:00
Duane Sand
ba23bd0a40
[MIPS] Drop soft-fp targets
...
Change-Id: I583bf8242d3034ebfc48548499cdb3316094c8e3
2014-07-24 18:04:21 +00:00
Elliott Hughes
66544dd136
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.
2014-07-23 16:50:57 +00:00
Elliott Hughes
5cd06abdcf
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.
2014-07-23 16:42:30 +00:00
Elliott Hughes
be0ee5a626
am 3ff6d95a
: Remove the unused swab.S.
...
* commit '3ff6d95a9b26154c94b5cf130649cf99eb6a4010':
Remove the unused swab.S.
2014-07-23 03:51:55 +00:00
Elliott Hughes
ad87093f04
am e26ac7f7
: Merge "Remove the unused swab.S."
...
* commit 'e26ac7f776c4011d17e7609efafa116ac4db25ff':
Remove the unused swab.S.
2014-07-23 03:33:41 +00:00
Duane Sand
f6ab6bfeb0
am 5d7775c6
: [MIPS] Allow united mipsel and mips64el gcc toolchain
...
* commit '5d7775c6dfa8f9b2ae313c9493525d54a2d04b38':
[MIPS] Allow united mipsel and mips64el gcc toolchain
2014-07-23 02:48:41 +00:00
Elliott Hughes
b5031b5d6b
am 79b5a396
: Merge "[MIPS] Allow united mipsel and mips64el gcc toolchain"
...
* commit '79b5a396178e798af4ba9b327b884ae014f15bb2':
[MIPS] Allow united mipsel and mips64el gcc toolchain
2014-07-23 02:44:48 +00:00
Sreeram Ramachandran
1a1d0b7abf
am 2582f02a
: Cleanup: Delete dead code.
...
* commit '2582f02a01cd56c56a4e6c9de4444a6ec937cc37':
Cleanup: Delete dead code.
2014-07-23 00:10:16 +00:00
Elliott Hughes
e26ac7f776
Merge "Remove the unused swab.S."
2014-07-22 21:56:40 +00:00
Elliott Hughes
ca70453e84
Remove the unused swab.S.
...
Change-Id: Id30eac5a21b649d6a039a0d7ca0496177fbfb571
2014-07-22 20:21:31 -07:00
Elliott Hughes
467e49be70
Merge "Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros."
2014-07-22 16:35:00 +00:00
Elliott Hughes
5d2f86f363
Fix generate-NOTICE to cope better with BSD __COPYRIGHT macros.
...
Change-Id: I99f9d2e0a28342663cec6aed483e1a23c12e5e87
2014-07-23 11:10:48 -07:00
Elliott Hughes
79b5a39617
Merge "[MIPS] Allow united mipsel and mips64el gcc toolchain"
2014-07-22 16:35:00 +00:00
Duane Sand
f541650828
[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.
Change-Id: I70cbd3f5867e59b1f6f829793444242fb0894aa6
2014-07-22 14:27:48 -07:00
Elliott Hughes
ea42a6caea
Merge "Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files."
2014-07-22 16:25:43 +00:00
Elliott Hughes
3758a244cf
Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files.
...
Change-Id: Id6fcb74292e661504d0758bfce24abdc18cb8d32
2014-07-22 21:29:00 -07:00
Elliott Hughes
f6771114dd
am 6209c81d
: Use upstream OpenBSD\'s arc4random.
...
* commit '6209c81d40e2b4e129a28bda3259150d79d507e8':
Use upstream OpenBSD's arc4random.
2014-07-22 02:30:52 +00:00
Elliott Hughes
e41d7b4e83
am b7661362
: Rewrite syslog(3) to use Android logging.
...
* commit 'b76613627d045acd3bdb7294f424f14c21584872':
Rewrite syslog(3) to use Android logging.
2014-07-22 02:30:49 +00:00
Elliott Hughes
55383d57d4
am 4d421901
: Merge "Use upstream OpenBSD\'s arc4random."
...
* commit '4d421901e587fd1563da94baf59b015017c01b91':
Use upstream OpenBSD's arc4random.
2014-07-22 02:07:58 +00:00
Elliott Hughes
85287b29ea
am 925d388e
: Merge "Rewrite syslog(3) to use Android logging."
...
* commit '925d388e24945afb17f66d5c132f993e6a0d4fee':
Rewrite syslog(3) to use Android logging.
2014-07-22 01:54:47 +00:00
Dan Albert
607458ffe1
am b828eaeb
: Merge "There is no _MIN for unsigned types."
...
* commit 'b828eaeb4512baba6d43a56da682bd7329079822':
There is no _MIN for unsigned types.
2014-07-22 00:43:15 +00:00
Elliott Hughes
0f7d882bb7
Switch to OpenBSD res_random.
...
Change-Id: Ia971d647832893e9bb4601697132a105524d2f96
2014-07-21 15:31:53 -07:00
Dan Albert
e226b64061
am 1fb90a8a
: Merge "Fix mbsrtowcs(3)\'s handling of len parameter."
...
* commit '1fb90a8aa0086f7e4f7960a5b916b8605a9a3c96':
Fix mbsrtowcs(3)'s handling of len parameter.
2014-07-21 18:56:06 +00:00
Dan Albert
75fcd01a6e
am e9731387
: Merge "__libc_fatal should print a newline to stderr."
...
* commit 'e9731387f46938dd73fcda0193460b33655400c4':
__libc_fatal should print a newline to stderr.
2014-07-21 18:23:56 +00:00
Elliott Hughes
4d421901e5
Merge "Use upstream OpenBSD's arc4random."
2014-07-21 15:45:37 +00:00
Elliott Hughes
2b67d7dee0
Use upstream OpenBSD's arc4random.
...
The getentropy_linux.c is lightly modified to build on Android, but we're now
completely in sync with upstream OpenBSD's arc4random implementation.
Change-Id: If32229fc28aba908035fb38703190d41ddcabc95
2014-07-21 14:38:16 -07:00
Dan Albert
b828eaeb45
Merge "There is no _MIN for unsigned types."
2014-07-21 15:45:37 +00:00
Dan Albert
ee7f1b5946
There is no _MIN for unsigned types.
...
Change-Id: I49c38e51197b750210bdbf28c9cf6db30452a206
2014-07-21 17:16:30 -07:00
Hans Boehm
50f2de914f
am ed68221a
: Define atomic_charN_t only if charN_t is supported.
...
* commit 'ed68221a8225a6696d2b0b1607ef0b2de1c1b3aa':
Define atomic_charN_t only if charN_t is supported.
2014-07-20 18:02:21 +00:00
Christopher Ferris
b290796ff9
am b0815aea
: Make sure not to construct illegal property names.
...
* commit 'b0815aeacb86e20cbbd4fa27dd90ad43b9c200fe':
Make sure not to construct illegal property names.
2014-07-20 17:59:47 +00:00
Elliott Hughes
ebb4745531
am fbd00819
: Merge "Clean up some misinformation around prctl." into lmp-dev
...
* commit 'fbd0081923336e3d2fa697445372a329134d9484':
Clean up some misinformation around prctl.
2014-07-20 17:59:30 +00:00
Christopher Ferris
2affffac74
am a6945179
: Merge "Add gen syscalls step to instructions." into lmp-dev
...
* commit 'a694517909546cf5c0d0fb54ab40234047238283':
Add gen syscalls step to instructions.
2014-07-20 17:59:30 +00:00
Elliott Hughes
4aa1203474
am 291da8d3
: Remove SIOCKILLADDR from <sys/socket.h>.
...
* commit '291da8d3533b3ee47f8d742c72d789d3149d15da':
Remove SIOCKILLADDR from <sys/socket.h>.
2014-07-20 17:59:28 +00:00
Elliott Hughes
6f9e612413
am b5bef263
: (-s ours) Remove PR_SET_TIMERSLACK_PID from <sys/prctl.h>.
...
* commit 'b5bef263b37b1f0def2a6c4e8e714ab871452b72':
Remove PR_SET_TIMERSLACK_PID from <sys/prctl.h>.
2014-07-20 17:59:27 +00:00
Elliott Hughes
841c633fa1
resolved conflicts for merge of b5bef263
to lmp-dev-plus-aosp
...
.
Change-Id: Ieef30b3a308ca3cad4a59f17566d4cede0ae2b16
2014-07-20 10:43:16 -07:00
Christopher Ferris
bdfb313cf1
am e8bc5813
: Use the mmap/munmap for allocation routines.
...
* commit 'e8bc581333d1fe19d28211330d1e06d471365d54':
Use the mmap/munmap for allocation routines.
2014-07-20 02:17:50 +00:00
Elliott Hughes
925d388e24
Merge "Rewrite syslog(3) to use Android logging."
2014-07-19 23:20:08 +00:00
Elliott Hughes
3ad8ecb64e
Rewrite syslog(3) to use Android logging.
...
Since we don't have syslogd on Android and you can't run one on a non-rooted
device, it's more useful if syslog output just goes to the regular Android
logging system.
Bug: 14292866
Change-Id: Icee7f088b97f88ccbdaf471b98cbac7f19f9210a
2014-07-21 16:56:48 -07:00
Elliott Hughes
2199ac3113
am 7dd126a3
: Merge "Clean up some misinformation around prctl."
...
* commit '7dd126a38ca501818b07927f310dcc0f531c0f1f':
Clean up some misinformation around prctl.
2014-07-18 23:35:08 +00:00
Dan Albert
e9731387f4
Merge "__libc_fatal should print a newline to stderr."
2014-07-18 22:17:02 +00:00
Dan Albert
97e31dedf0
__libc_fatal should print a newline to stderr.
...
Change-Id: I088dc880d7488a65beac8cda95f530f3db41f112
2014-07-21 11:10:00 -07:00
Christopher Ferris
3a23030ded
am 3c2b71ad
: Merge "Use the mmap/munmap for allocation routines."
...
* commit '3c2b71ad5612721c7073a4396cdad2c00e86ba54':
Use the mmap/munmap for allocation routines.
2014-07-18 22:13:21 +00:00
Elliott Hughes
c6e9b8cebf
am b4669685
: Fix private/bionic_name_mem.h build breakage.
...
* commit 'b46696858b9018ff8a1069d429366e05d4814c52':
Fix private/bionic_name_mem.h build breakage.
2014-07-18 02:50:37 +00:00
Elliott Hughes
1b77f3f741
resolved conflicts for merge of d648f557
to lmp-dev-plus-aosp
...
Change-Id: I406207b390460d5ccb6da338bf84fce674dc8038
2014-07-17 17:37:26 -07:00
Elliott Hughes
6e47ddab72
am d18b87f3
: Merge "Remove SIOCKILLADDR from <sys/socket.h>."
...
* commit 'd18b87f38de8644acdcd1a112bd06d3a70d2ea1d':
Remove SIOCKILLADDR from <sys/socket.h>.
2014-07-18 00:24:35 +00:00
Elliott Hughes
1a04da8750
am 76282482
: Merge "Remove PR_SET_TIMERSLACK_PID from <sys/prctl.h>."
...
* commit '76282482dbb05bf97a834d20b3ccf98de3f5a31d':
Remove PR_SET_TIMERSLACK_PID from <sys/prctl.h>.
2014-07-18 00:24:34 +00:00
Dan Albert
1fb90a8aa0
Merge "Fix mbsrtowcs(3)'s handling of len parameter."
2014-07-17 22:34:19 +00:00
Dan Albert
6b55ba54ef
Fix mbsrtowcs(3)'s handling of len parameter.
...
The len parameter is a _maximum_ length. The previous code was treating
it as an exact length, causing the following typical call to fail:
mbsrtowcs(out, &in, sizeof(out), state); // sizeof(out) > strlen(in)
Change-Id: I48e474fd54ea5f122bc168a4d74bfe08704f28cc
2014-07-21 11:45:48 -07:00
Elliott Hughes
7dd126a38c
Merge "Clean up some misinformation around prctl."
2014-07-17 22:33:54 +00:00
Elliott Hughes
9c07aee83b
Clean up some misinformation around prctl.
...
prctl shouldn't be in <unistd.h>.
Change-Id: I29609fc91c033e1ad143b75d9b4eb17aefbd63d6
2014-07-18 16:15:32 -07:00
Christopher Ferris
3c2b71ad56
Merge "Use the mmap/munmap for allocation routines."
2014-07-17 22:33:54 +00:00
Christopher Ferris
6425327c32
Use the mmap/munmap for allocation routines.
...
To avoid any issues calling malloc related routines, use mmap/munmap.
Specifically, this avoids any problems when this is compiled into a
malloc debug shared library.
Change-Id: Iae2d197145da43dc103ad6024357d8cc2374378f
2014-07-18 14:16:51 -07:00
Elliott Hughes
d18b87f38d
Merge "Remove SIOCKILLADDR from <sys/socket.h>."
2014-07-17 22:33:42 +00:00
Elliott Hughes
8a3d1ca183
Remove SIOCKILLADDR from <sys/socket.h>.
...
Change-Id: I6b64a9abe01c786a9ec26aee1517cb981a4860fb
2014-07-17 17:10:02 -07:00
Elliott Hughes
76282482db
Merge "Remove PR_SET_TIMERSLACK_PID from <sys/prctl.h>."
2014-07-17 22:33:42 +00:00
Elliott Hughes
9f165d24f0
Remove PR_SET_TIMERSLACK_PID from <sys/prctl.h>.
...
Change-Id: Ie70f23c80e8473ac9617b74967d7c84709f5b00d
2014-07-17 17:12:35 -07:00
Elliott Hughes
d377833de6
am 6bf42ddc
: Merge "Fix private/bionic_name_mem.h build breakage."
...
* commit '6bf42ddc7962dec56840eb370bfe7b0469a4efb1':
Fix private/bionic_name_mem.h build breakage.
2014-07-17 22:16:45 +00:00
Elliott Hughes
6bf42ddc79
Merge "Fix private/bionic_name_mem.h build breakage."
2014-07-17 21:58:34 +00:00
Elliott Hughes
2f9c6e38b8
Fix private/bionic_name_mem.h build breakage.
...
Change-Id: I8fe9c63dbbb5911721ca56791c0bff4bdf403314
2014-07-17 15:09:17 -07:00
Elliott Hughes
fdd6414093
am 169e2bf6
: Merge "Remove non-standard prctl constants from <sys/prctl.h>."
...
* commit '169e2bf6bd092ea3599cfe3426766988ec66658a':
Remove non-standard prctl constants from <sys/prctl.h>.
2014-07-17 21:54:26 +00:00
Elliott Hughes
169e2bf6bd
Merge "Remove non-standard prctl constants from <sys/prctl.h>."
2014-07-17 17:59:29 +00:00
Elliott Hughes
d7453860a6
Remove non-standard prctl constants from <sys/prctl.h>.
...
Also remove __bionic_name_mem which has exactly one caller, and is only
ever expected to be used in this one place.
Change-Id: I833744f91e887639f5b2d1269f966ee9032af207
2014-07-17 14:26:33 -07:00
Elliott Hughes
9633cc3ee9
am 9a7fdb2d
: ptrace(3) should be varargs.
...
* commit '9a7fdb2dae8f0ae0f9c5b0596bb2710f782925aa':
ptrace(3) should be varargs.
2014-07-17 17:01:54 +00:00
Elliott Hughes
2492a8e364
am 3002131d
: Use VDSO for clock_gettime(2) and gettimeofday(2).
...
* commit '3002131da33401cf1b45abbdbec58b7c751fc43a':
Use VDSO for clock_gettime(2) and gettimeofday(2).
2014-07-17 17:01:12 +00:00
Hans Boehm
ec76a21f27
am 43363ab7
: Merge "Define atomic_charN_t only if charN_t is supported."
...
* commit '43363ab7202a935e12cf6a38d32a48433bdc3705':
Define atomic_charN_t only if charN_t is supported.
2014-07-17 12:59:40 +00:00
Elliott Hughes
51b9d5bad9
am 94f84d36
: Merge "ptrace(3) should be varargs."
...
* commit '94f84d36a9f16030546a667bab6c66a59e41e4bd':
ptrace(3) should be varargs.
2014-07-16 23:49:52 +00:00
Hans Boehm
43363ab720
Merge "Define atomic_charN_t only if charN_t is supported."
2014-07-16 23:31:38 +00:00
Hans Boehm
8b002362d9
Define atomic_charN_t only if charN_t is supported.
...
Some platform code is apparently compiled with switches that do
not support char16_t and char32_t. This caused stdatomic.h to fail
to compile. This CL makes stdatomic.h usable in those environments.
Change-Id: Ie5a17f20b8b545c97128d00605b4eabd2a6bfe3e
2014-07-16 17:31:05 -07:00
Elliott Hughes
94f84d36a9
Merge "ptrace(3) should be varargs."
2014-07-16 21:56:17 +00:00
Elliott Hughes
98b088dce7
ptrace(3) should be varargs.
...
Bug: 16352070
Change-Id: Ied72e6e79eaf912fc93fc49ae7637af321a31a59
2014-07-16 16:07:10 -07:00
Elliott Hughes
379b1580dc
am f13aa6fc
: Merge "Use VDSO for clock_gettime(2) and gettimeofday(2)."
...
* commit 'f13aa6fc5b66d1c98b7fd4b43e20515033707e56':
Use VDSO for clock_gettime(2) and gettimeofday(2).
2014-07-16 21:44:46 +00:00
Elliott Hughes
f13aa6fc5b
Merge "Use VDSO for clock_gettime(2) and gettimeofday(2)."
2014-07-16 19:02:19 +00:00
Elliott Hughes
625993dfbb
Use VDSO for clock_gettime(2) and gettimeofday(2).
...
Bug: 15387103
Change-Id: Ifc3608ea65060c1dc38120b10b6e79874f182a36
2014-07-16 14:27:43 -07:00
Dan Albert
6526098e71
am a4465058
: Merge "Remove isascii_l(3)." into lmp-dev
...
* commit 'a446505874ba52eb6ddb893c0d9c9321a73b235d':
Remove isascii_l(3).
2014-07-16 16:04:09 +00:00
Elliott Hughes
775056ff71
am 97ba2a5c
: Regenerate the syscalls list after the uapi update.
...
* commit '97ba2a5cc4cf098938bb0a2c19ff01eb57c5536c':
Regenerate the syscalls list after the uapi update.
2014-07-16 03:04:25 +00:00
Christopher Ferris
04e7056d06
am 770d0f61
: Merge "Make sure not to construct illegal property names."
...
* commit '770d0f6177ca1ad242b509151fb612f07ef8a07b':
Make sure not to construct illegal property names.
2014-07-16 02:56:23 +00:00
Christopher Ferris
f64411e7a8
am 64035c4a
: Merge "Add gen syscalls step to instructions."
...
* commit '64035c4a4b52ce87398e3a5945ad6b755c8f35b1':
Add gen syscalls step to instructions.
2014-07-16 02:56:22 +00:00
Elliott Hughes
99c8508a6e
am 52023cb7
: Merge "Regenerate the syscalls list after the uapi update."
...
* commit '52023cb725ade3a4ace8631af8d6df5b47dc4def':
Regenerate the syscalls list after the uapi update.
2014-07-16 02:56:22 +00:00
Christopher Ferris
76dd4a7911
am 51c914b7
: Merge "Fix BIONIC_ROUND_UP_POWER_OF_2 for 64 bit."
...
* commit '51c914b7fd0994f09ef11e9038f2b1df4b909358':
Fix BIONIC_ROUND_UP_POWER_OF_2 for 64 bit.
2014-07-16 02:56:21 +00:00
Christopher Ferris
cdf48775d4
am 73c963e4
: Fix BIONIC_ROUND_UP_POWER_OF_2 for 64 bit.
...
* commit '73c963e4c5bf111df3abe9ad7eac98a918b88bb3':
Fix BIONIC_ROUND_UP_POWER_OF_2 for 64 bit.
2014-07-15 21:46:28 +00:00
Christopher Ferris
770d0f6177
Merge "Make sure not to construct illegal property names."
2014-07-15 20:47:30 +00:00
Christopher Ferris
53531ccebb
Make sure not to construct illegal property names.
...
Change-Id: I37624e69aec51efd4291f076fb87af3f35d33025
2014-07-15 19:26:28 -07:00
Christopher Ferris
64035c4a4b
Merge "Add gen syscalls step to instructions."
2014-07-15 20:47:30 +00:00
Christopher Ferris
ea271fdf26
Add gen syscalls step to instructions.
...
Also, fix incorrect path to some tools.
Change-Id: I409fc02d7077f0d2811d90be19550e70f5d73c0e
2014-07-15 19:02:33 -07:00
Elliott Hughes
52023cb725
Merge "Regenerate the syscalls list after the uapi update."
2014-07-15 20:36:09 +00:00
Elliott Hughes
3fa60e10bc
Regenerate the syscalls list after the uapi update.
...
Change-Id: I117c5b18f735376dd3ab5061018dc7db9c046202
2014-07-15 18:39:27 -07:00
Elliott Hughes
c80cb8e3ca
am ca276c40
: Fix visibility for a bunch more symbols.
...
* commit 'ca276c40dfdb80ef553c6646da7f984ef7b694ce':
Fix visibility for a bunch more symbols.
2014-07-15 02:31:51 +00:00
Christopher Ferris
51c914b7fd
Merge "Fix BIONIC_ROUND_UP_POWER_OF_2 for 64 bit."
2014-07-15 00:42:07 +00:00
Christopher Ferris
27047faf28
Fix BIONIC_ROUND_UP_POWER_OF_2 for 64 bit.
...
There were two bugs here:
- For 64 bit values, this did not properly round up.
- The macro rounded to the power of 2 less than value, not to the power
of 2 greater than value.
Change-Id: If8cb41536a9d2f5c1bc213676f1e67a7903a36b0
2014-07-15 12:33:48 -07:00
Dan Albert
84491f5b06
am 5656a0c4
: Merge "Remove isascii_l(3)."
...
* commit '5656a0c4943a9b14baa4fc135980f91591723156':
Remove isascii_l(3).
2014-07-15 00:31:07 +00:00
Elliott Hughes
1d31b55443
am ee3608f9
: Merge "Fix visibility for a bunch more symbols."
...
* commit 'ee3608f9d3259a0ef22a27932a3f5149fb2763c8':
Fix visibility for a bunch more symbols.
2014-07-14 23:15:15 +00:00
Dan Albert
5656a0c494
Merge "Remove isascii_l(3)."
2014-07-14 23:04:02 +00:00
Dan Albert
e612add051
Remove isascii_l(3).
...
Had intended to remove this one before submitting the locale changes,
but forgot. It isn't a standard ctype function, so we don't need it.
Change-Id: Ie9c09fa6c61b1101b5992fa06da30e373a0c6bf7
2014-07-14 15:48:02 -07:00
Elliott Hughes
07198cbf16
am 99ae0983
: Implement rand/srand in terms of random/srandom.
...
* commit '99ae0983c0fd22e34e4d2aa61942b04e347447ee':
Implement rand/srand in terms of random/srandom.
2014-07-14 22:24:33 +00:00
Elliott Hughes
0a79e2798e
am caaf71eb
: Sync upstream-openbsd.
...
* commit 'caaf71ebb358f811fe7602bbadb90b897e93eaf7':
Sync upstream-openbsd.
2014-07-14 22:24:32 +00:00
Dmitriy Ivanov
db3b29958d
resolved conflicts for merge of 38778e3b
to lmp-dev-plus-aosp
...
Change-Id: I138f093f20570079af13aee6dc54202e214a56a4
2014-07-14 15:20:59 -07:00
Elliott Hughes
ac56fc8663
am 673bff01
: Merge "Implement rand/srand in terms of random/srandom."
...
* commit '673bff01aed0c08991b98841ed0bfad78a589672':
Implement rand/srand in terms of random/srandom.
2014-07-14 19:28:49 +00:00
Brian Carlstrom
6835f5864d
Merge branch 'lmp-dev-plus-aosp' of https://googleplex-android.googlesource.com/_direct/platform/bionic into lmp-dev-plus-aosp
2014-07-14 19:23:02 +00:00
Elliott Hughes
6d3032891a
am 4ae93869
: Merge "Sync upstream-openbsd."
...
* commit '4ae938698c89e9e3c79008d9a833db726779accd':
Sync upstream-openbsd.
2014-07-14 19:21:32 +00:00
Dmitriy Ivanov
7ba7686b46
am 91f2074e
: Merge "Upstream atexit"
...
* commit '91f2074e5f4e475d7c88d9cdaeb7dcdc9d9ff882':
Upstream atexit
2014-07-14 19:21:31 +00:00
Elliott Hughes
49e34298e6
am 3b318a5b
: am e2b177a5
: am 83ce99d8
: Merge "Define SIOCKILLADDR which isn\'t in the common kernel uapi headers."
...
* commit '3b318a5b3da4afde3c6f35cab260e93d0adf7a5e':
2014-07-14 19:10:08 +00:00
Elliott Hughes
646e7eb4bd
am f6968e3c
: Define SIOCKILLADDR which isn\'t in the common kernel uapi headers.
...
* commit 'f6968e3c0822b27e9aa584c3490573f34b1725c1':
Define SIOCKILLADDR which isn't in the common kernel uapi headers.
2014-07-14 19:10:07 +00:00
Elliott Hughes
5ddb411c17
am bae7c206
: am b962ab81
: am 57a5b338
: Merge "Define three prctl constants that went missing from uapi."
...
* commit 'bae7c2067256272a0ce0a0eb4d24cc2d6a091735':
2014-07-14 19:10:06 +00:00
Elliott Hughes
29ba6754e5
am f65d552b
: am 0594b9dd
: am b8e82b5e
: Merge "EM_ARM and EM_AARCH64 are now in the uapi header."
...
* commit 'f65d552b3de50fd9124f9704eda3e04d02c25a32':
2014-07-14 19:10:06 +00:00
Christopher Ferris
8edb50a7ce
am 8832cfb2
: am efdf7862
: am 385bb1ed
: Merge "Add optimized memchr implementation from newlib"
...
* commit '8832cfb2fea643ccf0378e2864ba25d773cad408':
2014-07-14 19:10:05 +00:00
Christopher Ferris
99ad4f9028
am d92a6d06
: am 55230dd0
: am 96502e27
: Merge "Make jemalloc the default choice."
...
* commit 'd92a6d06690b63f70126ab55b6909cfae78a20c6':
2014-07-14 19:10:04 +00:00
Christopher Ferris
f0fe22cd13
am d389809d
: am 18a25078
: am c6bc0017
: Merge "Update kernel headers to v3.14."
...
* commit 'd389809de7d4cccaa54a2ef468c47a6592015afa':
2014-07-14 19:10:04 +00:00
Elliott Hughes
1edd97580f
am 9c98443e
: am ce1422b9
: am 040e1187
: Merge "Enable building libc with clang."
...
* commit '9c98443e2bd2991a41dab118df19ab8cd676ab6b':
2014-07-14 19:10:03 +00:00
Dan Albert
42eed01a1f
am 405fd491
: am c0afc23e
: am 37f09d6d
: Merge "Revert "Revert "Add locale aware APIs."""
...
* commit '405fd491bc71e01dbb0616cff35d508f65803eb6':
2014-07-14 19:10:02 +00:00
Elliott Hughes
a7d2f57d61
am 210a8423
: am d19f2d85
: am 76df69d1
: Merge "The err family allow null format strings."
...
* commit '210a842354d4a840cab29da6e11aea83a52a6e8c':
2014-07-14 19:10:01 +00:00
Elliott Hughes
bad533b465
am d54994a4
: am 696c48df
: am eba7c15b
: Merge "Revert "Switch libm to building with clang.""
...
* commit 'd54994a45f1be37cdd7d3ff184027dd57f416703':
2014-07-14 19:10:00 +00:00
Elliott Hughes
84ae9f673b
am 2545bf7b
: am 37ab54fd
: am 5df23dc8
: Merge "Switch libm to building with clang."
...
* commit '2545bf7b411de74e3aede8e4d38d9f44bcef7948':
2014-07-14 19:10:00 +00:00
Elliott Hughes
387d52ea4b
am 3ea96e7b
: am 35805377
: am 9b491470
: Merge "Slim down static binaries by avoiding stdio."
...
* commit '3ea96e7b86fa00ed67c24ea742a6b87ae86df826':
2014-07-14 19:09:59 +00:00
Elliott Hughes
32a93da106
am a9e847fd
: am 7d9f1cc5
: am f0f8cd1f
: Merge "Remove the global lock around thread stack creation."
...
* commit 'a9e847fdea2821841cfa511d32d86e6298616ee9':
2014-07-14 19:09:59 +00:00
Elliott Hughes
e6153565ad
am b2ddd728
: am 12ce9115
: am cd23370c
: Merge "Remove the obsolete _thread_created_hook."
...
* commit 'b2ddd728c353028bdfa6c2d09c9fa8651876a7bb':
2014-07-14 19:09:58 +00:00
Calin Juravle
8ebfc51ee2
am 9899217a
: am 9712d913
: am 02459d34
: Merge "Move __cmsg_nxthdr to its proper file."
...
* commit '9899217adbb72f1eadd32ca4319bf1962492935d':
2014-07-14 19:09:58 +00:00
Calin Juravle
cd1093fab5
am b89ef57d
: am cd061f6e
: am 8a71a745
: Merge "Removed obsolete symbol cmsg_nxthdr."
...
* commit 'b89ef57d092f4326195ce7ec8521c1f78cfd7c71':
2014-07-14 19:09:57 +00:00
Christopher Ferris
d0e94fa58d
am a35ae1bc
: am 4306b0f8
: am 25fba981
: Merge "Do not include libc_common in malloc debug code."
...
* commit 'a35ae1bcaa6a902aa0c434e00948bce4a9ce5113':
2014-07-14 19:09:56 +00:00
Elliott Hughes
699cecdd2e
am 4c28373d
: am 96d7251c
: am d028b620
: Merge "Added a __system_property_serial benchmark."
...
* commit '4c28373da6e90d3f4cfd70c2ade6a9181bbbde39':
2014-07-14 19:09:55 +00:00
Elliott Hughes
fffca5a9f7
am 4f459ec6
: am 1cad0226
: am 84f0c7c2
: Merge "update-tzdata.py needs to know where to find icu."
...
* commit '4f459ec6bd00a0b269ba5f889c3c7fb32cade14f':
2014-07-14 19:09:54 +00:00
Dan Albert
2f96faadec
am d0a7157c
: am ea04b5a6
: am 7a85d9a1
: Merge "Revert "Add locale aware APIs.""
...
* commit 'd0a7157c974b3d33a7c0d6a2fc514f006737cbf9':
2014-07-14 19:09:54 +00:00
Dan Albert
12810d6d61
am 1e46158e
: am f6b95993
: am 430d5f93
: Merge "Add locale aware APIs."
...
* commit '1e46158e64f2b90be1ea7fdc569472be297d151c':
2014-07-14 19:09:53 +00:00
Elliott Hughes
df17c1f20b
am 67ee7b9d
: am 94560b5b
: am 4c199170
: Merge "Added __system_propery_read benchmark."
...
* commit '67ee7b9d985255db87c6b7b046d06079baa63148':
2014-07-14 19:09:53 +00:00
Elliott Hughes
26734a7dd7
am c346c606
: am 8d11fb18
: am 3139f6fd
: Merge "Remove __CTOR_LIST__ from mips/mips64."
...
* commit 'c346c606e95d5ec724ea5efc1124ff348ad86025':
2014-07-14 19:09:52 +00:00
Elliott Hughes
602492a682
am 53641001
: am 986fb565
: am c4c67893
: Merge "Don\'t zero r1 on entry to the dynamic linker."
...
* commit '536410018a4966333350b330030791b546785296':
2014-07-14 19:09:51 +00:00
Ying Wang
af47a46d38
am 4fae7675
: am 6ee2f321
: am 6cdd0cfd
: Merge "TARGET_OUT_DATA_NATIVE_TESTS now points to /nativetest64 in 64-bit target"
...
* commit '4fae7675103463a8322a04da707ba1f2d90ca9bb':
2014-07-14 19:09:50 +00:00
Dmitriy Ivanov
3dd6e3d880
am e245060c
: am ab164750
: am 3c12ae56
: Merge "Add test for constructor function."
...
* commit 'e245060c6d1d0ed4a45909b50fe6bd04de068aa3':
2014-07-14 19:09:50 +00:00
Dmitriy Ivanov
065abed9a5
am 30e596e9
: am ca673e73
: am b9c5d606
: am 006e0770
: Merge "Change android_dlextinfo flags to uint64_t"
...
* commit '30e596e9ead5bd7cfd9599b0e3d5e8bd4f6c1353':
2014-07-14 19:09:49 +00:00
Elliott Hughes
0ec257dc20
am a3eead96
: am 7e43f0d4
: resolved conflicts for merge of aedc14b1
to lmp-dev
...
* commit 'a3eead96b9f1000d403541dad0f086c3b175900a':
2014-07-14 19:09:48 +00:00
Calin Juravle
37eca3d325
am 3b0f3112
: am f11e7c74
: am 02459d34
: Merge "Move __cmsg_nxthdr to its proper file."
...
* commit '3b0f3112d0fed5cf30e2ad3fc6500810b760b35d':
2014-07-14 19:09:48 +00:00
Calin Juravle
b94d029403
am e8ce76c2
: am 1d63dd90
: am 8a71a745
: Merge "Removed obsolete symbol cmsg_nxthdr."
...
* commit 'e8ce76c26e0bae90b50ece7f8fa3d3f2fefc2476':
2014-07-14 19:09:47 +00:00
Christopher Ferris
c743b18961
am 0f8d5a06
: am c04e73a6
: am 25fba981
: Merge "Do not include libc_common in malloc debug code."
...
* commit '0f8d5a0664f6b21e4ebde63aa76ee2518bae9114':
2014-07-14 19:09:46 +00:00
Elliott Hughes
5252514d65
am 05916dda
: am cf53885b
: am d028b620
: Merge "Added a __system_property_serial benchmark."
...
* commit '05916dda8a9a48ce491ea33b9d196741125fe957':
2014-07-14 19:09:45 +00:00
Elliott Hughes
e4a1004d87
am 42775b51
: am feccec68
: am 84f0c7c2
: Merge "update-tzdata.py needs to know where to find icu."
...
* commit '42775b512fa6f39a93c130513f1c44cebfdb9c8c':
2014-07-14 19:09:45 +00:00
Dan Albert
5b41373d49
am 293006c9
: am 418fdef2
: am 7a85d9a1
: Merge "Revert "Add locale aware APIs.""
...
* commit '293006c91b22105419e446268dee3b9b6d6e7dac':
2014-07-14 19:09:44 +00:00
Dan Albert
a0ce997e1b
am 16dd7fd5
: am 43e79dab
: am 430d5f93
: Merge "Add locale aware APIs."
...
* commit '16dd7fd5d293ad1fa5d812743cbbbddad20055ae':
2014-07-14 19:09:43 +00:00
Elliott Hughes
6c804ab1ea
am e2bcc8bb
: am 748d8708
: am 4c199170
: Merge "Added __system_propery_read benchmark."
...
* commit 'e2bcc8bbe5b426e627395e88bb1748a3f33ccd98':
2014-07-14 19:09:43 +00:00
Elliott Hughes
7ad8adbe51
am 48ad92a4
: am 742fce7b
: am 3139f6fd
: Merge "Remove __CTOR_LIST__ from mips/mips64."
...
* commit '48ad92a4b1e3d7a3611eba3bc067989a138802b4':
2014-07-14 19:09:42 +00:00
Elliott Hughes
f7fe077902
am dc0b68e5
: am b9d95b5d
: am c4c67893
: Merge "Don\'t zero r1 on entry to the dynamic linker."
...
* commit 'dc0b68e5ee7f730adf2864c9c16a38b7ab8c8432':
2014-07-14 19:09:42 +00:00
Ying Wang
de78c2c451
am 76171b2d
: am 02406f68
: am 6cdd0cfd
: Merge "TARGET_OUT_DATA_NATIVE_TESTS now points to /nativetest64 in 64-bit target"
...
* commit '76171b2d583ee21c1292f402f109e800120f9907':
2014-07-14 19:09:41 +00:00
Dmitriy Ivanov
994faff209
am 4e37e7b1
: am b9247ada
: am 3c12ae56
: Merge "Add test for constructor function."
...
* commit '4e37e7b1e89c3c9f734a3593838b6ba9b0e0e855':
2014-07-14 19:09:40 +00:00
Dmitriy Ivanov
49b590136a
am 4c632335
: am b9c5d606
: am 006e0770
: Merge "Change android_dlextinfo flags to uint64_t"
...
* commit '4c632335112a9cedee8bb09be7ca56b132ef21ee':
2014-07-14 19:09:40 +00:00
Elliott Hughes
f40424d38f
am ddf9066e
: resolved conflicts for merge of aedc14b1
to master
...
* commit 'ddf9066e2e850a1e0dc936a731994ec831581807':
2014-07-14 19:09:39 +00:00
Elliott Hughes
673bff01ae
Merge "Implement rand/srand in terms of random/srandom."
2014-07-14 17:20:33 +00:00
Elliott Hughes
76c241b091
Implement rand/srand in terms of random/srandom.
...
Code developed for glibc or older versions of bionic might expect more
randomness than the BSD implementation provides.
Bug: 15829381
Change-Id: Ia5a908a816e0a5f0639f514107a6384a51ec157e
2014-07-14 12:02:22 -07:00
Dmitriy Ivanov
91f2074e5f
Merge "Upstream atexit"
2014-07-14 17:20:33 +00:00
Dmitriy Ivanov
53c3c271dc
Upstream atexit
...
Change-Id: Ia454a2181b5058ed9783dc02b6b1805d0e4d2715
2014-07-14 12:05:16 -07:00
Elliott Hughes
4ae938698c
Merge "Sync upstream-openbsd."
2014-07-14 17:15:23 +00:00
Elliott Hughes
4f0b67a8db
Sync upstream-openbsd.
...
Change-Id: I5b9961a57e2ff05f63bd218c130bf8347850b9be
2014-07-14 11:22:59 -07:00
Elliott Hughes
ee3608f9d3
Merge "Fix visibility for a bunch more symbols."
2014-07-14 17:01:21 +00:00
Elliott Hughes
a167eef548
Fix visibility for a bunch more symbols.
...
Bug: 11156955
Bug: 15291317
Change-Id: I664f25cce7c17085a101d6593d8e01525a1f6a90
2014-07-14 15:13:30 -07:00