This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] New --pe-dll-characteristcs switch for PE ld.


2009/3/6 Vincent R. <forumer@smartmobili.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
them.

Cheers,
Kai


-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]