#821 closed defect (fixed)

erc32 start.s copies non-existent ROM copy of initialized data

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: highest Milestone: 2
Component: bsps Version: 4.6
Severity: critical Keywords:
Cc: bugs@… Blocked By:
Blocking:

Description

On SIS with gdb. I cc'ed Jiri because I suspect he already has a fix and if he doesn't, would be the likely source of a fix. :)

The file start.s has a loop copy_data which is copying initialized data from ROM to RAM. From what I can tell looking at the linkcmds, there is no copy of initialized data after the text segment. This results in the RAM data being destroyed. The first noticeable effect is that the Configuration structure is destroyed and the initialization of RTEMS aborts.

With the help of Rolf Schroedter, I was able to determine that the linkcmds you ship Jiri as exactly what we have in RTEMS CVS so we didn't get out of sync.

The attached patch is a workaround until someone can tell me what should be in the linkcmds.

Release:
CVS not 4.6

Environment:
sparc/erc32 and possibly sparc/leon

Attachments (1)

sparc.diff (720 bytes) - added by Joel Sherrill on 12/03/06 at 13:31:12.
sparc.diff

Download all attachments as: .zip

Change History (2)

comment:1 Changed on 03/07/06 at 20:28:15 by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: This was resolved with the addition of an sis specific BSP
variant and should have been closed.

Changed on 12/03/06 at 13:31:12 by Joel Sherrill

Attachment: sparc.diff added

sparc.diff

Note: See TracTickets for help on using tickets.