Hi,

> I'm not too sure about this one.

I wasn't also sure about this ;-)

> 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 ?

No, _mingw.h has to change. The check for UNDER_CE is not ok, it has to be a
check related to architecture. Can we add an include to get
INITIAL_SYMBOL_CHAR so that we get (not sure if this expands correctly)

# define __U(SYM) INITIAL_SYMBOL_CHAR ## SYM
# define __IMP(S) INITIAL_SYMBOL_CHAR ## _imp_ ## S

Else we have to change UNDER_CE to something like this:
#if defined UNDERCE && defined __arm__

Johnny


------------------------------------------------------------------------------
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