This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
What different between PIC code and non-PIC code?
- To: gcc@gcc.gnu.org
- Subject: What different between PIC code and non-PIC code?
- From: pschen@mmpp5.iie.ncku.edu.tw
- Date: Tue, 24 Aug 1999 10:36:18 +0800 (CST)
Hi:
PIC is position independent code.
If the program is PIC, then that program can be relocated
at run-time. I dont compile a program using -fPIC option normally.
The program also can be relocated at run-time. That is no
different between using -fPIC and no-using. But I see the compiler
output asemble-files between them, it is different.
That is confused me. How to explain it?
There is SYMBLE "_GLOBAL_OFFSET_TABLE" in the assemble-file from gcc by
using -fPIC option. What is _GLOBAL_OFFSET_TABLE?
Thanks your help, Thanks very much!
Ps. Chen