Dmitriy Ivanov
7df7fb0c90
am 7cb57841: am 4402804c: Revert "Fix mips build"
...
* commit '7cb57841a58165e6aeca14f987e4391cab38bbbd':
Revert "Fix mips build"
2014-11-04 17:22:49 +00:00
Dmitriy Ivanov
7e59a56ac9
am 5c9afdc0: am f947be28: Revert "Fix symbol lookup order during relocation"
...
* commit '5c9afdc0c1bb4fa4c8287075a8711d25d229d593':
Revert "Fix symbol lookup order during relocation"
2014-11-04 17:22:48 +00:00
Dmitriy Ivanov
4aaafab73b
am 4c9b34bd: am 494bee79: Revert "Fix arm64 and arm builds."
...
* commit '4c9b34bd8acc305241ae14b5d03db4054f1ce26e':
Revert "Fix arm64 and arm builds."
2014-11-04 17:22:47 +00:00
Dmitriy Ivanov
7cb57841a5
am 4402804c: Revert "Fix mips build"
...
* commit '4402804c35c5c5992c728c6f3cee3bdbd325819e':
Revert "Fix mips build"
2014-11-04 17:17:54 +00:00
Dmitriy Ivanov
5c9afdc0c1
am f947be28: Revert "Fix symbol lookup order during relocation"
...
* commit 'f947be2889639defc6424b1813ccc779528b7598':
Revert "Fix symbol lookup order during relocation"
2014-11-04 17:17:53 +00:00
Dmitriy Ivanov
4c9b34bd8a
am 494bee79: Revert "Fix arm64 and arm builds."
...
* commit '494bee796aa60131981308493e0e295493537e12':
Revert "Fix arm64 and arm builds."
2014-11-04 17:17:52 +00:00
Dmitriy Ivanov
4402804c35
Revert "Fix mips build"
...
This reverts commit bf3d5ef5fd .
Bug: 18222321
Bug: 18211780
Change-Id: I902ed888197b358c77303f1acb6d5ffd7ae6dcd3
2014-11-03 22:15:13 -08:00
Dmitriy Ivanov
f947be2889
Revert "Fix symbol lookup order during relocation"
...
This reverts commit 976402cca1 .
Bug: 18222321
Bug: 18211780
Change-Id: Iafdd3d843db7b1cf288be9a0232022816622c944
2014-11-03 22:15:08 -08:00
Dmitriy Ivanov
494bee796a
Revert "Fix arm64 and arm builds."
...
This reverts commit 445111a1c9 .
Bug: 18222321
Bug: 18211780
Change-Id: I4fa9e1b63ec9b528f8bfed73c2ec15046c43a2fe
2014-11-03 22:14:19 -08:00
Elliott Hughes
2fa23458ba
am 6bb5579b: resolved conflicts for merge of d18f4b25 to lmp-mr1-dev-plus-aosp
...
* commit '6bb5579b8e8194a54354a88b2d685740c30fc3b9':
Ensure we initialize stdin/stdout/stderr's recursive mutexes.
2014-11-04 02:44:26 +00:00
Elliott Hughes
6bb5579b8e
resolved conflicts for merge of d18f4b25 to lmp-mr1-dev-plus-aosp
...
Change-Id: Ie1ebacd432a61d680bb1325aa369db717d39299d
2014-11-03 18:31:10 -08:00
Dan Albert
f75df00fae
am a0ba3c83: am 5939060b: am 695781b6: Merge "Make host tests depend on /system/etc/hosts."
...
* commit 'a0ba3c83edd975159913aacc992f3f9400e332f5':
Make host tests depend on /system/etc/hosts.
2014-11-04 01:59:27 +00:00
Elliott Hughes
b56c4973bd
am 05e3e707: am 90138639: am e76ea9bb: Merge "Ensure we initialize stdin/stdout/stderr\'s recursive mutexes."
...
* commit '05e3e70772ea7c42ec2499212cd7fd876ab77cd3':
Ensure we initialize stdin/stdout/stderr's recursive mutexes.
2014-11-04 01:59:25 +00:00
Dan Albert
a0ba3c83ed
am 5939060b: am 695781b6: Merge "Make host tests depend on /system/etc/hosts."
...
* commit '5939060ba54fbab71c53b95310bfd798a35972ad':
Make host tests depend on /system/etc/hosts.
2014-11-04 01:04:27 +00:00
Elliott Hughes
05e3e70772
am 90138639: am e76ea9bb: Merge "Ensure we initialize stdin/stdout/stderr\'s recursive mutexes."
...
* commit '90138639a50495fd63238524e9a0a0758cd574c6':
Ensure we initialize stdin/stdout/stderr's recursive mutexes.
2014-11-04 01:04:25 +00:00
Dan Albert
5939060ba5
am 695781b6: Merge "Make host tests depend on /system/etc/hosts."
...
* commit '695781b6f0419f82939176a6ec1a240300d9f036':
Make host tests depend on /system/etc/hosts.
2014-11-04 00:53:18 +00:00
Elliott Hughes
90138639a5
am e76ea9bb: Merge "Ensure we initialize stdin/stdout/stderr\'s recursive mutexes."
...
* commit 'e76ea9bbe0a8bccf97b88d09af13a84fd34a6a76':
Ensure we initialize stdin/stdout/stderr's recursive mutexes.
2014-11-04 00:53:16 +00:00
Elliott Hughes
d18f4b2578
Ensure we initialize stdin/stdout/stderr's recursive mutexes.
...
(cherry-pick of 6a03abcfd23f31d1df06eb0059830e22621282bb.)
Bug: 18208568
Change-Id: I9da16ce0f9375bc363d1d02be706d73fd3b1e150
2014-11-03 13:46:41 -08:00
Dan Albert
695781b6f0
Merge "Make host tests depend on /system/etc/hosts."
2014-11-03 21:38:50 +00:00
Elliott Hughes
e76ea9bbe0
Merge "Ensure we initialize stdin/stdout/stderr's recursive mutexes."
2014-11-03 21:32:29 +00:00
Dan Albert
62b7279789
Make host tests depend on /system/etc/hosts.
...
Change-Id: I3e5ab1325d5e250a1d14b53f3a5a465d9f5de30c
2014-11-03 13:26:16 -08:00
Elliott Hughes
6a03abcfd2
Ensure we initialize stdin/stdout/stderr's recursive mutexes.
...
Bug: 18208568
Change-Id: I9da16ce0f9375bc363d1d02be706d73fd3b1e150
2014-11-03 12:32:17 -08:00
Dmitriy Ivanov
ae0757ff27
am d3cd6618: resolved conflicts for merge of 926797a8 to lmp-mr1-dev-plus-aosp
...
* commit 'd3cd66185f63a75ec9f0fca69bd6594c310dbaa8':
Fix arm64 and arm builds.
Fix symbol lookup order during relocation
Fix mips build
Remove unnecessary lookups during relocations
Fix relocation to look for symbols in local group
Correct way to specify additional dependencies
Add dlfcn_test to glibc test suite.
Ignore DT_BIND_NOW (0x18)
Resolve "unused DT entry" warnings for x86_64
Add RTLD_NODELETE flag support
Fix mips build
Fix unused DT entry warnings.
Return has_DT_SYMBOLIC flag.
Fix a couple more cases of missing CLOEXEC.
Temporary disable DL_WARNs for unused DT_*
Fix 64bit build
Fix some unused DT_ warnings
Remove has_DT_SYMBOLIC flag
Fix dlsym() to take into account RTLD_GLOBAL/LOCAL
Reformatting
2014-11-02 01:14:04 +00:00
Dmitriy Ivanov
d3cd66185f
resolved conflicts for merge of 926797a8 to lmp-mr1-dev-plus-aosp
...
Change-Id: I3b46a714fd1236431fa08872f280e4ac4c4880d1
2014-11-01 18:02:31 -07:00
Dmitriy Ivanov
fc6a97d292
am b1c019f3: am 75cd66aa: am 38ff8822: Merge "Revert "Use local copy of the library name on dlopen""
...
* commit 'b1c019f32ad5da8649b9792b8526806b1ebe2878':
Revert "Use local copy of the library name on dlopen"
2014-11-01 04:02:22 +00:00
Dmitriy Ivanov
b1c019f32a
am 75cd66aa: am 38ff8822: Merge "Revert "Use local copy of the library name on dlopen""
...
* commit '75cd66aaf60f47e04359738a9c8d92588a1f7834':
Revert "Use local copy of the library name on dlopen"
2014-11-01 03:00:56 +00:00
Dmitriy Ivanov
75cd66aaf6
am 38ff8822: Merge "Revert "Use local copy of the library name on dlopen""
...
* commit '38ff8822763a30d4c9033a38ec8b71fcd17aba87':
Revert "Use local copy of the library name on dlopen"
2014-11-01 02:35:51 +00:00
Dmitriy Ivanov
38ff882276
Merge "Revert "Use local copy of the library name on dlopen""
2014-11-01 02:32:24 +00:00
Dmitriy Ivanov
9fb216f844
Revert "Use local copy of the library name on dlopen"
...
This reverts commit da8e591c39 .
Change-Id: I3fd6f235b18c232af5cc5ecd481851486d7d68f6
2014-11-01 02:30:38 +00:00
Dmitriy Ivanov
445111a1c9
Fix arm64 and arm builds.
...
Bug: 18186310
(cherry picked from commit 4e446b19d8 )
Change-Id: Ibc77a9ade36dc6b9bf5a316b5ab9ae5f0a70e826
2014-10-31 19:29:04 -07:00
Dmitriy Ivanov
d79e427b73
am dcafe93d: am 6cba0e35: am 36ffc73e: Merge "Fix arm64 and arm builds."
...
* commit 'dcafe93db23dbda62e1d9b6c2b2deb670f96980e':
Fix arm64 and arm builds.
2014-11-01 00:45:39 +00:00
Dmitriy Ivanov
dcafe93db2
am 6cba0e35: am 36ffc73e: Merge "Fix arm64 and arm builds."
...
* commit '6cba0e35ec62e86689556142a08f547f27b703dd':
Fix arm64 and arm builds.
2014-11-01 00:39:45 +00:00
Dmitriy Ivanov
6cba0e35ec
am 36ffc73e: Merge "Fix arm64 and arm builds."
...
* commit '36ffc73e992de77cc4bc397e41767b69ed9ac917':
Fix arm64 and arm builds.
2014-11-01 00:36:23 +00:00
Dmitriy Ivanov
36ffc73e99
Merge "Fix arm64 and arm builds."
2014-11-01 00:33:30 +00:00
Dmitriy Ivanov
4e446b19d8
Fix arm64 and arm builds.
...
Change-Id: I2c8c41626768e792f27a2616f2cd5ae66606319d
2014-10-31 17:27:02 -07:00
Dmitriy Ivanov
976402cca1
Fix symbol lookup order during relocation
...
Relocate symbol against DF_1_GLOBAL shared libraries
loaded before this shared library. This includes
main executable, ld_preloads and other libraries
that have DF_1_GLOBAL flag set.
Bug: 2643900
Bug: 15432753
Bug: 18186310
(cherry picked from commit d225a5e652 )
Change-Id: I4e889cdf2dfbf8230b0790053d311ee6b0d0ee2d
2014-10-31 17:10:30 -07:00
Dmitriy Ivanov
bf3d5ef5fd
Fix mips build
...
Bug: 18186310
(cherry picked from commit 90b74fb867 )
Change-Id: I8d4ed254e5c421b65b62c401abdb1ee07e5dc3b2
2014-10-31 17:04:00 -07:00
Dmitriy Ivanov
6442dbd3bc
Remove unnecessary lookups during relocations
...
local_group includes this library and its dependencies.
Bug: 18186310
(cherry picked from commit e47b3f8456 )
Change-Id: I93c2d873e924df7319569307444bf603d7d27bf0
2014-10-31 17:04:00 -07:00
Dmitriy Ivanov
fd2747bb58
Fix relocation to look for symbols in local group
...
The local group is a sequence of libraries in default (breadth-first)
order. It allows RTLD_LOCALLY loaded library to correctly relocate
symbols within its group (see test-cases).
Local group lookup is performed after main executable and ld_preloads.
Bug: 2643900
Bug: 15432753
Bug: 18186310
(cherry picked from commit cfa97f172d )
Change-Id: I5fa8c673f929e4652c738912c7ae078d7ec286d2
2014-10-31 17:04:00 -07:00
Dmitriy Ivanov
4d0c1f673f
Correct way to specify additional dependencies
...
Previous one was not covering all the targets
Bug: 17548097
Bug: 18186310
(cherry picked from commit 4a9e1937c5 )
Change-Id: I2cd9e58893555d16cbfe291b2d1279621489d5ad
2014-10-31 17:04:00 -07:00
Dmitriy Ivanov
382e06ce8e
Add dlfcn_test to glibc test suite.
...
Bug: 18186310
(cherry picked from commit eb27bbae8f )
Change-Id: I1d608dfa12dbafbdcdb8bc6d818c5872404c19e0
2014-10-31 17:04:00 -07:00
Dmitriy Ivanov
e4bc6f026a
Ignore DT_BIND_NOW (0x18)
...
Bug: 18186310
Bug: 17552334
(cherry picked from commit ea6eae182a )
Change-Id: I07d6f6fbb462fea329581d0da02f6d88be1c262f
2014-10-31 17:04:00 -07:00
Dmitriy Ivanov
1d3e81a9e7
Resolve "unused DT entry" warnings for x86_64
...
Bug: 18186310
(cherry picked from commit 513e29e16f )
Change-Id: I1e4c5af2cdc09dc978c7a78fcdcf8796c919751e
2014-10-31 17:04:00 -07:00
Dmitriy Ivanov
c87f65d2cd
Add RTLD_NODELETE flag support
...
Bug: 18186310
Bug: https://code.google.com/p/android/issues/detail?id=64069
(cherry picked from commit 1b20dafdbe )
Change-Id: Ic02eec22a7c322ece65eb40730a3404f611526b1
2014-10-31 17:04:00 -07:00
Dmitriy Ivanov
210ff1b27b
Fix mips build
...
Bug: 18186310
(cherry picked from commit ecf532fa1c )
Change-Id: Ia12f2fa28c8cd3204eb7d6b4c7d872f4e81fb8ef
2014-10-31 17:04:00 -07:00
Dmitriy Ivanov
0f47d9c1ce
Fix unused DT entry warnings.
...
DT_STRSZ Implement strtab boundary checks
DT_FLAGS_1 Warn if flags other than DF_1_NOW|DF_1_GLOBAL are set
Bug: 17552334
Bug: 18186310
(cherry picked from commit 6cdeb5234d )
Change-Id: I7ffc7bc600798308a77ad949a644949b64250ae2
2014-10-31 17:03:59 -07:00
Dmitriy Ivanov
f90e21004e
Return has_DT_SYMBOLIC flag.
...
This reverts commit 8f61d99183
Despite the fact that static linker does all the work while linking
-Bsymbolic executables, according to the SCO doc following DT_SYMBOLIC
and DF_SYMBOLIC flags is still a requirement for the dynamic linker
as well.
(see http://www.sco.com/developers/gabi/2012-12-31/ch5.dynamic.html )
Bug: 18186310
(cherry picked from commit 96bc37f2e1 )
Change-Id: Ie217be4f3305d877066e4cfe91975ae1c7768330
2014-10-31 17:03:59 -07:00
Elliott Hughes
748fbe5c41
Fix a couple more cases of missing CLOEXEC.
...
The debuggerd case can probably never happen, because you're crashing at this
point anyway. The system property one seems possible though.
Bug: 18186310
(cherry picked from commit 0dc39f9952 )
Change-Id: I3e84488fc246f6c28cbd82e96d0cd4343a12c28a
2014-10-31 17:03:21 -07:00
Dmitriy Ivanov
d5eb10875a
Temporary disable DL_WARNs for unused DT_*
...
Bug: 17552334
Bug: 18186310
(cherry picked from commit 1b77423eff )
Change-Id: I8a9d05195a862bc287fff7156913606f0311b8bb
2014-10-31 17:02:14 -07:00
Dmitriy Ivanov
09608848ed
Fix 64bit build
...
Bug: 18186310
(cherry picked from commit f240aa8089 )
Change-Id: Id46f1f9be90a17a58fb44d3540095c8c685c9726
2014-10-31 17:02:14 -07:00