File tree 1 file changed +24
-8
lines changed
1 file changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,39 @@ At the moment `--target=LLVM` behaves more like a `--no-asm`
15
15
switch, eliminating all the assembly for which there are vanilla C definitions.
16
16
17
17
18
- ## Recipe for libc.so.bc
18
+ ## Recipe for libc.so.bc using gllvm
19
19
20
- Install [ wllvm.] ( https://github.com/SRI-CSL/whole-program-llvm.git )
21
- Then:
20
+ Install [ gllvm,] ( https://github.com/SRI-CSL/gllvm.git )
21
+ then configure via:
22
+ ```
23
+ CC=gclang WLLVM_CONFIGURE_ONLY=1 ./configure --target=LLVM --build=LLVM --prefix=<install dir>
24
+ ```
25
+ Then proceed via
26
+ ```
27
+ make
28
+ cd lib
29
+ get-bc -b libc.a
30
+ cp libc.a.bc <wherever you want your static bitcode library to live>
31
+ get-bc libc.so
32
+ cp libc.so.bc <wherever you want your shared bitcode library to live>
33
+ ```
34
+
35
+ ## Recipe for libc.so.bc using wllvm
22
36
37
+ Install [ wllvm,] ( https://github.com/SRI-CSL/whole-program-llvm.git )
38
+ then configure via:
39
+ ```
40
+ CC=wllvm WLLVM_CONFIGURE_ONLY=1 ./configure --target=LLVM --build=LLVM --prefix=<install dir>
41
+ ```
42
+ Then proceed via
23
43
```
24
- WLLVM_CONFIGURE_ONLY=1 CC=wllvm ./configure --target=LLVM --build=LLVM --prefix=<install dir>
25
44
make
26
45
cd lib
27
- extract-bc --bitcode libc.a
46
+ extract-bc -b libc.a
28
47
cp libc.a.bc <wherever you want your static bitcode library to live>
29
48
extract-bc libc.so
30
49
cp libc.so.bc <wherever you want your shared bitcode library to live>
31
50
```
32
- Note the ` --bitcode ` option is a recent addition to ` wllvm ` and currently
33
- only available in [ SRI's fork] ( https://github.com/SRI-CSL/whole-program-llvm ) ,
34
- I will eventually push it up stream, but have not yet.
35
51
36
52
## Ian's notes on what to do with the bitcode
37
53
You can’t perform that action at this time.
0 commit comments