Dimitry Ivanov
beb609bba8
am fb3357e2
: Revert "[MIPS] Support FR=0 emulation on FR=1 64-bit FP registers"
...
* commit 'fb3357e2eb9366d87a8da96e1a0744c9b1f22af9':
Revert "[MIPS] Support FR=0 emulation on FR=1 64-bit FP registers"
2015-06-24 21:09:43 +00:00
Dimitry Ivanov
fb3357e2eb
Revert "[MIPS] Support FR=0 emulation on FR=1 64-bit FP registers"
...
This reverts commit 40d9e7bf84
.
Bug: http://b/22045439
Change-Id: Ia9c56f65d35e404332a462f46460335cef39f0a4
2015-06-24 20:42:33 +00:00
Duane Sand
40d9e7bf84
[MIPS] Support FR=0 emulation on FR=1 64-bit FP registers
...
Enables running of older MIPS NDK-built apps on mips64r6.
Works with kernel supporting FRE emulation, and old kernels.
Bug: http://b/21555893
Change-Id: I13923fe62cd83ad1d337f13a50f2eda2dfdd906f
(cherry picked from commit d02ec08427
)
2015-06-23 10:33:37 -07:00
Dmitriy Ivanov
e4ad91f86a
Remove text-relocs support for apps targeting M+
...
Remove support of text-relocations for apps targeting sdk version > 22
Bug: http://b/20013628
Change-Id: I2127739544480c747315e32df15dfbd1b79de4f5
(cherry picked from commit 3e6f780754
)
2015-06-22 12:26:53 -07:00
Dmitriy Ivanov
5fa858c565
Merge "Remove text-relocs support for apps targeting M+" into mnc-dev
2015-06-22 19:25:15 +00:00
Duane Sand
d02ec08427
[MIPS] Support FR=0 emulation on FR=1 64-bit FP registers
...
Enables running of older MIPS NDK-built apps on mips64r6.
Works with kernel supporting FRE emulation, and old kernels.
Change-Id: I13923fe62cd83ad1d337f13a50f2eda2dfdd906f
2015-06-21 11:36:57 -07:00
David Srbecky
c08c88b5fc
Merge "Add flag that makes linker honor min(p_vaddr)" into mnc-dev
2015-06-19 18:26:21 +00:00
Dmitriy Ivanov
34e8e47d32
Add flag that makes linker honor min(p_vaddr)
...
(cherry picked from commit 8a11628355
)
Bug: 21924613
Bug: http://b/21523078
Change-Id: I3f944a08dd2ed1df4d8a807da4fee423fdd35eb7
2015-06-18 23:58:34 +01:00
Dmitriy Ivanov
a9703332f6
Improve library lookup logic
...
Linker tries to open a library even if it can
be found by soname. This only happens if the
library was previously opened under different
target sdk version.
Bug: http://b/21876587
Bug: http://b/21153477
Bug: http://b/21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I7dbbcc3b49933bffd89ca0af55371e1a1f2bf4c2
(cherry picked from commit 28154f5c56
)
2015-06-17 17:16:44 -07:00
Dmitriy Ivanov
28154f5c56
Improve library lookup logic
...
Linker tries to open a library even if it can
be found by soname. This only happens if the
library was previously opened under different
target sdk version.
Bug: http://b/21876587
Bug: http://b/21153477
Bug: http://b/21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I7dbbcc3b49933bffd89ca0af55371e1a1f2bf4c2
2015-06-17 16:36:03 -07:00
Dimitry Ivanov
d2c81ed000
Revert "Improve library lookup logic"
...
This reverts commit 455c145e3c
.
Bug: http://b/21876587
Bug: http://b/21153477
Bug: http://b/21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: Iad21ddfc1ac749d12bcb52384a8d937b307dd03b
2015-06-17 21:34:25 +00:00
Dimitry Ivanov
1eba2f4ce1
Revert "Improve library lookup logic"
...
This reverts commit ea4ef52fa4
.
Bug: http://b/21876587
Bug: http://b/21153477
Bug: http://b/21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I23ddbd69294023c56c9cbabad29d26c8f736ab43
2015-06-17 20:42:20 +00:00
Dmitriy Ivanov
455c145e3c
Improve library lookup logic
...
Linker tries to open a library even if it can
be found by soname. This only happens if the
library was previously opened under different
target sdk version.
Bug: http://b/21876587
Bug: http://b/21153477
Bug: http://b/21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I769a04b6b1368a107d43f399297be14050338bbc
(cherry picked from commit ea4ef52fa4
)
2015-06-17 10:18:28 -07:00
Nikola Veljkovic
dee130f598
Revert "[MIPS] Do not use compact branches until GDB supports them"
...
This reverts commit 3cec6eca92
.
2015-06-17 17:17:54 +02:00
Dmitriy Ivanov
ea4ef52fa4
Improve library lookup logic
...
Linker tries to open a library even if it can
be found by soname. This only happens if the
library was previously opened under different
target sdk version.
Bug: http://b/21876587
Bug: http://b/21153477
Bug: http://b/21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I769a04b6b1368a107d43f399297be14050338bbc
2015-06-16 16:52:21 -07:00
Dmitriy Ivanov
3e6f780754
Remove text-relocs support for apps targeting M+
...
Remove support of text-relocations for apps targeting sdk version > 22
Bug: http://b/20013628
Change-Id: I2127739544480c747315e32df15dfbd1b79de4f5
2015-06-12 15:09:54 -07:00
Dmitriy Ivanov
ae1e75458a
Merge "Make path to apk compliant with jar url format" into mnc-dev
2015-06-11 21:55:09 +00:00
Dmitriy Ivanov
402a75060d
Make path to apk compliant with jar url format
...
Bug: http://b/21726698
Bug: http://b/8076853
Change-Id: I8c1942a98fe3119746b4dc9f60a7ff215ea7009c
(cherry picked from commit 524f1f1efe
)
2015-06-11 11:01:23 -07:00
Dmitriy Ivanov
38263dd91a
Fix l_addr for the linker
...
Bug: http://b/21765603
Change-Id: I97710ef2436eac2160e29ba3e4521f6e63a1907c
(cherry picked from commit 175dae92d7
)
2015-06-10 20:05:48 -07:00
Dmitriy Ivanov
175dae92d7
Fix l_addr for the linker
...
Bug: http://b/21765603
Change-Id: I97710ef2436eac2160e29ba3e4521f6e63a1907c
2015-06-10 19:47:26 -07:00
Evgenii Stepanov
72af1235e4
Merge "Support DT_RUNPATH in the linker."
2015-06-10 23:56:03 +00:00
Evgenii Stepanov
6865082ca6
Support DT_RUNPATH in the linker.
...
Only $ORIGIN substitution is supported, but not linux-specific $LIB
or $PLATFORM.
Change-Id: I5814a016c7c91afba080230a547a863686e7c2b9
2015-06-10 16:44:22 -07:00
Elliott Hughes
66c3b2db2f
Statically linked executables should honor AT_SECURE.
...
Bug: http://b/19647373
Change-Id: I10e7682d9cec26a523f1a3597ca5326c3ca42ebe
(cherry picked from commit 1801db3d3f
)
2015-06-10 16:10:18 -07:00
Elliott Hughes
ba1d40a3f1
Merge "Statically linked executables should honor AT_SECURE."
2015-06-10 22:49:57 +00:00
Dmitriy Ivanov
f3463db7eb
Merge "Check if strtab exists before using it"
2015-06-10 22:26:07 +00:00
Dmitriy Ivanov
07f4f5f9ed
Check if strtab exists before using it
...
Bug: http://b/21696087
Change-Id: I1e22d5fd6fe2faead332249493123c9a085081e9
(cherry picked from commit 624b8f17a1
)
2015-06-10 15:25:48 -07:00
Elliott Hughes
1801db3d3f
Statically linked executables should honor AT_SECURE.
...
Bug: http://b/19647373
Change-Id: I10e7682d9cec26a523f1a3597ca5326c3ca42ebe
2015-06-09 20:10:25 -07:00
Dmitriy Ivanov
524f1f1efe
Make path to apk compliant with jar url format
...
Bug: http://b/21726698
Bug: http://b/8076853
Change-Id: I8c1942a98fe3119746b4dc9f60a7ff215ea7009c
2015-06-09 13:47:46 -07:00
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
Dmitriy Ivanov
624b8f17a1
Check if strtab exists before using it
...
Bug: http://b/21696087
Change-Id: I1e22d5fd6fe2faead332249493123c9a085081e9
2015-06-08 10:41:33 -07:00
Dmitriy Ivanov
1913352c6b
Backward compatibility for dlsym(RTLD_DEFAULT, ...)
...
Do not skip RTLD_LOCAL libraries in dlsym(RTLD_DEFAULT, ...)
if the library is opened by application with target api level <= 22
Bug: http://b/21565766
Bug: http://b/17512583
Change-Id: Ic45ed1e4f53e84cba9d74cab6b0049c0c7aa8423
(cherry picked from commit 04f7e3e955
)
2015-06-02 18:09:23 -07:00
Dmitriy Ivanov
04f7e3e955
Backward compatibility for dlsym(RTLD_DEFAULT, ...)
...
Do not skip RTLD_LOCAL libraries in dlsym(RTLD_DEFAULT, ...)
if the library is opened by application with target api level <= 22
Bug: http://b/21565766
Bug: http://b/17512583
Change-Id: Ic45ed1e4f53e84cba9d74cab6b0049c0c7aa8423
2015-06-02 18:06:24 -07:00
Dmitriy Ivanov
11b15b23aa
Merge "Work around for libraries without dt_soname"
2015-06-02 21:09:41 +00:00
Dmitriy Ivanov
75108f4f83
Work around for libraries without dt_soname
...
Applies only for apps targeting sdk version <= 22
Bug: http://b/21565766
Change-Id: If0bf2229dc1341e9ca09f9a05d0890515273d5a2
(cherry picked from commit 38c37d6705
)
2015-06-02 14:02:22 -07:00
Dmitriy Ivanov
38c37d6705
Work around for libraries without dt_soname
...
Applies only for apps targeting sdk version <= 22
Bug: http://b/21565766
Change-Id: If0bf2229dc1341e9ca09f9a05d0890515273d5a2
2015-06-02 13:45:15 -07:00
Dmitriy Ivanov
c4ebe60e1a
Fix dlsym(handle_of_main_executable, ...)
...
According to man dlopen(3) and posix docs in the case when si is handle
of the main executable we need to search not only in the executable and its
dependencies but also in all libraries loaded with RTLD_GLOBAL.
see also: http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html
Bug: http://b/21528224
Bug: http://b/17512583
Bug: https://code.google.com/p/android/issues/detail?id=173822
Change-Id: Ib2801367ba48b6f3704da89a6d9f5e6911430013
(cherry picked from commit f439b5a318
)
2015-06-01 16:57:33 -07:00
Dmitriy Ivanov
f439b5a318
Fix dlsym(handle_of_main_executable, ...)
...
According to man dlopen(3) and posix docs in the case when si is handle
of the main executable we need to search not only in the executable and its
dependencies but also in all libraries loaded with RTLD_GLOBAL.
see also: http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html
Bug: http://b/21528224
Bug: http://b/17512583
Bug: https://code.google.com/p/android/issues/detail?id=173822
Change-Id: Ib2801367ba48b6f3704da89a6d9f5e6911430013
2015-06-01 14:33:43 -07:00
Elliott Hughes
d70891687d
Merge "[MIPS] Do not use compact branches until GDB supports them"
2015-05-29 04:39:24 +00:00
Dmitriy Ivanov
ca10ac6dd4
Improve some of error/warning messages
...
Bug: http://b/20464031
Change-Id: I948141c46f9e054fc45f5934153dee56ce3cd558
(cherry picked from commit 087005f37e
)
2015-05-28 15:28:41 -07:00
Dmitriy Ivanov
5511551009
Merge "Improve some of error/warning messages"
2015-05-28 22:28:13 +00:00
Dmitriy Ivanov
4a7c3af054
Work around incorrect dt_needed entries
...
This applies for apps targeting sdk<=22 and
only for lp32 platforms.
Bug: http://b/21364029
Change-Id: I903e81c9ccda2a8beaba1d132d68c77d30a4cdb2
(cherry picked from commit d974e88046
)
2015-05-28 15:25:55 -07:00
Dmitriy Ivanov
d974e88046
Work around incorrect dt_needed entries
...
This applies for apps targeting sdk<=22 and
only for lp32 platforms.
Bug: http://b/21364029
Change-Id: I903e81c9ccda2a8beaba1d132d68c77d30a4cdb2
2015-05-28 14:56:42 -07:00
Dmitriy Ivanov
087005f37e
Improve some of error/warning messages
...
Bug: http://b/20464031
Change-Id: I948141c46f9e054fc45f5934153dee56ce3cd558
2015-05-28 11:44:31 -07:00
Dmitriy Ivanov
d8ead18145
Add functions to provide target sdk version
...
Bug: http://b/21364029
Change-Id: I8648d1bff6c8fd6e7cd12da7f128e048b9f2829a
(cherry picked from commit 79fd668bb4
)
2015-05-27 16:20:16 -07:00
Dmitriy Ivanov
79fd668bb4
Add functions to provide target sdk version
...
Bug: http://b/21364029
Change-Id: I8648d1bff6c8fd6e7cd12da7f128e048b9f2829a
2015-05-27 14:31:36 -07:00
Nikola Veljkovic
3cec6eca92
[MIPS] Do not use compact branches until GDB supports them
...
GDB does not yet have support for compact branches, and is not able
to set a breakpoint on rtld_db_dlactivity(), which is compiled into
one JIC instruction. Unfortunately, We cannot turn off generation of
JIC compact branch. Instead, add unoptimized FP handling code, so GDB
will have something to land on.
Change-Id: Iddcf40ec018972398179018d049b8323fcd258b7
2015-05-25 16:28:14 +02:00
Dmitriy Ivanov
15309fde91
Fix RTLD_NEXT lookup for the local_group
...
Linker used to skip RTLD_NEXT within local_group when
caller->next is nullptr (which represents load order
but not the order within local_group dependency tree)
Bug: http://b/21380474
Change-Id: I178fc4657b19bceb871635b177c1df67855b1708
(cherry picked from commit b96ac41b32
)
2015-05-22 15:24:13 -07:00
Dmitriy Ivanov
b96ac41b32
Fix RTLD_NEXT lookup for the local_group
...
Linker used to skip RTLD_NEXT within local_group when
caller->next is nullptr (which represents load order
but not the order within local_group dependency tree)
Bug: http://b/21380474
Change-Id: I178fc4657b19bceb871635b177c1df67855b1708
2015-05-22 19:46:11 +00:00
Dmitriy Ivanov
8557eeb0ad
Merge "Apply work around b/19059885 to x86" into mnc-dev
2015-05-16 16:57:16 +00:00
Dmitriy Ivanov
a42b5bcd89
Merge "Apply work around b/19059885 to x86"
2015-05-16 16:56:49 +00:00