On Wed, Aug 8, 2012 at 10:18 AM, Kai Tietz <[email protected]> wrote:
> 2012/8/8 dashesy <[email protected]>:
>> Reading the Wikipedia page
>> (http://en.wikipedia.org/wiki/Position-independent_code) , it seems
>> Windows supports PIC on x64,
>> Please correct me if I am wrong.
>> I was wondering if I can build PIC dlls on x64.
>> This would be specially useful with "--enable-cygwin" to eliminate the
>> need to do rebaseall at least on x64 platform and avoid the fork
>> failures.
>>
>> Thanks
>> dashesy
>
> Well, you are right that x64 allows PIC in gcc.  But you have to be
> aware that even cygwin, and 32-bit native Windows images are *position
> independent*.  Just in comparison to ELF  the Windows PE(+)-COFF
> format is always a finally linked image. So PIC has here a different
> meaning, as shared objects are pretty different.
>
> Hope this helps,
> Kai
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________

Thanks for the answer; is there any reference that I can read further?
I do not understand if they are position independent why loader might
rebase them on load.

BTW, this is the line in Wikipedia "64-bit Windows has switched to
using position-independent code for DLLs as well and has abandoned
relocation"
And it references here: http://msdn.microsoft.com/en-us/magazine/bb985017.aspx

Thanks again
dashesy

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to