Dmitriy Ivanov
8a11628355
Add flag that makes linker honor min(p_vaddr)
...
Bug: http://b/21523078
Change-Id: Ice72766fb6ad3bd333c32b496e7870121e17a763
2015-06-09 13:44:31 -07:00
Andres Morales
4e8cda641a
remove rootdir build.prop
...
merge with default.prop
Change-Id: I6cff4527dec2b31bdde42ec26c42ef2782f8deb4
2015-05-08 22:13:15 +00:00
Dmitriy Ivanov
ce16a53d39
Add definitions of Elf32_Sxword and ELFXX_R_INFO
...
Bug: http://b/17056684
Change-Id: If35302245ac3ab40d1c80fb2b04620778c114f87
2015-05-07 23:10:16 -07:00
Dmitriy Ivanov
dbe26fdcc7
Fix protected symbol lookups for mips
...
Bug: http://b/20694161
Change-Id: I5cc58034f9776e1db9cddc34abe48ef85f6048f4
2015-05-04 19:30:49 -07:00
Mark Salyzyn
033a68f1ac
Merge "bionic: fortify comments in _system_properties.h"
2015-04-30 20:57:49 +00:00
Dan Albert
6a4c9d9bf9
Merge "Define char16_t and char32_t to make gcc 5.1 happy"
2015-04-30 19:29:47 +00:00
Mark Salyzyn
c3f4c964a3
bionic: fortify comments in _system_properties.h
...
Change-Id: I2ef8fb7ae5ae03d5d2a50b5a417d585710099760
2015-04-29 13:57:42 -07:00
Mark Salyzyn
bfd65279a5
bionic: add __system_property_area_serial()
...
Adds a new _internal_ function. Provide a global serial number to
support more efficient private caching algorithms. This allows
to skip re-running the __system_property_find() call on misses until
there is a global change in the properties. This call is a read
barrier, the property data to be read following this call will be
read sequentially and up to date.
Bug: 19544788
Change-Id: I58e6a92baa0f3e8e7b9ec79b10af6d56407dab48
2015-04-27 07:44:03 -07:00
Nick Kralevich
1d76f1cc8b
Merge "add a fortified implementation of realpath"
2015-04-26 02:23:04 +00:00
Nick Kralevich
42502d702e
Merge "add fortified memchr/memrchr implementations"
2015-04-25 21:29:57 +00:00
Bernhard Rosenkränzer
6f88821e5d
Define char16_t and char32_t to make gcc 5.1 happy
...
gcc 5.1 doesn't define char16_t and char32_t (unless in C++ mode),
causing compile failures.
Change-Id: I08dcd13cdf8cd59a4a2f191864bedf4c0d1bb313
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2015-04-24 16:21:38 +02:00
Daniel Micay
3244d9f07f
add a fortified implementation of realpath
...
Change-Id: Icc59eacd1684f7cddd83d7a2b57dad0c7ada5eb7
2015-04-20 17:31:24 -04:00
Daniel Micay
4ae773633a
add fortified memchr/memrchr implementations
...
Change-Id: I38c473cc0c608b08f971409a95eb8b853cb2ba1c
2015-04-17 21:17:12 -04:00
Daniel Micay
42281880a8
add fortified readlink/readlinkat implementations
...
Change-Id: Ia4b1824d20cad3a072b9162047492dade8576779
2015-04-17 18:49:12 -04:00
Dmitriy Ivanov
3875744f89
Merge "Support symbol versioning"
2015-04-17 03:57:46 +00:00
Dmitriy Ivanov
2a81536144
Support symbol versioning
...
Bug: http://b/20139821
Change-Id: I64122a0fb0960c20b2ce614161b7ab048456b681
2015-04-16 17:57:30 -07:00
Elliott Hughes
31128da28f
Merge "add fortified implementations of pread/pread64"
2015-04-17 00:34:26 +00:00
Daniel Micay
e7e1c875b0
add fortified implementations of pread/pread64
...
Change-Id: Iec39c3917e0bc94371bd81541619392f5abe29b9
2015-04-16 10:33:35 -04:00
Elliott Hughes
43e020ce93
Remove PROP_PATH_SYSTEM_DEFAULT.
...
Change-Id: Ib01d9c2f9d890eb5e7ba1e15bd11767195e84967
2015-04-15 17:03:43 -07:00
Dmitriy Ivanov
9ce9bf5aec
Merge "Add Elfxx_Ver* types"
2015-04-09 22:14:09 +00:00
Dmitriy Ivanov
c0e7dbb1db
Add Elfxx_Ver* types
...
Bug: http://b/20139821
Change-Id: I7a367b08faa3bf5c005996c066cd35709f533265
2015-04-09 13:58:53 -07:00
Yabin Cui
76615dae93
Provide writer preference option in rwlock.
...
Previous implementation of rwlock contains four atomic variables, which
is hard to maintain and change. So I make following changes in this CL:
1. Add pending flags in rwlock.state, so we don't need to synchronize
between different atomic variables. Using compare_and_swap operations
on rwlock.state is enough for all state change.
2. Add pending_lock to protect readers/writers waiting and wake up
operations. As waiting/wakeup is not performance critical, using a
lock is easier to maintain.
3. Add writer preference option.
4. Add unit tests for rwlock.
Bug: 19109156
Change-Id: Idcaa58d695ea401d64445610b465ac5cff23ec7c
2015-04-08 13:11:13 -07:00
Dmitriy Ivanov
9b82136b98
Add ANDROID_DLEXT_FORCE_LOAD flag
...
This flag allows to force loading of the library
in the case when for some reason multiple ELF files
share the same filename (because the already-loaded
library has been removed and overwritten, for example).
Change-Id: I798d44409ee13d63eaa75d685e99c4d028d2b0c1
2015-04-03 10:50:48 -07:00
Yabin Cui
377243b78c
Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER.
...
These macros are also not used in glibc. And we should use
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP instead.
Change-Id: I35195e2f499712dcde9305bbb93622d0f7ca874b
2015-03-25 21:02:36 -07:00
Yabin Cui
17393b06ba
Hide internal of pthread_mutex_t.
...
Bug: 19249079
Change-Id: Iffb79c8d861b698d474f212dc80c638fc2cf1620
2015-03-25 17:54:17 -07:00
Yabin Cui
b584572213
Add test for pthread types alignment check.
...
Bug: 19249079
Change-Id: I83c4f0d11ec5d82a346ae0057d02a92bb1d519e8
2015-03-20 17:42:09 -07:00
Elliott Hughes
1101962447
Fix _PATH_DEFPATH to correspond to the actual default path.
...
This is currently set in init.rc, but I plan on making init
set PATH to _PATH_DEFPATH and removing the line from init.rc...
Bug: 19564110
Change-Id: Ifa7226a3a5a90d141a788d7d6b1ae86245674218
2015-03-17 17:34:14 -07:00
Dmitriy Ivanov
b5cd3c7a75
Fix build: align pthread_cond_t to sizeof(long)
...
Change-Id: Ieaee6d09089b161ec516ba22cafaee1ecb4342da
2015-03-16 17:06:59 -07:00
Christopher Ferris
eb8b122d67
Add alignment to opaque types.
...
If there is no alignment forced, then the compiler might put these
structures at any alignment.
Change-Id: I6416db72433504e0ec1178bfae6f5b18b6e363fb
2015-03-16 16:28:54 -07:00
Yabin Cui
32651b8e8e
Hide content of pthread_cond_t in pthread_cond_internal_t.
...
Bug: 19249079
Change-Id: I6f55af30bcd6211ce71630c6cacbef0e1663dcee
2015-03-16 11:09:52 -07:00
Yabin Cui
2fabea47ac
Hide content of pthread_rwlock_t in pthread_rwlock_internal_t.
...
Bug: 19249079
Change-Id: Ifbe634c716b6793bef897ec5134b55eb44c6b8d5
2015-03-13 19:35:05 -07:00
Christopher Ferris
c94c7ff2bb
Add some GNU specific elf constants.
...
Change-Id: I6c668463a27a641c9a280ce1937857d622344ff8
2015-03-13 10:32:45 -07:00
Mark Salyzyn
c4a586da49
syslog.h: missing LOG_MAKEPRI definition
...
Bug: 19681572
Change-Id: Ice5f5cb1f71522ffc47b2243a8dc4c277c2a288f
2015-03-12 13:21:35 -07:00
Elliott Hughes
ba87fe5145
Add the UMOUNT_NOFOLLOW flag to <sys/mount.h>.
...
Change-Id: I2b81cfc3147d9a0a6ac2a8f064e6d9864fa7e04d
2015-03-11 09:32:25 -07:00
Dmitriy Ivanov
18a6956b76
Add support for packed relocations.
...
Change-Id: I796a4ce86d3fccb8361c19889419c96147ee3c9f
2015-03-06 17:12:47 -08:00
Yabin Cui
e1c0213be3
Merge "Switch pthread_rwlock_t to stdatomic."
2015-03-05 04:42:35 +00:00
Yabin Cui
08ee8d2030
Switch pthread_rwlock_t to stdatomic.
...
Bug: 19099838
Change-Id: Ie82967a60b5cec61a8bdd1e0e4a03738d01944f8
2015-03-04 18:16:20 -08:00
Mark Salyzyn
c09268a3fe
bionic: deprecate _PATH_MEM
...
/dev/mem (and /dev/kmem) are not enabled in the kernels, and selinux
prevents access and makes it a rule compilation error to enable
access. No code uses the _PATH_MEM macro. Remove definition to
suppress future usage.
Bug: 19549480
Change-Id: Ie0fb0f53d43349f4fe227068e4bf8a768f620d60
2015-03-02 18:44:11 +00:00
Yabin Cui
b8b5a72f41
Make getgrent deprecated.
...
Bug: 19340053
Change-Id: Ie8b97f840d9e87555e6a3d591fc87bc08c2d6820
2015-02-25 19:05:37 -08:00
Yabin Cui
398ef152d5
Merge "Move endpwent to ndk_cruft.cpp."
2015-02-26 02:23:08 +00:00
Yabin Cui
f1b4a5d510
Merge "Make tempnam/mktemp deprecated."
2015-02-26 02:17:17 +00:00
Yabin Cui
9b4f77f5cf
Make tempnam/mktemp deprecated.
...
Bug: 19340053
Change-Id: Ib02c65814ef97cd1758fd8142b73736cc8bc1700
2015-02-25 15:42:01 -08:00
Yabin Cui
52d7f1a94f
Move endpwent to ndk_cruft.cpp.
...
Bug: 19109159
Change-Id: I3683a247643006ea6d6bcf3845f57d1908d457d7
2015-02-25 14:58:08 -08:00
Yabin Cui
8c41eae6fc
Merge "Move getusershell/endusershell/setusershell to ndk_cruft.cpp."
2015-02-25 00:00:51 +00:00
Yabin Cui
7fb680bfda
Move getusershell/endusershell/setusershell to ndk_cruft.cpp.
...
Bug: 19108648
Change-Id: I65134040345398dde612c4325d902db58f3bd2be
2015-02-24 14:46:59 -08:00
Elliott Hughes
6af62e0d50
Add RLIM_SAVED_CUR and RLIM_SAVED_MAX.
...
Change-Id: Ia6be76460bfcf852832325c5f36cb272f49a4b87
2015-02-23 13:41:40 -08:00
Elliott Hughes
4c5891d93d
valgrind can't find syscall because we didn't put it in <unistd.h>.
...
Change-Id: I1e47291d4476bd2816138a8cf58f29d4986d39e3
2015-02-19 22:49:44 -08:00
Elliott Hughes
3cfb52aab2
Add GNU extensions mempcpy and wmemcpy.
...
Used by elfutils. On the bright side, they stopped using __mempcpy.
Bug: 18374026
Change-Id: Id29bbe6ef1c5ed5a171bb6c32182f129d8332abb
2015-02-18 22:02:56 -08:00
Yabin Cui
4add77b93c
Merge "Make gets() deprecated."
2015-02-18 21:33:02 +00:00
Yabin Cui
913fcb274f
Make gets() deprecated.
...
gets is already deprecated in glibc. Others with __warnattr are not deprecated.
Change-Id: I80a276d2b5964630218be47f1c94b146c0d31151
2015-02-18 12:20:32 -08:00