Dmitriy Ivanov
b648a8a57e
Add RTLD_NOLOAD support and some related changes.
...
* Aligned RTLD_ values with glibc for lp64
* dlopen supports RTLD_NOLOAD flag
* soinfo_unload calls find_library(.., RTLD_NOLOAD)
instead of naive find_loaded_library_by_name()
* dlopen changed to add child to caller soinfo instead
of somain.
Bug: https://code.google.com/p/android/issues/detail?id=64069
Change-Id: I1a65f2c34f3e0edc6d2c41a2e408b58195feb640
2014-05-20 12:02:24 -07:00
Elliott Hughes
7435e9e974
am 7bdf1e48: am da095f3c: am ce0e1b81: Merge "Add a script for finding symbols in bionic that aren\'t in glibc."
...
* commit '7bdf1e48ff8711f35163f95764bb1d467b205b96':
Add a script for finding symbols in bionic that aren't in glibc.
2014-05-20 18:35:30 +00:00
Elliott Hughes
ce0e1b81cc
Merge "Add a script for finding symbols in bionic that aren't in glibc."
2014-05-20 18:25:24 +00:00
Calin Juravle
077cbee5d1
am 995b9704: am bcd1a312: am b2b0f7e1: Merge "Add uc_regspace to arm\'s ucontext_t"
...
* commit '995b9704d8ba70d4d09ef0c3453d5f25ed099816':
Add uc_regspace to arm's ucontext_t
2014-05-20 18:15:40 +00:00
Neil Fuller
246c688020
Change update-tzdata.py to update ICU data as well
...
The update-tzdata.py tool now uses downloaded Olson data
to update ICU (*new*) at the same time as it updates Bionic
data.
Change-Id: I7efbd6f453fe2b3e71f564121ff0f64a74289d86
2014-05-20 11:48:43 +01:00
Calin Juravle
b2b0f7e1ae
Merge "Add uc_regspace to arm's ucontext_t"
2014-05-20 10:14:49 +00:00
Elliott Hughes
5a93e88c7f
Add a script for finding symbols in bionic that aren't in glibc.
...
Bug: 11156955
Change-Id: I9772f054f6a92b842531df084dee0ea9c28806be
2014-05-19 18:01:07 -07:00
Dan Albert
4cc742e920
am 60bab8a7: am d8cc98ad: am 94a9ba2b: Merge "Removes RTTI support from libc"
...
* commit '60bab8a7ef30f72eb26a843afc3e0bdd02d3796d':
Removes RTTI support from libc
2014-05-20 00:23:09 +00:00
Elliott Hughes
310ecf1ae9
am 348adca2: am be3db39e: am 948acf71: Merge "Switch back to OpenBSD inet_ntop now they\'re FORTIFY clean."
...
* commit '348adca20e68c42bdfbf594aaa675062d3595761':
Switch back to OpenBSD inet_ntop now they're FORTIFY clean.
2014-05-20 00:23:09 +00:00
Sreeram Ramachandran
7c30167b3a
am d70e0c88: am 54c83fee: am 9925c1a8: Merge "Mark sockets on creation (socket()) and accept4()."
...
* commit 'd70e0c884c19c08aa44c038dbf2f12a5b55c73fe':
Mark sockets on creation (socket()) and accept4().
2014-05-20 00:23:03 +00:00
Dan Albert
94a9ba2b4a
Merge "Removes RTTI support from libc"
2014-05-19 23:21:46 +00:00
Elliott Hughes
948acf710e
Merge "Switch back to OpenBSD inet_ntop now they're FORTIFY clean."
2014-05-19 23:19:32 +00:00
Elliott Hughes
f51d3e8767
Switch back to OpenBSD inet_ntop now they're FORTIFY clean.
...
Change-Id: I04798a4966c352a8a12feebdff9646e3bad5933f
2014-05-19 15:55:29 -07:00
Sreeram Ramachandran
903b78873a
Mark sockets on creation (socket()) and accept4().
...
Remove the separate syscall for accept() and implement it as accept4(..., 0).
Change-Id: Ib0b8f5d7c5013b91eae6bbc3847852eb355c7714
2014-05-19 15:19:16 -07:00
Paul Jensen
5240b562e7
Query libnetd_client for the appropriate netId for host resolution.
...
If libnetd_client can't be found, operate as before and use the default netId
potentially overriden by a more specific netId passed in to
android_get*fornet().
(cherry picked from commit 559c7842cc6862568d9b5799fc0bcf74d58b596b)
Change-Id: I42ef3293172651870fb46d2de22464c4f03e8e0b
2014-05-19 12:49:52 -07:00
Calin Juravle
0e85fb6121
Add uc_regspace to arm's ucontext_t
...
Bug: 12828904
Bug: 12875898
Change-Id: Ic5d532bd0ef58cad9e36a99fc2995c4b069121b2
2014-05-19 19:14:03 +01:00
Dan Albert
48ee47ce25
Removes RTTI support from libc
...
Our type_info stub implementation is incompatible with the libc++ headers. Since
we don't need this support internally and anyone that wants RTTI support will
have to use libc++ anyway, this can be safely removed.
Change-Id: Ied8b67a0d86a4eb0e31191a50cceba0e39a16a6d
2014-05-19 10:32:42 -07:00
Sreeram Ramachandran
57a2627575
Fix build breakage.
...
Change-Id: I1835198c64c28021b81f0c790f108685a3f456c7
2014-05-19 10:21:39 -07:00
Sreeram Ramachandran
7fe1063797
resolved conflicts for merge of e7329284 to master
...
Change-Id: Iaeb09451ed1a268a025ce3033ab018f28f954848
2014-05-19 09:57:54 -07:00
Paul Jensen
559c7842cc
Query libnetd_client for the appropriate netId for host resolution.
...
If libnetd_client can't be found, operate as before and use the default netId
potentially overriden by a more specific netId passed in to
android_get*fornet().
Change-Id: I42ef3293172651870fb46d2de22464c4f03e8e0b
2014-05-19 11:23:12 +00:00
Sreeram Ramachandran
72c53933f8
Cosmetic changes to netd client files.
...
+ Name the dispatch header correctly (NetdClientDispatch.h).
+ Hide the global dispatch variable (__netdClientDispatch).
+ Explain why it's okay to read the variable without locking.
+ Use quotes instead of angle-brackets for non-system includes.
+ Add necessary declarations for C compiles (and not just C++).
Change-Id: Id0932165e71d81da5fce77a684f40c2263f58e61
2014-05-18 15:18:36 -07:00
Elliott Hughes
3810729e54
am 91a7e878: am 81e4ab45: am 8b9a22f3: Merge "Fix the newly-introduced warning and turn on -Werror."
...
* commit '91a7e878f22776c8b15fb1aceb4823718611fe12':
Fix the newly-introduced warning and turn on -Werror.
2014-05-17 00:23:14 +00:00
Elliott Hughes
4c2da039ba
Fix the newly-introduced warning and turn on -Werror.
...
I cleaned up most of our warnings last week but forgot to turn on -Werror,
so of course we're getting new warnings already. I've left -Werror commented
out in those places where we still have warnings to deal with before we can
turn on -Werror.
Change-Id: Ia58ff8b8c1ada4bf81eec6f19ec1d34e133cf4b1
2014-05-16 16:50:34 -07:00
Elliott Hughes
0f43d02843
am 19a54ce4: am 88a8e09b: am 5e6e3edb: Merge "Export get_malloc_leak_info and free_malloc_leak_info, used by ddms."
...
* commit '19a54ce4d446cdea01a7d50c2951481f3ed006bd':
Export get_malloc_leak_info and free_malloc_leak_info, used by ddms.
2014-05-16 23:40:25 +00:00
Elliott Hughes
f4ad3d6dd7
am b95ce9b3: am 838c5c25: am a23ee2cf: Merge "Hide _exit_with_stack_teardown."
...
* commit 'b95ce9b3d7b94878cb1a42e19cf059ad4d1455e8':
Hide _exit_with_stack_teardown.
2014-05-16 23:33:44 +00:00
Elliott Hughes
7c9923d05f
Export get_malloc_leak_info and free_malloc_leak_info, used by ddms.
...
Bug: 11156955
Change-Id: I84043f7b2c0ea0e336f6e2af3b7adb2f8488bd53
2014-05-16 16:29:55 -07:00
Elliott Hughes
31d0398de6
Hide _exit_with_stack_teardown.
...
Bug: 11156955
Change-Id: Ida3020343c9975177dc324918cd1f10c455eb173
2014-05-16 16:17:44 -07:00
Elliott Hughes
7c8d98db59
am f8cb4542: am 30f89b6f: am aafa3d0e: Merge "Hide various debug malloc implementation details."
...
* commit 'f8cb45429b2cd4df8908f998fdc72b0fa235474a':
Hide various debug malloc implementation details.
2014-05-16 23:15:33 +00:00
Elliott Hughes
aafa3d0e46
Merge "Hide various debug malloc implementation details."
2014-05-16 23:04:02 +00:00
Elliott Hughes
968aaf5d8d
am fd5155e7: am 48ecb3a6: am 58b52fb1: Merge "Remove dead code."
...
* commit 'fd5155e7eb64563285831c774e112cf7513adb43':
Remove dead code.
2014-05-16 23:00:35 +00:00
Elliott Hughes
3ac925850a
am 45740160: am 67e34f30: am e2d5746a: Merge "Hide __signalfd4, used to implement signalfd(3)."
...
* commit '4574016027cce3132c6a348de8f0585348b4ffd5':
Hide __signalfd4, used to implement signalfd(3).
2014-05-16 23:00:34 +00:00
Elliott Hughes
58b52fb133
Merge "Remove dead code."
2014-05-16 22:52:41 +00:00
Elliott Hughes
7222b1b594
Hide __signalfd4, used to implement signalfd(3).
...
Bug: 11156955
Change-Id: I50842279cb5b32ec8bd45193435574e415cd806e
2014-05-16 15:47:29 -07:00
Elliott Hughes
6b7987cca3
Hide various debug malloc implementation details.
...
Bug: 11156955
Change-Id: Ib9d69d49ecec8eff4f12392bde94d843ae53d442
2014-05-16 15:23:54 -07:00
Elliott Hughes
bd27a8b4af
Remove dead code.
...
This doesn't exist upstream.
Really we should upgrade to the current arc4random, but that's a bigger
job for another day.
Bug: 11156955
Change-Id: If6cd41b79139c64c17e81999e246cf4f00882ce8
2014-05-16 14:43:00 -07:00
Elliott Hughes
971f66e469
am 1453b3df: am 7177d1d6: am d9b06298: Merge "Hide __futex_wake_ex and __futex_wait_ex."
...
* commit '1453b3df559609252633e40d677aadaf5dd70309':
Hide __futex_wake_ex and __futex_wait_ex.
2014-05-16 20:07:34 +00:00
Elliott Hughes
3973de9616
Hide __futex_wake_ex and __futex_wait_ex.
...
Also remove some cruft that isn't needed now we're using uapi headers.
Bug: 11156955
Change-Id: I936b9c5b01d8bd6bfb2e5bc0e3f86cd86739cc04
2014-05-16 12:53:31 -07:00
Elliott Hughes
a0accd85c9
am 0178eba2: am 9700b6ca: am 22ade3c3: Merge "With libstdc++ in libc, __futex_wait and __futex_wake can be hidden."
...
* commit '0178eba213dfec500e71cd9889ece5af2f7de4cb':
With libstdc++ in libc, __futex_wait and __futex_wake can be hidden.
2014-05-16 18:10:33 +00:00
Elliott Hughes
22ade3c30d
Merge "With libstdc++ in libc, __futex_wait and __futex_wake can be hidden."
2014-05-16 18:00:51 +00:00
Elliott Hughes
879180c3ac
With libstdc++ in libc, __futex_wait and __futex_wake can be hidden.
...
This patch is conservative and just touches LP64. (But not because we
know of anyone using this in LP32.)
Bug: 13367666
Change-Id: Id45652debc4534584479b16b501401f6f23acea9
2014-05-16 10:58:59 -07:00
Elliott Hughes
ae04d58b96
am 505de840: am 80cff53e: am 2a602272: Merge "Move libstdc++ into libc."
...
* commit '505de840a225be10947f6aa25b25e8e623e670e5':
Move libstdc++ into libc.
2014-05-16 17:40:55 +00:00
Elliott Hughes
2a60227223
Merge "Move libstdc++ into libc."
2014-05-16 16:37:20 +00:00
Christopher Ferris
02aabff12e
am c98359cc: am 0d9c78af: am 5265ad62: Merge "Fix comment typo."
...
* commit 'c98359cc6bffdffe03067740a0ad691cc16d83fa':
Fix comment typo.
2014-05-16 02:21:53 +00:00
Christopher Ferris
5265ad6273
Merge "Fix comment typo."
2014-05-16 02:14:07 +00:00
Christopher Ferris
9029d2f638
Fix comment typo.
...
Change-Id: I1909f724826b531daf14fec4853e40d578fc0f59
2014-05-15 19:11:58 -07:00
Dmitriy Ivanov
6a0f7d6187
am a161eea2: am 7f3d6b69: am 0a5b0166: Merge "Register _cleanup function with atexit"
...
* commit 'a161eea241da06c70995248df7a00b6553050e05':
Register _cleanup function with atexit
2014-05-16 00:43:54 +00:00
Dmitriy Ivanov
0a5b016623
Merge "Register _cleanup function with atexit"
2014-05-16 00:37:54 +00:00
Elliott Hughes
c571c26820
am 9eb2d38d: am b9fdad77: am ec81b4a3: Merge "Scrub uapi headers slightly harder."
...
* commit '9eb2d38d53b2d00a9b5bd189a34f51afb7c385bf':
Scrub uapi headers slightly harder.
2014-05-15 23:12:23 +00:00
Dmitriy Ivanov
623b0d05bd
Register _cleanup function with atexit
...
* Register cleanup function with atexit
instead of calling it explicitly on
exit()
* abort() no longer calls _cleanup:
Flushing stdio buffers on abort is no
longer required by POSIX.
* dlmalloc no longer need to reset cleanup
(see above)
* Upstream findfp.c makebuf.c setvbuf.cexit.c
to openbsd versions.
Bug: 14415367
Change-Id: I277058852485a9d3dbb13e5c232db5f9948d78ac
2014-05-15 13:05:21 -07:00
Elliott Hughes
8ed7a23309
Scrub uapi headers slightly harder.
...
There's no point having always-false tests. It just makes the headers
harder to read.
Bug: 11560081
Change-Id: I6187755e1514ca9ff5642b3c1b0489f22edddaf5
2014-05-15 12:01:11 -07:00