On Thursday 31 December 2009 19:33:35, Pedro Alves wrote: > > > 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."
I've now reverted that change. We default to 0x10000 for exes, and to 0x10000000 for dlls (you need to link with -Wl,--disable-auto-image-base to see the default, though). -- 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