Commit Graph

9243 Commits

Author SHA1 Message Date
Bjorn Andersson
3c005d6019 Do not add arcs to the soinfo graph on dlopen
While introducing RTLD_NOLOAD in b648a8a5 a change in how soinfo structs are
connected was also introduced. When calling dlopen the library that is loaded
is added as a child to the soinfo from which the caller comes - i.e. building a
dependency graph.

Unfortunately this shows issues upon unloading, such as blowing the stack if
there are loops in the graph.

This change reverts that part of b648a8a5, keeping everything as a child of the
root soinfo.

Change-Id: I604ee9210613b19f693a568158e69707620a95db
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
2014-05-22 19:08:14 -07:00
Elliott Hughes
16933c6ae9 am 5a95dd14: am ea7dc320: Merge "Add some more BSD symbols to the list."
* commit '5a95dd1446ee1563d6500990a8576917b01f2981':
  Add some more BSD symbols to the list.
2014-05-23 02:02:36 +00:00
Elliott Hughes
5a95dd1446 am ea7dc320: Merge "Add some more BSD symbols to the list."
* commit 'ea7dc32080114af59789c119ca6aa4814426ea42':
  Add some more BSD symbols to the list.
2014-05-23 01:58:38 +00:00
Elliott Hughes
236130cd8d am 3fd88ebe: am 0f79a2f4: Merge "Cleaned up pthread rwlocks implementation."
* commit '3fd88ebe0f881438ed07b62d991e46e7f9adab83':
  Cleaned up pthread rwlocks implementation.
2014-05-23 01:56:05 +00:00
Elliott Hughes
ea7dc32080 Merge "Add some more BSD symbols to the list." 2014-05-23 01:53:53 +00:00
Elliott Hughes
45bf4c315d Add some more BSD symbols to the list.
Bug: 11156955
Change-Id: I07489ec63536121dbfc372170ef5cf60a5c58948
2014-05-22 18:53:21 -07:00
Elliott Hughes
3fd88ebe0f am 0f79a2f4: Merge "Cleaned up pthread rwlocks implementation."
* commit '0f79a2f48788c093804c9f61a66105873eb1cb59':
  Cleaned up pthread rwlocks implementation.
2014-05-23 01:52:42 +00:00
Elliott Hughes
57b0f075dd am bfa87e27: am ec071ac0: Merge "Remove the tkill(2) stub."
* commit 'bfa87e27f7c9d19f697bb384429673bb96140d7a':
  Remove the tkill(2) stub.
2014-05-23 01:52:40 +00:00
Elliott Hughes
0f79a2f487 Merge "Cleaned up pthread rwlocks implementation." 2014-05-23 01:47:56 +00:00
Elliott Hughes
bfa87e27f7 am ec071ac0: Merge "Remove the tkill(2) stub."
* commit 'ec071ac062077498dfee3e2171371def7320aa56':
  Remove the tkill(2) stub.
2014-05-23 01:47:49 +00:00
Elliott Hughes
ec071ac062 Merge "Remove the tkill(2) stub." 2014-05-23 01:43:42 +00:00
Calin Juravle
1b676ea5fb Migrate pthread_rwlock implementation away from sys/atomics
Bug: 8133149
Bug: 14903517
Change-Id: Ib85987f53d7aeaec12a980ccb645c4a449c48503
2014-05-23 00:26:24 +01:00
Calin Juravle
92687e41bc Cleaned up pthread rwlocks implementation.
- used underscore_style_for_vars
- extracted time related functionality into a function
- cleaned up style
- removed unused fields from pthread_rwlock_t on LP64
- changed reservation in pthread_rwlock_t so that the size of the
structure equals glibc version

Bug: 8133149

Change-Id: I84ad3918678dc7f5e6b3db9b7e9b0899d3abe9cd
2014-05-23 00:22:58 +01:00
Elliott Hughes
6e599a904b Remove the tkill(2) stub.
glibc doesn't have tkill or tgkill and says "use syscall(3) instead".
I've left tgkill since it's quite widely used, but there's no reason
to have tkill as well.

Bug: 11156955
Change-Id: Ifc0af750320086f829bc9914551c172b501f3b60
2014-05-22 13:41:36 -07:00
Elliott Hughes
9b49321ea5 am 4cf6b531: am 8a326a17: am 4f6ed4a1: Merge "Remove unnecessary #includes of <sys/atomics.h>."
* commit '4cf6b531c2d7408ea5fa754e5b1bf4711c5fe396':
  Remove unnecessary #includes of <sys/atomics.h>.
