public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] problem with am_31 sim + patch
@ 2004-04-26 15:46 Sebastian Fischmeister
  0 siblings, 0 replies; only message in thread
From: Sebastian Fischmeister @ 2004-04-26 15:46 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-26 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-26 15:46 [ECOS] problem with am_31 sim + patch Sebastian Fischmeister

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).