Displaying 2 results from an estimated 2 matches for "20e3fceb".
2015 Nov 06
2
How does -fPIE get passed from clang to llc when run on a .ll file?
If I create an llvm IR file (.ll) using clang like this:
clang -v -emit-llvm -fPIC -O0 -S global_dat.c -o global_dat_x86_pic.ll
And then take a look at the resulting .ll file, I see near the bottom:
!0 = !{i32 1, !"PIC Level", i32 2}
Now if I do the same, but specify -fPIE:
clang -v -emit-llvm -fPIE -O0 -S global_dat.c -o global_dat_x86_pie.ll
And then look at the resulting
2015 Nov 06
2
How does -fPIE get passed from clang to llc when run on a .ll file?
...clang -v -emit-llvm -enable-pie -O0 -S global_dat.c -o
global_dat_x86_pie.ll
clang: warning: argument unused during compilation: '-e nable-pie'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151106/20e3fceb/attachment-0001.html>