2014-05-22 18:28:15 +00:00
Dmitriy Ivanov
53f857b235 am 587afa2e: am 88923ba4: am 0b10ffb4: Merge "Fix dlsym_failure NULL handle test"
* commit '587afa2efc040c40e0be3811ad663269c9ffc637':
  Fix dlsym_failure NULL handle test
2014-05-22 18:27:56 +00:00
Elliott Hughes
4cf6b531c2 am 8a326a17: am 4f6ed4a1: Merge "Remove unnecessary #includes of <sys/atomics.h>."
* commit '8a326a17f3b55b4b95f1f06ed4030b5290ca80f0':
  Remove unnecessary #includes of <sys/atomics.h>.
2014-05-22 18:07:50 +00:00
Elliott Hughes
8a326a17f3 am 4f6ed4a1: Merge "Remove unnecessary #includes of <sys/atomics.h>."
* commit '4f6ed4a10951cbd868fec1b0117a276918c60fa1':
  Remove unnecessary #includes of <sys/atomics.h>.
2014-05-22 18:04:54 +00:00
Elliott Hughes
4f6ed4a109 Merge "Remove unnecessary #includes of <sys/atomics.h>." 2014-05-22 18:02:09 +00:00
Calin Juravle
67916021b5 am 5a2f51fc: am dd31f282: am eea59ea2: Merge "Add dprintf test"
* commit '5a2f51fcd1e1ab31a74dc7529d80316fc7243a18':
  Add dprintf test
2014-05-22 18:01:40 +00:00
Elliott Hughes
2ea60ff0b4 Remove unnecessary #includes of <sys/atomics.h>.
Bug: 14903517
Change-Id: I7b5bcebe58774a441da986cc02376dd88e00ea0e
2014-05-22 11:00:21 -07:00
Dmitriy Ivanov
587afa2efc am 88923ba4: am 0b10ffb4: Merge "Fix dlsym_failure NULL handle test"
* commit '88923ba4d8bbb4b47cde66bd66d2690d3cfb5d80':
  Fix dlsym_failure NULL handle test
2014-05-22 17:18:44 +00:00
Dmitriy Ivanov
88923ba4d8 am 0b10ffb4: Merge "Fix dlsym_failure NULL handle test"
* commit '0b10ffb40f3b426a7b5e734f90c41f56351729a0':
  Fix dlsym_failure NULL handle test
2014-05-22 17:14:59 +00:00
Dmitriy Ivanov
0b10ffb40f Merge "Fix dlsym_failure NULL handle test" 2014-05-22 17:10:47 +00:00
Dmitriy Ivanov
44adf93b8e Fix dlsym_failure NULL handle test
* RTLD_DEFAULT != (void*)0 only for bionic32

Change-Id: I3b3758835cf4085b0f899e2b62861591411aec13
2014-05-22 10:06:32 -07:00
Calin Juravle
a959644d5d am 5f8626a3: am db3cda2d: am 254fa885: Merge "Switch to POSIX dprintf/vdprintf."
* commit '5f8626a3755dc397fc48c67ed36243877aea18d7':
  Switch to POSIX dprintf/vdprintf.
2014-05-22 16:49:09 +00:00
Calin Juravle
5a2f51fcd1 am dd31f282: am eea59ea2: Merge "Add dprintf test"
* commit 'dd31f28273ddec95778a4f0e60d9e1b5f1373d40':
  Add dprintf test
2014-05-22 16:11:56 +00:00
Calin Juravle
dd31f28273 am eea59ea2: Merge "Add dprintf test"
* commit 'eea59ea21e04806fff48fdf4ad5ba117dcb0babb':
  Add dprintf test
2014-05-22 16:08:10 +00:00
Calin Juravle
eea59ea21e Merge "Add dprintf test" 2014-05-22 16:03:08 +00:00
Dmitriy Ivanov
9ae38fcdf8 am 1ca1db12: am 5bfa06de: am 3eb9f1f6: Merge "Removed dlsym handle != NULL check for lp64"
* commit '1ca1db1204c8455154406d947db51ee2a4c5770b':
  Removed dlsym handle != NULL check for lp64
2014-05-22 16:02:35 +00:00
The Android Automerger
19cb2c175a merge in master-release history after reset to 2c52565940 2014-05-22 07:21:22 -07:00
Calin Juravle
5f8626a375 am db3cda2d: am 254fa885: Merge "Switch to POSIX dprintf/vdprintf."
* commit 'db3cda2decaa1f04f5e6b8e2d2706c4f17f2db5d':
  Switch to POSIX dprintf/vdprintf.
