Re: [Cegcc-devel] __image_base__ update

2009-04-19 Thread Johnny Willemsen
Hi, > > The cygwin people also use _image_base, see > > http://www.cygwin.com/ml/cygwin-developers/2009-01/msg00014.html > > __image_base__ is a linker defined symbol. Since WinCE ARM doesn't > prepend an extra underscore on C symbol names, you reference it > from C as: > > extern char __image

Re: [Cegcc-devel] __image_base__ update

2009-04-19 Thread Pedro Alves
On Wednesday 15 April 2009 13:08:37, Johnny Willemsen wrote: > Hi > > The cygwin people also use _image_base, see > http://www.cygwin.com/ml/cygwin-developers/2009-01/msg00014.html __image_base__ is a linker defined symbol. Since WinCE ARM doesn't prepend an extra underscore on C symbol names, y

Re: [Cegcc-devel] __image_base__ update

2009-04-18 Thread Danny Backx
Three pieces of advise (I know I'll sound like a kindergarten teacher, sorry about that) : - Do things one step at a time. (Try something simple. If that works, move on, etc.) Otherwise you end up debugging several problems at the same time. - Report to the list about these steps. This will all

Re: [Cegcc-devel] __image_base__ update

2009-04-17 Thread Pedro Alves
OMG, is that all it took? Did it work OK? Is there an easy way to try out this i386/CE stuff? Like, is there a free emulator or something? It would be great if it was documented on the wiki. On Friday 17 April 2009 19:16:27, Danny Backx wrote: > The solution to build gdbserver cleanly is not h

Re: [Cegcc-devel] __image_base__ update

2009-04-17 Thread Pedro Alves
I'm just finding out about all this great work you guys have been up on getting building a i386-mingw32ce. This is great stuff! On Thursday 16 April 2009 18:34:38, Danny Backx wrote: > Depending on whether binutils stays the same, I'd say the > src/mingw/include/_mingw.h file needs to change so t

Re: [Cegcc-devel] __image_base__ update

2009-04-17 Thread Johnny Willemsen
Hi, > The solution to build gdbserver cleanly is not hard, see below. After > confirmation from you, I'll submit this to the appropriate gdb mailing > list. We have spend most of the time today to try to get an ACE test running, but they crash at start of the application. Continuing that next wee

Re: [Cegcc-devel] __image_base__ update

2009-04-17 Thread Danny Backx
The solution to build gdbserver cleanly is not hard, see below. After confirmation from you, I'll submit this to the appropriate gdb mailing list. Danny dannypc: {621} diff -c configure.srv.orig configure.srv *** configure.srv.orig 2009-04-17 20:04:04.0 +0200 --- configure.srv

Re: [Cegcc-devel] __image_base__ update

2009-04-17 Thread Johnny Willemsen
Hi, Thanks, we are going to compile ACE/TAO for cegcc x86 and see if we can run one of our basic tests on the target. We will keep you informed on the results. Marcel, can you compile your ACE tree and try OS_Test on the x86 target? Johnny > Everything except src/profile compiles on my system.

Re: [Cegcc-devel] __image_base__ update

2009-04-16 Thread Danny Backx
I hacked the Makefile a bit, need to figure out why it was not behaving the way it should. There's now also a gdbserver.exe at the same place. dannypc: {500} file gdbserver.exe gdbserver.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit dannypc: {501} ls -l gdbserver.exe -rwxrwxr-

Re: [Cegcc-devel] __image_base__ update

2009-04-16 Thread Danny Backx
Everything except src/profile compiles on my system. The profile stuff has at least two issues. The easy one is a small configure issue related to underscores. The other is that mcount.c contains ARM assembler, not x86 assembler. Note that src/profile is rather funky stuff, I'd prefer to stay aw

Re: [Cegcc-devel] __image_base__ update

2009-04-16 Thread Johnny Willemsen
Hi, > That would require "a bit" of work to hook the binutils build system > into src/mingw. I don't think that this would be a very good idea, this > is too low level stuff. > > I've just committed a patch to SVN, can you review ? Looks ok. I will do a svn update tomorrow morning and do a compl

Re: [Cegcc-devel] __image_base__ update

2009-04-16 Thread Danny Backx
On Thu, 2009-04-16 at 19:40 +0200, Johnny Willemsen wrote: > > 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

Re: [Cegcc-devel] __image_base__ update

2009-04-16 Thread Johnny Willemsen
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(S

Re: [Cegcc-devel] __image_base__ update

2009-04-16 Thread Danny Backx
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 /* Desk

Re: [Cegcc-devel] __image_base__ update

2009-04-15 Thread Johnny Willemsen
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_

Re: [Cegcc-devel] __image_base__ update

2009-04-15 Thread Johnny Willemsen
Hi, When I check the history of /src/mingw/pseudo-reloc.c I see that version 345 also just has one underscore. Is this file really used for arm, the function name is _pei386_runtime_relocator. Johnny > I am looking why mingw doesn't link with x86. > > I think the issue is in > cegcc/src/mingw/

Re: [Cegcc-devel] __image_base__ update

2009-04-15 Thread Johnny Willemsen
Hi The cygwin people also use _image_base, see http://www.cygwin.com/ml/cygwin-developers/2009-01/msg00014.html Johnny > I am looking why mingw doesn't link with x86. > > I think the issue is in > cegcc/src/mingw/pseudo-reloc.c > > This file has a comment that it is ported to wince arm, but wh

[Cegcc-devel] __image_base__ update

2009-04-15 Thread Johnny Willemsen
Hi, I am looking why mingw doesn't link with x86. I think the issue is in cegcc/src/mingw/pseudo-reloc.c This file has a comment that it is ported to wince arm, but when I check Cegcc/src/newlib/newlib/libc/sys/wince/pseudo-reloc_t.c Then the extern is different Where the mingw version has: