On Tue, 2009-11-03 at 14:10 +0100, Vincent R. wrote:
> I have been fired (the company I was working for doesn't have money
> anymore) so I have some time to answer you ;-)

Auch. Sorry to see that. 

> Microsoft changed the way memory was managed on wince > 4.2 and now from
> what I read
> PE section needs to have Read attribute as much as possible.

Do you mean READONLY ? (The flag with that name in the section list you
copied from objdump ?)

> I already did this job one year ago but let's do it again here is the dump
> of a 
> dll compiled with msvc2008 targetting PocketPC2003(ARMV4) and without
> debug data :

I have been decoding a couple of these myself to figure out what is
wrong. In my example, IAT is indeed NULL, but there is a .idata section.
This looks like an error in our toolset.

> Then about sections you can see that .idata and .bss are not READONLY
> that's why .bss should be put inside .data because it seems to be the only
> one section allowed to have WRITE characteristics.

I'm not sure I get the argument here.

Do we know whether this is a requirement, or do we only suspect this ?

In my opinion, the goal is to create valid PE executables, not to create
the same ones that the Microsoft tools create.

> About 4) I don't find the corresponding field with objdump, I can only see
> it with PE Explorer.

I've studied a hex dump that shows that the fields in the "optional
header" are all NULL starting just after the "base relocation
table" / .reloc pointer (meaning : .debug, architecture, global pointer,
TLS table, load config table, bound import, iat, delay import
descriptor, CLR runtime header are all NULL). See p. 15 in the PECOFF
documentation -
http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx .

Is the field you're referring to one of those ? (They are listed in the
objdump output, I think. But maybe under unexpected names.)

> Finally when I am talking about changing import policy, 
> you should know when you are importing symbols from a DLL you can
> reference them either by their name(Import-By-Name)or by an index
> (Import-By-Ordinal).
[..]
> I have modified import policy to be as close as possible as binaries
> generated with msvc.

I don't understand the reason for doing this.

> You can find the sample code I am using here : www [DO_T] smartmobili
> [D.OT] com/Downloads/cegcc-bug-testDLL.zip
> It's commented and very simple.

Yes, I've been using it to some extent.

Would it be possible to add the files generated by MSVC to the zip ? I
don't have all the tools that you appear to have. (They wouldn't do me
much good on my Linux box either.)

> There is still a Windows Mobile device to win (and no Danny you cannot
> play because you already have lots of devices).

Actually I don't. But it would be good if Kai/Dave/Pedro - or someone
else - would be triggered by your offer.

        Danny
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to