Hi Duncan,<div><br></div><div>Are the segmented stacks actually on separate memory segments? My intended purpose for placing different datatypes on separate stacks is such that memory accesses to one datatype won't be allowed to overflow to another datatype.</div>
<div><br></div><div>If they aren't, in fact, on separate memory segments, are you aware of a way to place a non-readable/-writable segment in between two other stack segments?</div><div><br></div><div>Thanks,</div><div>
<br></div><div>~Brent Roth~<br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 3:20 AM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Brent, LLVM supports segmented stacks, I suggest you do a case<br>
insensitive grep for segmented.stack in the source code (the . is<br>
to match any character).<br>
<br>
Ciao, Duncan.<div><div class="h5"><br>
<br>
On 03/06/13 00:35, Brent Gregory Roth wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Greetings,<br>
<br>
First, my apologies if I have incorrectly used any of these lists.<br>
<br>
I'm sending this email in order to get some help on where in the<br>
codebases for LLVM and/or Clang I should be looking in order to<br>
accomplish the following:<br>
<br>
- create 4 additional memory segment<br>
- - 2 to be used as "additional stacks"<br>
- - 2 to be used as "additional heaps"<br>
<br>
- modify the stack frame and stack pointer registers (in order to make<br>
use of the 2 "additional stacks")<br>
<br>
- modify segment descriptors, as needed, to support reads/writes to the<br>
additional segments<br>
<br>
- modify which stack variables go to which of the three stacks<br>
- - same for heaps<br>
<br>
Thank you.<br>
<br>
Sincerely,<br>
<br>
~Brent Roth~<br></div></div>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>