2014-05-22 13:37:47 +00:00
Calin Juravle
63590a2f95 am 77761e4c: am ddf52021: am d1dc009c: Merge "Add padding to mips ucontext_t."
* commit '77761e4cc8719933bf66be7894e1b3da27bd03dd':
  Add padding to mips ucontext_t.
2014-05-22 13:33:29 +00:00
Calin Juravle
e5d8092d89 am 3625f432: am 841a1a13: am 156c7d3d: Merge "Clean up ucontext.h TODOs."
* commit '3625f432b39c1f9a7f23d2219eb421d4478cd852':
  Clean up ucontext.h TODOs.
2014-05-22 13:33:29 +00:00
Calin Juravle
f9aac10cf3 am d75b6e2e: am 6cec7775: am 17216716: Merge "Mutex-free implementation of pthread_rwlock"
* commit 'd75b6e2e478fddfbdd404d44e0d33383965b2f39':
  Mutex-free implementation of pthread_rwlock
2014-05-22 13:33:28 +00:00
Calin Juravle
db3cda2dec am 254fa885: Merge "Switch to POSIX dprintf/vdprintf."
* commit '254fa8857f5d88a4140cea2ee05056eae7f102b1':
  Switch to POSIX dprintf/vdprintf.
2014-05-22 13:33:21 +00:00
Calin Juravle
254fa8857f Merge "Switch to POSIX dprintf/vdprintf." 2014-05-22 13:28:52 +00:00
Dmitriy Ivanov
1ca1db1204 am 5bfa06de: am 3eb9f1f6: Merge "Removed dlsym handle != NULL check for lp64"
* commit '5bfa06de888770970d56d598960ba7c375998c75':
  Removed dlsym handle != NULL check for lp64
2014-05-22 13:03:27 +00:00
Dmitriy Ivanov
5bfa06de88 am 3eb9f1f6: Merge "Removed dlsym handle != NULL check for lp64"
* commit '3eb9f1f6bade8085520d9b0ec35d84d69563ebe1':
  Removed dlsym handle != NULL check for lp64
2014-05-22 12:59:11 +00:00
Dmitriy Ivanov
3eb9f1f6ba Merge "Removed dlsym handle != NULL check for lp64" 2014-05-22 12:55:15 +00:00
The Android Automerger
fb2d225bc8 merge in master-release history after reset to 486396a8c9 2014-05-22 05:49:24 -07:00
Calin Juravle
6afb2a9a97 Add dprintf test
Change-Id: I0fe1b4d45c1312cf01deed6ce5db032d5513e908
2014-05-22 11:47:47 +01:00
Elliott Hughes
fcac8ff97f Switch to POSIX dprintf/vdprintf.
Bug: 11156955
Change-Id: I734bd02db514367ab119a48304aae9767958e367
2014-05-22 11:27:06 +01:00
Calin Juravle
77761e4cc8 am ddf52021: am d1dc009c: Merge "Add padding to mips ucontext_t."
* commit 'ddf520213c2a41831e9d56b01dccd41b04f259f8':
  Add padding to mips ucontext_t.
2014-05-22 10:20:20 +00:00
Calin Juravle
3625f432b3 am 841a1a13: am 156c7d3d: Merge "Clean up ucontext.h TODOs."
* commit '841a1a13ec25885133249960bc5a640c90c12e6a':
  Clean up ucontext.h TODOs.
2014-05-22 10:20:20 +00:00
Calin Juravle
d75b6e2e47 am 6cec7775: am 17216716: Merge "Mutex-free implementation of pthread_rwlock"
* commit '6cec77755ba563f3707f695c99b9d24bff0f1791':
  Mutex-free implementation of pthread_rwlock
2014-05-22 10:20:19 +00:00
Calin Juravle
ddf520213c am d1dc009c: Merge "Add padding to mips ucontext_t."
* commit 'd1dc009c56f650ae4e990b00613f1c2ff93ed3ba':
  Add padding to mips ucontext_t.
2014-05-22 10:18:02 +00:00
Calin Juravle
841a1a13ec am 156c7d3d: Merge "Clean up ucontext.h TODOs."
* commit '156c7d3d0ac4457a051ac7d81ff8541636e0864f':
  Clean up ucontext.h TODOs.
2014-05-22 10:18:01 +00:00
Calin Juravle
6cec77755b am 17216716: Merge "Mutex-free implementation of pthread_rwlock"
* commit '172167163af5412c316a8be2f29ca8622984df32':
  Mutex-free implementation of pthread_rwlock
2014-05-22 10:18:00 +00:00
Calin Juravle
d1dc009c56 Merge "Add padding to mips ucontext_t." 2014-05-22 10:16:41 +00:00