<div dir="ltr">Hello,<div><br></div><div>Correct, libraries are always position independent. This is how we dealt with this problem in Serval Mesh, by only using servald as a library.</div><div><br></div><div>Paul.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 7, 2014 at 5:39 AM, Nathan of Guardian <span dir="ltr"><<a href="mailto:nathan@guardianproject.info" target="_blank">nathan@guardianproject.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I finally updated my Nexus 7 to use the latest Android L/5.0 developer<br>
preview ROMs<br>
<br>
I've updated Orbot's Makefile to support a simple command line arg for<br>
enabling PIE or not:<br>
<a href="https://github.com/n8fr8/orbot/commit/7f50f79b0e3ebbb0dd97845445dbb693f3fd541c" target="_blank">https://github.com/n8fr8/orbot/commit/7f50f79b0e3ebbb0dd97845445dbb693f3fd541c</a><br>
<br>
For PIE-enabled/Android-16 binaries:<br>
> make polipo PIEFLAGS="-fPIE -pie" NDK_PLATFORM_LEVEL="16"<br>
<br>
For non-PIE/Android-9 through 15 binaries:<br>
> make polipo PIEFLAGS="" NDK_PLATFORM_LEVEL="9"<br>
<br>
I can verify that if I try to run the non-PIE binaries on L, they do not<br>
work.<br>
<br>
Now, when I decided to install Courier (securereader) and ChatSecure<br>
from the Google Play store existing versions, they both installed and<br>
executed perfectly. They both contain native code, but they are used as<br>
shared libraries and not command line executables like with Orbot.<br>
<br>
So, does that mean the PIE setting only affected executables and not<br>
libraries, perhaps?<br>
<br>
<br>
--<br>
 Nathan of Guardian<br>
 <a href="mailto:nathan@guardianproject.info">nathan@guardianproject.info</a><br>
_______________________________________________<br>
Guardian-dev mailing list<br>
<br>
Post: <a href="mailto:Guardian-dev@lists.mayfirst.org">Guardian-dev@lists.mayfirst.org</a><br>
List info: <a href="https://lists.mayfirst.org/mailman/listinfo/guardian-dev" target="_blank">https://lists.mayfirst.org/mailman/listinfo/guardian-dev</a><br>
<br>
To Unsubscribe<br>
    Send email to: <a href="mailto:Guardian-dev-unsubscribe@lists.mayfirst.org">Guardian-dev-unsubscribe@lists.mayfirst.org</a><br>
    Or visit: <a href="https://lists.mayfirst.org/mailman/options/guardian-dev/paul%40servalproject.org" target="_blank">https://lists.mayfirst.org/mailman/options/guardian-dev/paul%40servalproject.org</a><br>
<br>
You are subscribed as: <a href="mailto:paul@servalproject.org">paul@servalproject.org</a><br>
</blockquote></div><br></div>