Elliott Hughes
7086ad6919
Cache getpid.
...
In practice, with this implementation we never need to make a system call.
We get the main thread's tid (which is the same as our pid) back from
the set_tid_address system call we have to make during initialization.
A new pthread will have the same pid as its parent, and a fork child's
main (and only) thread will have a pid equal to its tid, which we get for
free from the kernel before clone returns.
The only time we'd actually have to make a getpid system call now is if
we take a signal during fork and the signal handler calls getpid. (That,
or we call getpid in the dynamic linker while it's still dealing with its
own relocations and hasn't even set up the main thread yet.)
Bug: 15387103
Change-Id: I6d4718ed0a5c912fc75b5f738c49a023dbed5189
2014-06-20 09:06:57 -07:00
Elliott Hughes
8717020375
am e58055f0
: Merge "Expose tzname, daylight, and timezone."
...
* commit 'e58055f05dbbb22a9e308c4b628b93d858f57685':
Expose tzname, daylight, and timezone.
2014-06-19 23:17:15 +00:00
Elliott Hughes
9d963b406b
am d1bf3778
: Merge "Build tzcode with hidden visibility."
...
* commit 'd1bf37780d0bcaca3e6046171f958ebfea34bde1':
Build tzcode with hidden visibility.
2014-06-19 22:31:01 +00:00
Elliott Hughes
e58055f05d
Merge "Expose tzname, daylight, and timezone."
2014-06-19 22:08:31 +00:00
Elliott Hughes
06366724d5
Expose tzname, daylight, and timezone.
...
These were accidentally hidden.
Bug: 11156955
Change-Id: I380f00bdafa547aea13d4634f3de9ec6f0b50a6f
2014-06-19 16:08:03 -07:00
Elliott Hughes
abd03d348c
am 29e3a0e3
: Merge "Fix arm64 localtime.c build."
...
* commit '29e3a0e312b7a76b91adfd77a399a390ffaed11d':
Fix arm64 localtime.c build.
2014-06-19 21:31:49 +00:00
Elliott Hughes
ef0273e130
am 477b45b8
: Merge "Build tzcode with -Werror."
...
* commit '477b45b89d84c9efec95c49a76cacbc9b2d5104c':
Build tzcode with -Werror.
2014-06-19 21:22:31 +00:00
Elliott Hughes
d1bf37780d
Merge "Build tzcode with hidden visibility."
2014-06-19 20:38:20 +00:00
Elliott Hughes
d10db82619
Build tzcode with hidden visibility.
...
Bug: 11156955
Change-Id: Ib98d837b56cbbdfd01687cb3054fe3103eec0da9
2014-06-19 14:49:30 -07:00
Elliott Hughes
29e3a0e312
Merge "Fix arm64 localtime.c build."
2014-06-19 20:38:20 +00:00
Elliott Hughes
2cb752664b
Fix arm64 localtime.c build.
...
I'm sick of having so many different compilers.
Change-Id: I9088c38df2504e2b827d0ce5ba0fa551ae48f8f9
2014-06-19 14:19:24 -07:00
Elliott Hughes
442a0b1ca3
am 942fa486
: Merge "Update localtime.c."
...
* commit '942fa486f669da8bb5db724d5c4fdc93b4fb65d9':
Update localtime.c.
2014-06-19 18:12:17 +00:00
Christopher Ferris
fa817e64e9
am 5c864766
: Merge "add 64-bit bionic implementation for denver arch"
...
* commit '5c8647665c7fa84f50f75a18f7455c8f9c927c39':
add 64-bit bionic implementation for denver arch
2014-06-19 18:05:20 +00:00
Nick Kralevich
deca2451e0
am 8a7cffc8
: Merge "Reenable support for non-PIE executables"
...
* commit '8a7cffc85dc4664a8bd7c3c526bfa56b25126864':
Reenable support for non-PIE executables
2014-06-19 17:12:04 +00:00
Dan Albert
6eeb61767d
am 0df59bd3
: Merge "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64.""
...
* commit '0df59bd3a5aed6c90dbac80f2c85968af52730d6':
Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64."
2014-06-19 09:21:39 +00:00
Dan Albert
715242fd0f
Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64."
...
This reverts commit dd4ad5c463
.
Change-Id: If3c9771825e460ce68604082f4feb0ca783e56c6
2014-06-19 03:57:05 +00:00
Christopher Ferris
79cd486d54
am 0b09153c
: Merge "Move common macros into bionic_macros.h."
...
* commit '0b09153c12915c6d17434cf9fed2389f6fe4e713':
Move common macros into bionic_macros.h.
2014-06-18 22:58:29 +00:00
Dan Albert
0df59bd3a5
Merge "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64.""
2014-06-18 22:48:04 +00:00
Dan Albert
9fbcc435dc
am a5fe7b89
: Merge "Hide _tolower_tab_ and _toupper_tab_ on LP64."
...
* commit 'a5fe7b89528d8a03063a3579e971c901a2fc6f32':
Hide _tolower_tab_ and _toupper_tab_ on LP64.
2014-06-18 21:04:17 +00:00
Dan Albert
9ac8064554
am 49d5399b
: Merge "Hide __atexit and remove __atexit_invalid."
...
* commit '49d5399bbcfae80d8b21f2303077b24257a1b966':
Hide __atexit and remove __atexit_invalid.
2014-06-18 20:29:31 +00:00
Dan Albert
dd4ad5c463
Hide _tolower_tab_ and _toupper_tab_ on LP64.
...
We can't hide them on LP32 because they appeared in NDK headers.
Bug: 11156955
Change-Id: I22bf5a0f4d330c04b49565bc598cd0568128d4fc
2014-06-18 13:11:07 -07:00
Dan Albert
a5fe7b8952
Merge "Hide _tolower_tab_ and _toupper_tab_ on LP64."
2014-06-18 19:25:04 +00:00
Dmitriy Ivanov
6b8b3dd28a
am 64dfbd24
: Merge "Fix weak function lookups"
...
* commit '64dfbd242cddc3ef95576e27e3940d68b89b5fce':
Fix weak function lookups
2014-06-18 15:56:19 +00:00
Dan Albert
b29a7f1d29
am ef82c28d
: Merge "Hide declaration of gets(3) for C11 and later."
...
* commit 'ef82c28db63c6f333edb7e9d7e7ad1baa656343c':
Hide declaration of gets(3) for C11 and later.
2014-06-18 01:22:00 +00:00
Dan Albert
b86ffd8d82
am 1ef3ba2b
: Merge "Revert "Hide declaration of gets(3) for C11 and later.""
...
* commit '1ef3ba2b4fd2408cdd78828ec2930ce31ce8cee7':
Revert "Hide declaration of gets(3) for C11 and later."
2014-06-17 23:39:30 +00:00
Dan Albert
285a1c1348
am 185c399c
: Merge "Hide declaration of gets(3) for C11 and later."
...
* commit '185c399c581f867ad288737b5f824a1fda1f6aaf':
Hide declaration of gets(3) for C11 and later.
2014-06-17 23:30:18 +00:00
Dmitriy Ivanov
65806a842b
am 1d2b4c02
: Merge "Move libraries for unit-tests to separate folder"
...
* commit '1d2b4c022c419e1e85336fa44e644772eefb8b64':
Move libraries for unit-tests to separate folder
2014-06-17 23:25:55 +00:00
Dan Albert
ef82c28db6
Merge "Hide declaration of gets(3) for C11 and later."
2014-06-17 23:00:03 +00:00
Dan Albert
9635046e53
Hide declaration of gets(3) for C11 and later.
...
gets(3) was removed from C11.
This reverts commit 1291680c2a
.
Bug: 14500800
Change-Id: I5e5146bdbb80f2be818a17f287b112bab37d1f6d
2014-06-17 17:37:06 -07:00
Dmitriy Ivanov
1d2b4c022c
Merge "Move libraries for unit-tests to separate folder"
2014-06-17 23:00:03 +00:00
Elliott Hughes
c02f242d33
am b6ca7474
: Merge "Add a flag control that PRIVATE libm can be chosen"
...
* commit 'b6ca7474023f7832d4230756781031b7687517e6':
Add a flag control that PRIVATE libm can be chosen
2014-06-17 22:42:16 +00:00
Dmitriy Ivanov
1f5e1a3cbc
Move libraries for unit-tests to separate folder
...
Change-Id: I1653f3f2fd63ba25525369bc725c8f7438ecf021
2014-06-17 15:08:53 -07:00
Elliott Hughes
775b2a0d9c
am 4ac22649
: Merge "Add <linux/tty.h> to libc/include/sys/ioctl.h"
...
* commit '4ac22649441339d0a81e0fc6428ac7f1867ffe6f':
Add <linux/tty.h> to libc/include/sys/ioctl.h
2014-06-17 21:53:05 +00:00
Elliott Hughes
477b45b89d
Merge "Build tzcode with -Werror."
2014-06-17 21:42:00 +00:00
Elliott Hughes
5f564540a9
Build tzcode with -Werror.
...
Parts of this are just getting us in sync with upstream, but the
'const' stuff is our own mess. We should kill the *_tz functions
and lose this difference from upstream.
Change-Id: I17d26534ed3f54667143d78147a8c53be56d7b33
2014-06-19 13:54:10 -07:00
Elliott Hughes
942fa486f6
Merge "Update localtime.c."
2014-06-17 21:42:00 +00:00
Elliott Hughes
906eb9999b
Update localtime.c.
...
This brings us closer to upstream's ToT localtime.c; our main interest
being their alternative fix for the stack usage we addressed in commit
8a8b0c9bfc
.
Bug: 14468519
Change-Id: Ic28600115afda7f3158d91255edf422678bac082
2014-06-18 19:48:14 -07:00
Christopher Ferris
5c8647665c
Merge "add 64-bit bionic implementation for denver arch"
2014-06-17 21:42:00 +00:00
Nick Kralevich
8a7cffc85d
Merge "Reenable support for non-PIE executables"
2014-06-17 21:42:00 +00:00
Nick Kralevich
d81b3b275d
Reenable support for non-PIE executables
...
On Nakasi builds, /system/bin/tf_daemon is a pre-compiled
vendor supplied binary. When support for non-PIE executables
was removed, that daemon failed to start, which induced
a number of bugs.
* keystore is broken
* CTS runs will hang after a certain period of time
Temporarily reenable non-PIE support for 32-bit platforms
until Nakasi is fixed.
This rolls back the following commits:
Cleanup: updated comments
* 6275f20834
Cleanup: remove AARCH/ARM_COPY relocation support
* b906e13c55
And restricts the following patch to 64 bit only:
Remove support for non-PIE executables
* 2aebf5429b
Bug: 14566672
Bug: 15086752
Bug: 15732002
Change-Id: Ia2501aa14bd30feb4a6ce66bdb7c9f066dba0b5f
2014-06-19 09:09:54 -07:00
Christopher Ferris
0b09153c12
Merge "Move common macros into bionic_macros.h."
2014-06-17 21:42:00 +00:00
Christopher Ferris
03eebcb6e8
Move common macros into bionic_macros.h.
...
Bug: 15590152
Change-Id: I730636613ef3653f68c5ab1d43b53beaf8e0dc25
2014-06-18 14:23:46 -07:00
Dan Albert
49d5399bbc
Merge "Hide __atexit and remove __atexit_invalid."
2014-06-17 21:42:00 +00:00
Dan Albert
11f715c62e
Hide __atexit and remove __atexit_invalid.
...
Bug: 11156955
Change-Id: I8c72edee8ecb92b75a282384277253bae19f7455
2014-06-18 13:19:22 -07:00
Dmitriy Ivanov
64dfbd242c
Merge "Fix weak function lookups"
2014-06-17 21:07:34 +00:00
Dmitriy Ivanov
ce44166c73
Fix weak function lookups
...
* Linker now correctly resolves function defined
with __attribute__((weak)).
Bug: https://code.google.com/p/android/issues/detail?id=70206
Change-Id: I82efb905676c25fefb1b11a13f5fecb0f1384657
2014-06-17 16:18:18 -07:00
Dan Albert
1ef3ba2b4f
Merge "Revert "Hide declaration of gets(3) for C11 and later.""
2014-06-17 20:56:23 +00:00
Dan Albert
1291680c2a
Revert "Hide declaration of gets(3) for C11 and later."
...
Breaks stlport. checkbuild lied to me?
This reverts commit c0ce590827
.
Change-Id: I72fb21aba7eaea96a7c3208236fd03411527fa5e
2014-06-17 23:28:38 +00:00
Dan Albert
c0ce590827
Hide declaration of gets(3) for C11 and later.
...
gets(3) was removed from C11.
Change-Id: I4040a8a6c6d5d2a86878e8a80ca67964fbbb82a8
2014-06-17 15:52:07 -07:00
Elliott Hughes
b6ca747402
Merge "Add a flag control that PRIVATE libm can be chosen"
2014-06-17 20:56:23 +00:00