[PATCH] New --pe-dll-characteristcs switch for PE ld.
Fri Mar 6 13:31:00 GMT 2009
2009/3/6 Vincent R. <email@example.com>:
> And while you play with PE format, I have noticed that binutils has a
> different way
> of considering Import Table size in DLLs.
> Indeed if you take the same source code, for instance linpng and you
> compile one with MS Visual
> and the other with gcc/binutils and look at code generated you will see
> that in Data directories
> size of Import Table is only equal to Import Directory Table(IDT) with MS
> Visual and is equal to
> IDT + ILT +DLLName with gcc.
> I think ktietz already knows that and has a patch for it that also fix some
> other minor issues.
Yes, I have a patch for it to paper-bag it, but this patch has some
problems when used with pseudo-relocation version 1. For this version
the IAT can't be calculated proper, because the IAT-entries are put
everywhere in code/data/etc . For version 2, where the IAT is a
continoues block, it works.
At the moment I work on a patch to add some of the missing issues in
for idata, NO_LOAD, and weak externals as the pe-coff spec describes
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
More information about the Binutils