search for: global_dat_x86_p

Displaying 1 result from an estimated 1 matches for "global_dat_x86_p".

Did you mean: global_dat_x86_pie
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 global_dat_x86_pie.ll file...