On Wednesday 30 December 2009 16:28:57, Vincent R. wrote:
> On Wed, 30 Dec 2009 15:16:11 +0000, Pedro Alves <alves....@gmail.com>
> wrote:
> > On Wednesday 30 December 2009 14:56:18, Vincent R. wrote:
> >> 
> >> > #if defined(TARGET_IS_arm_wince_pe)
> >> > /* Windows CE ignores the image base, but we want to
> >> >    be compatible with MSFT's tools.  */
> >> > #undef NT_DLL_IMAGE_BASE
> >> > #define NT_DLL_IMAGE_BASE               0x00010000
> >> > #endif
> >> 
> >> OK but I still don't understand this comment. Pedro what do you mean by
> >> compatible with
> >> MSFT's tools ?
> > 
> > "compatible" here just meant, do the same as MSFT's linker does.
> > 0x10000 was the image base Visual Studio was setting by default
> > at the time I wrote that.  This minimized spurious differences
> > when comparing dumps of images generated with ld with MSFT
> > generated images.  Since this change is in our binutils copy since
> > 2006, I'm confused when you say only recent binutils started
> > using 0x10000 as image base.  I don't think this hunk is
> > in upstream binutils --- could it be that you were using
> > a pristine binutils from upstream before?
> 
> Yes you are right I think I was using some custom binutils but now I
> understand what you meant
> I suppose its better to declare it as 0x10000000 because this is what MS
> linker uses now.
> 
> 

Yes, I think you're right.  It may be that I confused the image base
on exes vs dlls.  I honestly don't remember.

http://msdn.microsoft.com/en-us/library/ms680339(VS.85).aspx

"ImageBase

    The preferred address of the first byte of the image when it is loaded in 
memory. This value is a multiple of 64K bytes. The default value for DLLs is 
0x10000000. The default value for applications is 0x00400000, except on Windows 
CE where it is 0x00010000."

-- 
Pedro Alves

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to