[llvm-commits] [LLVMdev] [PATCH] Add the disable_aslr option that will disable the address space layout randomization under AddressSanitizer on 10.6

Kostya Serebryany kcc at google.com
Fri Dec 9 11:23:48 PST 2011


On Fri, Dec 9, 2011 at 11:16 AM, Eric Christopher <echristo at apple.com>wrote:

>
> On Dec 9, 2011, at 11:12 AM, Kostya Serebryany wrote:
>
> > Yes, we have no ASRL with -no_pie.
> > Can we disable ASRL even with -pie?
> > On linux we can do it with "setarch x86_64 -R".
> >
>
> You asked about link time. Now it sounds like you're talking about runtime?
>

Link time is of course better.
But if there is a syscall (like the one used by setarch) we could call it
and reexec.
Using setenv("DYLD_NO_PIE")+reexec looks gross to me.


>
> > Another question: if asan would require -no_pie on Mac, will this be a
> serious limitation?
> >
>
> If asan required no pie on Linux, would it be a serious limitation?
>

For Linux, I don't think this will be too bad, but may cause some users a
bit of pain to rework their build files.
Luckily, asan and -pie work together on Linux quite well.
I don't know how important is "-pie" on Mac.

--kcc


>
> -eric
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111209/263af0fe/attachment.html>


More information about the llvm-commits mailing list