Hi Robert,

because you are using ARB EABI i expect it's a mmap issue because ARM EABI only 
supports mmap2 See: http://sourceware.org/ml/libc-ports/2006-05/msg00024.html.

Because we are using a file offset of 4096 when mapping the dll into memory and 
this matches exactly the page size on arm we could try using mmap2 with a file 
offset of 1. 

Cheers,

Klaus
> -----Ursprüngliche Nachricht-----
> Von: Robert Schwebel <[EMAIL PROTECTED]>
> Gesendet: 15.01.07 20:50:42
> An: [email protected]
> Betreff: [DotGNU] Problems running dotgnu on ARM


> Hi, 
> 
> I can now cross-build dotgnu on x86 for ARM; nevertheless, it does not
> work.  Here's the symptom, with a "hello world" program which runs fine
> on x86, run with ilrun built from the same sources as the arm variant:
> 
> [EMAIL PROTECTED]:~> ./ilrun a.out 
> metadata error in token 0x02000001: bad FieldDef index
> a.out: invalid metadata in image
> 
> I tried to find out the relevant data with gdb (thanks for klausT for
> the help!), here is the output. Maybe somebody has an idea what may be
> the reason for the problems here.
> 
> [EMAIL PROTECTED] .toolchain/arm-v4t-linux-gnueabi-gdb 
> build-target/pnet-20070108/engine/ilrun
> GNU gdb 6.5.50.20061010
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "--host=i686-host-linux-gnu 
> --target=arm-v4t-linux-gnueabi"...
> (gdb) set solib-absolute-prefix root/
> (gdb) target remote 192.168.23.179:1234
> Remote debugging using 192.168.23.179:1234
> 0x400007e0 in ?? ()
> (gdb) break meta_index.c:778
> Breakpoint 1 at 0x769e0: file meta_index.c, line 778.
> (gdb) cont
> Continuing.
> 
> Breakpoint 1, ParseToken (image=0x1025b8, strRefSize=2, blobRefSize=2,
> guidRefSize=1, desc=0xc55bc, item=0x0, values=0xbee9ff98, 
>     token=33554433) at meta_index.c:778
> 778 META_INDEX_ERROR("FieldDef");
> (gdb) print image->tokenCount
> $1 = {1, 0, 1424, 0, 4409, 0, 11652, 0, 13294, 458, 0, 1907, 1108, 8, 9,
> 42, 14, 1891, 4, 0, 16, 630, 0, 2284, 2813, 386, 3, 37, 15, 
>   41, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 217, 0 <repeats 22 times>}
> (gdb) print limit
> $3 = 4409
> (gdb) print temp
> $4 = 0
> (gdb) print ptr
> $5 = (unsigned char *) 0x402e19bc ""
> (gdb) print *ptr
> $6 = 0 '\0'
> (gdb) print *(ptr + 1)
> $7 = 0 '\0'
> (gdb) print *(ptr + 2)
> $8 = 1 '\001'
> (gdb) print *(ptr - 2)
> $9 = 0 '\0'
> (gdb) print *(ptr - 1)
> $10 = 0 '\0'
> (gdb) print *(ptr + 3)
> $11 = 0 '\0'
> 
> Robert
> -- 
>  Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
>  Pengutronix - Linux Solutions for Science and Industry
>    Handelsregister:  Amtsgericht Hildesheim, HRA 2686
>      Hannoversche Str. 2, 31134 Hildesheim, Germany
>    Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9
> 
> _______________________________________________
> Developers mailing list
> [email protected]
> http://dotgnu.org/mailman/listinfo/developers
> 


______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!            
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130

_______________________________________________
Developers mailing list
[email protected]
http://dotgnu.org/mailman/listinfo/developers

Reply via email to