I'm not too sure about this one.

You're proposing to change (in src/mingw/pseudo-reloc.c) :
extern char __U(_image_base__);

But in src/mingw/include/_mingw.h, it says :
#ifdef UNDER_CE
/* ARM Windows CE is not underscored.  */
# define __U(SYM) _ ## SYM
# define __IMP(S) __imp_ ## S
#else
/* Desktop i386 Windows versions are underscored.  */
# define __U(SYM) SYM
# define __IMP(S) _imp__ ## S
#endif

And in src/binutils/ld/emulparams/arm_wince_pe.sh :
INITIAL_SYMBOL_CHAR=\"\"

Vs src/binutils/ld/emulparams/i386pe.sh :
INITIAL_SYMBOL_CHAR=\"_\"

Given that the current situation works (see your H3LLO mail), it would
appear best not to touch the binutils stuff for now. Unless you (or
someone else) has reasons to say that this target should behave
differently.

Depending on whether binutils stays the same, I'd say the
src/mingw/include/_mingw.h file needs to change so the __U macro looks
different.

Or am I overlooking something ?

        Danny

On Wed, 2009-04-15 at 21:04 +0200, Johnny Willemsen wrote:
> Hi,
> 
> > The cygwin people also use _image_base, see
> > http://www.cygwin.com/ml/cygwin-developers/2009-01/msg00014.html
> 
> With the following construct it doesn't link with ARM. Would it be possible
> to have 2 pseudo-reloc.c files, one for ARM and one for x86, or have
> ifdeffed code?
>  extern char _image_base__;
> 
> Johnny

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


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to