[LLVMdev] Randomizing Functions & Global variables

Tanu Sharma tanusharma_04 at yahoo.com
Thu Jun 2 14:12:22 PDT 2005


By randomization of functions I mean the manner in whch they are called , so that has to do with address.I wish to randomize the order of calls made to functions when a program is run.

Reid Spencer <reid at x10sys.com> wrote:Can you explain a little bit more about what you mean by "randomize"
functions or global variables? What aspect of them do you want to
randomize? Their address? Their value? Something else?

Reid.

On Thu, 2005-06-02 at 13:53 -0700, Tanu Sharma wrote:
> I would try that ..Thanks
> 
> Another thing that I want to do is to randomize functions within a
> program (or file ), whatever is easier to do in llvm .Also please tell
> me how can I randomize global variables ?
> 
> Thanks
> TS
> 
> 
> Chris Lattner wrote:
> On Mon, 30 May 2005, Tanu Sharma wrote:
> 
> > I have been trying to compile the SPEC benchmark but have
> failed even 
> > after several attempts.The first error I get while trying to
> run is :
> 
> There are two ways to do this:
> 
> 1. Use the llvm-test harness
> 2. Use the official spec harness with -Wl,-native-cbe or -Wl,-
> native flags
> to llvm-gcc.
> 
> -Chris
> 
> >
> --------------------------------------------------------------------
> >
> > Error loading program '../00000002/gzip_base.x86_linux.bc':
> Can't open file: ../00000002/gzip_base.x86_linux.bc
> >
> >
> -----------------------------------------------------------------------
> >
> >
> >
> > Has anyone tried doing this ?Could you please tell me the
> changes required to compile it with llvm.
> >
> >
> >
> > Thanks
> >
> > TS
> >
> >> ---------------------------------
> > Yahoo! Mail Mobile
> > Take Yahoo! Mail with you! Check email on your mobile phone.
> 
> -Chris
> 
> -- 
> http://nondot.org/sabre/
> http://llvm.cs.uiuc.edu/
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
> 
> 
> ______________________________________________________________________
> Discover Yahoo!
> Stay in touch with email, IM, photo sharing & more. Check it out!
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050602/16a4199c/attachment.html>


More information about the llvm-dev mailing list