Elliott Hughes
c9bee10805
am 4955cde2
: Merge "Add a regression test for a fixed strnlen bug."
...
* commit '4955cde2c55d4860f12039a96d14fc756b1308a3':
Add a regression test for a fixed strnlen bug.
2015-07-28 15:30:24 +00:00
Elliott Hughes
4955cde2c5
Merge "Add a regression test for a fixed strnlen bug."
2015-07-28 14:55:50 +00:00
Elliott Hughes
d2a9fb3267
Add a regression test for a fixed strnlen bug.
...
Bug: https://code.google.com/p/android/issues/detail?id=74741
Change-Id: I78b0114bdbe8e680b0e938af608a634e73c86eda
2015-07-27 20:55:03 -07:00
Chih-hung Hsieh
c11758f2c9
am cebef1a7
: Merge "Add one simple thread local storage test."
...
* commit 'cebef1a7812fe3552f12dd7e885a1f879a9946ed':
Add one simple thread local storage test.
2015-07-28 02:01:16 +00:00
Chih-hung Hsieh
cebef1a781
Merge "Add one simple thread local storage test."
2015-07-28 01:33:01 +00:00
Chih-Hung Hsieh
7656d0cec0
Add one simple thread local storage test.
...
This test should pass with gcc and fail with clang,
until clang/llvm supports emutls or Android linker supports
ELF TLS models.
BUG: 21082792
Change-Id: Id8c97da52c68ec230c7d26af703f6ed32d53a4fe
2015-07-27 17:20:19 -07:00
Christopher Ferris
e1f1a6353a
am e8ceb95c
: Merge "Remove pushes from memsets (krait/cortex-a9)."
...
* commit 'e8ceb95c680eacc3b5d16644a48a28b45f421e2f':
Remove pushes from memsets (krait/cortex-a9).
2015-07-28 00:17:16 +00:00
Yabin Cui
0e63c39cca
am 8af32633
: Merge "add fortified implementations of fread/fwrite"
...
* commit '8af32633498184e58e6f8d5d75b9f9cdbef5b6be':
add fortified implementations of fread/fwrite
2015-07-28 00:17:08 +00:00
Christopher Ferris
e8ceb95c68
Merge "Remove pushes from memsets (krait/cortex-a9)."
2015-07-27 23:09:32 +00:00
Yabin Cui
8af3263349
Merge "add fortified implementations of fread/fwrite"
2015-07-27 22:46:29 +00:00
Elliott Hughes
d79de83bfc
am f16c6e17
: Merge "Restore protection flags for ifunc during relocs."
...
* commit 'f16c6e17b22c278320d0e662d1f1e1213f8fbc71':
Restore protection flags for ifunc during relocs.
2015-07-27 22:01:48 +00:00
Dmitriy Ivanov
ab6ca484bd
am de0fb393
: Restore protection flags for ifunc during relocs.
...
* commit 'de0fb393ae8136a5958fe17eee0c6285e2f7f91a':
Restore protection flags for ifunc during relocs.
2015-07-27 21:39:11 +00:00
Elliott Hughes
f16c6e17b2
Merge "Restore protection flags for ifunc during relocs."
2015-07-27 21:34:53 +00:00
Christopher Ferris
8264cbba7e
Remove pushes from memsets (krait/cortex-a9).
...
On the path that only uses r0 in both the krait and cortex-a9
memset, remove the push and use r3 instead.
In addition, for cortex-a9, remove the artificial function since
it's not needed since dwarf unwinding is now supported on arm.
Change-Id: Ia4ed1cc435b03627a7193215e76c8ea3335f949a
2015-07-27 14:07:37 -07:00
Elliott Hughes
fd3cd1cc2a
am bff19682
: Merge "name the atexit handler pages"
...
* commit 'bff196822230b5a8b1f5bafeed88ded821d390a9':
name the atexit handler pages
2015-07-27 18:32:37 +00:00
Elliott Hughes
bff1968222
Merge "name the atexit handler pages"
2015-07-27 18:06:35 +00:00
Daniel Micay
f0a73476a1
name the atexit handler pages
...
Change-Id: I1718ddee7415a673b5818bc1455b8d90f1e8f9c6
2015-07-27 11:04:58 -07:00
Dmitriy Ivanov
ec83a61c8b
Restore protection flags for ifunc during relocs.
...
IFUNC relocations require executable flag for the load
segment containing .text. When dso has text relocs linker
removes exec which causes crash during ifunc relocations.
This patch fixes this problem by restoring segments protection
for ifunc relocs.
Bug: http://b/22611399
Change-Id: Icbf3be0fec0e42bf805bcad7533e2032a2e11b9c
(cherry picked from commit de0fb393ae
)
2015-07-26 08:23:01 -07:00
Dmitriy Ivanov
de0fb393ae
Restore protection flags for ifunc during relocs.
...
IFUNC relocations require executable flag for the load
segment containing .text. When dso has text relocs linker
removes exec which causes crash during ifunc relocations.
This patch fixes this problem by restoring segments protection
for ifunc relocs.
Bug: http://b/22611399
Change-Id: Icbf3be0fec0e42bf805bcad7533e2032a2e11b9c
2015-07-26 07:37:09 -07:00
Elliott Hughes
7835c65ca7
am adc5795f
: Merge "Use AT_PAGESZ for sysconf(_SC_PAGE_SIZE)."
...
* commit 'adc5795fb7b674e6d40d1f190c675607c1379343':
Use AT_PAGESZ for sysconf(_SC_PAGE_SIZE).
2015-07-25 18:58:57 +00:00
Elliott Hughes
adc5795fb7
Merge "Use AT_PAGESZ for sysconf(_SC_PAGE_SIZE)."
2015-07-25 18:32:46 +00:00
Elliott Hughes
189394b885
Use AT_PAGESZ for sysconf(_SC_PAGE_SIZE).
...
Bug: http://b/18342333
Change-Id: Id12ed4e85a0f35d7d27202f7792df42a65a74b4e
2015-07-24 23:22:07 -07:00
Christopher Ferris
dd3eb0862e
am a3a61983
: Merge "Make all labels local."
...
* commit 'a3a619835d302f5414883e2307ca48406b15a4a5':
Make all labels local.
2015-07-24 01:17:28 +00:00
Christopher Ferris
a3a619835d
Merge "Make all labels local."
2015-07-24 00:47:06 +00:00
Daniel Micay
fed2659869
add fortified implementations of fread/fwrite
...
A __size_mul_overflow utility is used to take advantage of the checked
overflow intrinsics in Clang and GCC (>= 5). The fallback for older
compilers is the optimized but less than ideal overflow checking pattern
used in OpenBSD.
Change-Id: Ibb0d4fd9b5acb67983e6a9f46844c2fd444f7e69
2015-07-23 18:55:46 -04:00
Yabin Cui
0bfe75bc31
am b8320b80
: Don\'t abort when failed to write tracing message.
...
* commit 'b8320b8021856ae61b3012b82c2ae96df97e3ec4':
Don't abort when failed to write tracing message.
2015-07-23 22:42:23 +00:00
Yabin Cui
b8320b8021
Don't abort when failed to write tracing message.
...
Also make the code thread-safe with lock.
Bug: 20666100
Change-Id: I0f331a617b75280f36179c187418450230d713ef
(cherry picked from commit 1661125315
)
2015-07-23 12:24:42 -07:00
Christopher Ferris
795a8e3d69
Make all labels local.
...
Change the non-local labels to .L labels.
Change-Id: I720e894f2e311af8f4a0970303d8b86575fb69a5
2015-07-23 12:12:55 -07:00
Yabin Cui
b9da7c151d
am 9e1c862c
: Merge "Don\'t abort when failed to write tracing message."
...
* commit '9e1c862cb649f054aaa1c2141409387bf3d5f3eb':
Don't abort when failed to write tracing message.
2015-07-23 18:53:37 +00:00
Yabin Cui
9e1c862cb6
Merge "Don't abort when failed to write tracing message."
2015-07-23 17:20:30 +00:00
Yabin Cui
c0c9704e11
am 2565492d
: Merge "Add getgrgid_r/getgrnam_r."
...
* commit '2565492db0d67b95348cd1c3026ed338ca59aa37':
Add getgrgid_r/getgrnam_r.
2015-07-23 02:06:56 +00:00
Elliott Hughes
da24f8af38
am 3b49d61a
: Merge "libc: arch-x86: implement kernel vdso time functions"
...
* commit '3b49d61ac2f7a02d5e7f25a24836b060f922f079':
libc: arch-x86: implement kernel vdso time functions
2015-07-23 02:06:55 +00:00
Ying Wang
9c4f35229d
am 86ac443c
: Merge "We don\'t have CXX_BARE any more"
...
* commit '86ac443cd1df83bbef4a18046714e067a9d13247':
We don't have CXX_BARE any more
2015-07-23 02:06:19 +00:00
Elliott Hughes
2329b7218e
am bc0b8ff2
: Merge "Use a less misleading name for the code that sets up the main thread."
...
* commit 'bc0b8ff2fbfb38f73114aef7df8e302025245441':
Use a less misleading name for the code that sets up the main thread.
2015-07-23 02:06:17 +00:00
Yabin Cui
1661125315
Don't abort when failed to write tracing message.
...
Also make the code thread-safe with lock.
Bug: 20666100
Change-Id: I0f331a617b75280f36179c187418450230d713ef
2015-07-22 18:24:53 -07:00
Dan Albert
8cc83e5c66
am 7e52dbe4
: Merge "Revert "Stop libc from cross-referencing unwind symbols"" into mnc-dev
...
* commit '7e52dbe4d24daf61a8bd4bbbd0761c55468c3c7e':
Revert "Stop libc from cross-referencing unwind symbols"
2015-07-22 20:17:30 +00:00
Yabin Cui
2565492db0
Merge "Add getgrgid_r/getgrnam_r."
2015-07-22 03:22:26 +00:00
Yabin Cui
c4786d366b
Add getgrgid_r/getgrnam_r.
...
Bug: 22568551
Change-Id: I3c0772d119d6041063c6be53f5bcc5ea1768f0d5
2015-07-21 19:33:34 -07:00
Elliott Hughes
3b49d61ac2
Merge "libc: arch-x86: implement kernel vdso time functions"
2015-07-22 01:51:00 +00:00
Robert Jarzmik
10726d52ac
libc: arch-x86: implement kernel vdso time functions
...
This patch give the possibility of time vdso support on 32bit kernel.
If the 32bit x86 kernel provides gettimeofday() and clock_gettime()
primitives in vdso. In this case make bionic use them. If the kernel
doesn't provide them, fallback to the legacy system call versions.
Change-Id: I87b772a9486fa356903e1f98f486ab9eb0b6f6f7
Signed-off-by: Robert Jarzmik <robert.jarzmik@intel.com>
Signed-off-by: Mingwei Shi <mingwei.shi@intel.com>
2015-07-22 01:31:38 +00:00
Dan Albert
7e52dbe4d2
Merge "Revert "Stop libc from cross-referencing unwind symbols"" into mnc-dev
2015-07-21 23:09:35 +00:00
Ying Wang
86ac443cd1
Merge "We don't have CXX_BARE any more"
2015-07-21 21:10:23 +00:00
Ying Wang
361d4b4c87
We don't have CXX_BARE any more
...
Now we have split CXX_WRAPPER from TARGET_CXX and CXX_BARE isn't needed
any more.
Bug: 22612634
Change-Id: I52c78b0d1b325910e875a786d17f780731778b4b
(cherry-pick from commit 9d11a7087c
)
2015-07-21 14:08:42 -07:00
Ying Wang
40e2b72fb3
am e39b279b
: Merge "We don\'t have CXX_BARE any more" into mnc-dev
...
* commit 'e39b279bb4971d0c3322214ea977275f1bc58c0b':
We don't have CXX_BARE any more
2015-07-21 21:01:46 +00:00
Ying Wang
e39b279bb4
Merge "We don't have CXX_BARE any more" into mnc-dev
2015-07-21 20:51:28 +00:00
Elliott Hughes
bc0b8ff2fb
Merge "Use a less misleading name for the code that sets up the main thread."
2015-07-21 20:28:17 +00:00
Christopher Ferris
953611bae0
am aa55e7ad
: Add support for non-zero vaddr in maps.
...
* commit 'aa55e7ad249e49025d0507f513a6c45f8491a4e5':
Add support for non-zero vaddr in maps.
2015-07-21 19:05:24 +00:00
Elliott Hughes
d29486343a
Use a less misleading name for the code that sets up the main thread.
...
Change-Id: I50c1b0a3b633cf8bc40a6bd86f12adb6b91e2888
2015-07-21 11:57:09 -07:00
Christopher Ferris
a41556d398
am c99fabb7
: Merge "Add support for non-zero vaddr in maps."
...
* commit 'c99fabb7a097e9aeed49ce03584cce113d086905':
Add support for non-zero vaddr in maps.
2015-07-21 18:26:13 +00:00
Elliott Hughes
ded555256d
am 3bcfd47c
: Merge "Revert "Revert "make vdso function pointers read-only at runtime"""
...
* commit '3bcfd47c6836a952b2093c64feb9f1e382891256':
Revert "Revert "make vdso function pointers read-only at runtime""
2015-07-21 18:25:35 +00:00