objcopy problems

"Jaysen Roper" <[email protected]> Fri, 8 Aug 2008 15:24:34 +0100
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <000f01c8f962$7b17fce0$7147f6a0$@com>
I am having problems with m68k-coff-objcopy.exe

 

Whenever I enable "-debugging" it crashes with the following error.

 

m68k-coff-objcopy --debugging -O ieee -R .id -R .system demo.bin demo.695

[main] C:\heber\exe\gcc-m68k\bin\m68k-coff-objcopy.exe 1030 (0)
handle_exceptions: Exception: STATUS_ACCESS_VIOLATION

[main] m68k-coff-objcopy 1030 (0) handle_exceptions: Dumping stack trace to
m68k-coff-objcopy.exe.core

make: *** [demo.695] Error 11

 

 

I am using David Fiddes excellent GCC-M68K v6 (1998) with no other nix tools
in the mix.

 

Davids tools are based on EGCS-1.1.2 and GNU Binutils-2.9.1

 

I have pulled 5 projects out of our archive, and sure enough, this happens
on all builds (none of them had -debugging enabled)

 

I have tried objcopy with ieee / srec / tekhex / ihex / binary. All give the
same error at the same point.

 

Ieee is our preferred format because it is the preferred format of our new
IDE/DBG system.

 

Is there a reliable way of converting our coff files to ieee?

 

TIA

Jaysen

 

 

This is the stack dump .

 

[main] m68k-coff-objcopy 1000 (0) exception: trapped!

[main] m68k-coff-objcopy 1000 (0) exception: code 0xC0000005 at 0x404C86

[main] m68k-coff-objcopy 1000 (0) exception: ax 0x0 bx 0xD3000000 cx
0xA15F830 dx 0xDD15F830

[main] m68k-coff-objcopy 1000 (0) exception: si 0xDD15F830 di 0xA146A6C bp
0x244FD4C sp 0x244FD00

[main] m68k-coff-objcopy 1000 (0) exception: exception is:
STATUS_ACCESS_VIOLATION

[main] m68k-coff-objcopy 1000 (0) stack: Stack trace:

[main] m68k-coff-objcopy 1000 (0) stack: frame 0: sp = 0x244F8F0, pc =
0x6100A2C3

[main] m68k-coff-objcopy 1000 (0) stack: frame 1: sp = 0x244F92C, pc =
0x7C9037BF

[main] m68k-coff-objcopy 1000 (0) stack: frame 2: sp = 0x244F950, pc =
0x7C90378B

[main] m68k-coff-objcopy 1000 (0) stack: frame 3: sp = 0x244FA00, pc =
0x7C90EAFA

[main] m68k-coff-objcopy 1000 (0) stack: frame 4: sp = 0x244FD4C, pc =
0x404A1A

[main] m68k-coff-objcopy 1000 (0) stack: frame 5: sp = 0x244FD84, pc =
0x402549

[main] m68k-coff-objcopy 1000 (0) stack: frame 6: sp = 0x244FDF4, pc =
0x402AC3

[main] m68k-coff-objcopy 1000 (0) stack: frame 7: sp = 0x244FE20, pc =
0x40481B

[main] m68k-coff-objcopy 1000 (0) stack: frame 8: sp = 0x244FEE4, pc =
0x4049AA

[main] m68k-coff-objcopy 1000 (0) stack: frame 9: sp = 0x244FF00, pc =
0x61004402

[main] m68k-coff-objcopy 1000 (0) stack: frame 10: sp = 0x244FF88, pc =
0x61004420

[main] m68k-coff-objcopy 1000 (0) stack: frame 11: sp = 0x244FF94, pc =
0x4424CA

[main] m68k-coff-objcopy 1000 (1) stack: frame 12: sp = 0x244FFA4, pc =
0x40103A

[main] m68k-coff-objcopy 1000 (0) stack: frame 13: sp = 0x244FFC0, pc =
0x7C816FD7

[main] m68k-coff-objcopy 1000 (0) stack: frame 14: sp = 0x244FFF0, pc = 0x0

[main] m68k-coff-objcopy 1000 (0) stack: End of stack trace