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/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to