2012/8/8 dashesy <[email protected]>:
> On Wed, Aug 8, 2012 at 11:37 AM, Earnie Boyd
> <[email protected]> wrote:
>> On Wed, Aug 8, 2012 at 1:33 PM, dashesy wrote:
>>> 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
>>
>> For 64 bit binaries.  Not for 32 bit binaries running in the emulator.
>>  But does binutils support it for 64 bit binaries?
> That is the better way of asking my question.
> Does binutils support it for 64-bit binaries, if yes it might give
> -fPIC a new meaning (no longer a warning)

Sure,  x64 has PC-relocations.  If binutils wouldn't support
PC-relative relocations we wouldn't have x64 support at all.
  Sorry, I don't get the meaning here.  Nevertheless PE-COFF might
have base-relocations even for 64-bit.  But those are handled by
loader.  To avoid these complete you need to avoid some
language-constructs, nevertheless the IAT tables are aways fixed-bound
to a specific address of imported module.  If you have further
question about how PE(+)-COFF works, I recomment that you read the
pe-coff specification, which can be found on msdn for download.

Regards,
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