This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Regarding GOT table in PIC code
- From: Chethan Palakshamurthy <pchethan at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 10 Jan 2012 15:54:29 +0530
- Subject: Re: Regarding GOT table in PIC code
>> 1. Does the dynamic linker map the physical pages for .data segments
>> such that GOT is at a fixed offset from code in logical address space?
>> is this true?
>
>Yes, it has to do this or it wouldn't be possible to find the GOT.
So, this method of paging is what makes it possible to share code
pages across processes? Several sources online(/books) mention that
PIC is the one which make code sharing across processes possible.
- Chethan