Import hs-plugins cvs
This commit is contained in:
8
examples/load/rawload/Main.hs
Normal file
8
examples/load/rawload/Main.hs
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
import Plugins
|
||||
|
||||
main = do
|
||||
m <- loadRawObject "t.o"
|
||||
print (path m)
|
||||
resolveObjs
|
||||
-- loadFunction m "sym"
|
6
examples/load/rawload/Makefile
Normal file
6
examples/load/rawload/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
TEST= load/rawload
|
||||
|
||||
EXTRA_OBJS=c.o
|
||||
|
||||
TOP=../../..
|
||||
include ../../eval.mk
|
1
examples/load/rawload/t.c
Normal file
1
examples/load/rawload/t.c
Normal file
@ -0,0 +1 @@
|
||||
int sym(void) { return 1; }
|
Reference in New Issue
Block a user