This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem with am_31 sim + patch


Hello.

  I faced problems with the linker script of the am_31 and applied a bugfix
that was on the mailing list for the target sh*. Below you will find the
patch for the files.

However, I still cannot run the simple hello world example. Below there is
the output from the gdb session. Hopefully, somebody can give me a clue.
thanks a lot.



$ mn10300-elf-gdb.exe -nw hello
GNU gdb 6.1
Copyright 2004 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-pc-cygwin --target=mn10300-elf"...
(gdb) msim
Connected to the simulator.
(gdb) load
Loading section .rom_vectors, size 0x427 lma 0x48000000
Loading section .text, size 0x49fe lma 0x48000427
Loading section .rodata, size 0x5d2 lma 0x48004e25
Loading section .data, size 0x3f0 lma 0x480053f8
Start address 0x48000000
Transfer rate: 180024 bits in <1 sec.
(gdb) run
Starting program: /opt/ecos/ecos-2.0/examples/hello
mn10300-core: 1 byte read to unmapped address 0x40200000 at 0x40200000

Program received signal SIGSEGV, Segmentation fault.
0x40200000 in ?? ()



+----------------------------------------------------------
|Sebastian Fischmeister, phd
|Research Assistant, University of Salzburg, Austria 
|Fischmeister@SoftwareResearch.net
|
|http://www.softwareresearch.net/Fischmeister.html
|phone +43.676.7770167        fax +43.662.8044.6403
+----------------------------------------------------------



Index: packages/hal/mn10300/am31/current/src/mn10300_am31.ld
===================================================================
RCS file:
/cvs/ecos/ecos/packages/hal/mn10300/am31/current/src/mn10300_am31.ld,v
retrieving revision 1.11
diff -r1.11 mn10300_am31.ld
121c121
<     *(.scommon) *(.dynbss) *(.bss) *(COMMON) \
---
>     *(.scommon) *(.dynbss) *(.bss*) *(COMMON) \


Index: packages/hal/mn10300/am33/current/src/mn10300_am33.ld
===================================================================
RCS file:
/cvs/ecos/ecos/packages/hal/mn10300/am33/current/src/mn10300_am33.ld,v
retrieving revision 1.8
diff -r1.8 mn10300_am33.ld
125c125
<     *(.scommon) *(.dynbss) *(.bss) *(COMMON) \
---
>     *(.scommon) *(.dynbss) *(.bss*) *(COMMON) \


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]