svadev AT lists.siebelschool.illinois.edu
Subject: Svadev mailing list
List archive
- From: Daniel Huang <dan.e.huang AT gmail.com>
- To: John Criswell <criswell AT illinois.edu>
- Cc: "<svadev AT cs.illinois.edu>" <svadev AT cs.illinois.edu>
- Subject: Re: [svadev] Safecode -flto flag generates link-time error
- Date: Fri, 7 Dec 2012 18:51:52 -0500
- List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev/>
- List-id: <svadev.cs.uiuc.edu>
Hmm, I did a make install on LLVM, projects/poolalloc and projects/safecode. Any other thoughts? I'll try the -L anyway.
On Fri, Dec 7, 2012 at 6:50 PM, John Criswell <criswell AT illinois.edu> wrote:
You need to specify a -L flag that will tell clang where to find the SAFECode libraries. I believe that the -L flag should not be necessary if you do a "make install" to install SAFECode clang, but if you're using clang out of the build tree, then the -L option will be necessary.On 12/7/12 5:46 PM, Daniel Huang wrote:
Hi,
I recently built Safecode from the release_32 branch with the -DPOOLALLOC flag turned on. Running:
clang -flto -fmemsafety -o ex1.o ex1.c
-- John T.
returns:
Undefined symbols:"___fastgepcheck", referenced from:llvm bitcode in sc1-ouTaUh.o"___faststorecheck", referenced from:llvm bitcode in sc1-ouTaUh.o"___loadcheck", referenced from:llvm bitcode in sc1-ouTaUh.o"___fastloadcheck", referenced from:llvm bitcode in sc1-ouTaUh.o"___storecheck", referenced from:llvm bitcode in sc1-ouTaUh.old: symbol(s) not foundclang: error: linker command failed with exit code 1 (use -v to see invocation)
Any thoughts on why this is happening? I think I am using the correct libLTO.dylib. Running the above without the -flto flag is fine.
Regards,Dan
_______________________________________________ svadev mailing list svadev AT cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/svadev
- [svadev] Safecode -flto flag generates link-time error, Daniel Huang, 12/07/2012
- Re: [svadev] Safecode -flto flag generates link-time error, John Criswell, 12/07/2012
- Re: [svadev] Safecode -flto flag generates link-time error, Daniel Huang, 12/07/2012
- Re: [svadev] Safecode -flto flag generates link-time error, John Criswell, 12/07/2012
Archive powered by MHonArc 2.6.16.