docs: Added behavior change for dynamic linker when app requests for a

shared library with text relocations to be loaded.
bug: 24106254

Change-Id: I25c389cd37d1fa3a2d80221da2041169b786be71
This commit is contained in:
Quddus Chong
2015-09-15 17:20:03 -07:00
parent 84a666dc3d
commit be006f6d0d

View File

@@ -308,6 +308,15 @@ implemented. Apps which previously worked that have bad {@code DT_NEEDED} entrie
{@code dlopen(3)} (as opposed to being referenced by {@code DT_NEEDED} entries).</p> {@code dlopen(3)} (as opposed to being referenced by {@code DT_NEEDED} entries).</p>
</p> </p>
<p>
On previous versions of Android, if your app requested the system to load a shared library with
text relocations, the system displayed a warning but still allowed the library to be loaded.
Beginning in this release, the system rejects this library if your app's target SDK version is 23
or higher. To help you detect if a library failed to load, your app should log the
{@code dlopen(3)} failure, and include the problem description text that the {@code dlerror(3)}
call returns. To learn more about handling text relocations, see this
<a href="https://wiki.gentoo.org/wiki/Hardened/Textrels_Guide" class="external-link">guide</a>.</p>
<h2 id="behavior-hardware-id">Access to Hardware Identifier</h2> <h2 id="behavior-hardware-id">Access to Hardware Identifier</h2>
<p>To provide users with greater data protection, starting in this release, Android <p>To provide users with greater data protection, starting in this release, Android
removes programmatic access to the devices local hardware identifier for removes programmatic access to the devices local hardware identifier for