Closed Ziyue-Zhang closed 2 months ago
I do not know about -fPIC
. Any test for this?
Or maybe other people familar with this should have a review. I don't know much about this option
I do not know about
-fPIC
. Any test for this?Or maybe other people familar with this should have a review. I don't know much about this option
when I run make riscv64-xs_defconfig and make, there is a compilation failure. Using -fPIC can solve it. I also don't know why using -fPIC can solve this problem, fpic is generally used when compiling dynamic link libraries. Maybe using fpic doesn't really solve the problem.
Following is my compile error:
.L737' in read-only section
.text'
/usr/bin/ld: /tmp/ccJtUK8R.ltrans4.ltrans.o: in function `tcache_init.constprop.0':