sh-elf-objcopy problem - file gets truncated
Hey guys, I'm brand new to all of this stuff and decided to get started by downloading that Dev Iso linked to by DcEmu.Co.Uk awhile back.
I went through the quite well done set up instructions, and installed CygWin as well as KOS.
Anyway, I don't have a coder's cable yet (though I'll be getting one soon). So far I've been able to run make in all of the included examples and the expected files are produced, ie running make from /usr/local/dc/kos/kos/examples/dreamcast/hello produces the files hello.elf as well as romdisk.img and romdisk.o.
Before this, all I've ever done is burnt apps using Boot Dream or stuff like that, so I know I'm missing the all important 1st_read.bin.
I *think* I've found the command which should be turning the hello.elf file into 1st_read.bin, which is as follows:
sh-elf-objcopy -O binary hello.elf 1st_read.bin
The problem is that I keep getting this output:
sh-elf-objcopy: 1st_read.bin: File truncated
1st_read is created but is 0 kb in explorer. It of course doesn't work.
I've also tried a utility called "elf2bin". It acts like it works, but the same thing happens, 1ST_READ.bin is 0 kb, which makes me think maybe something in my config is screwed up.
I've Googled +sh-elf-objcopy +file truncated and found two forum posts, the first were a guy had a similar problem to mine and another one and no one answered :p and another one where someone did respond and made it seem like it was a problem with sh-elf-objcopy (??).
http://www.dcemu.co.uk/vbulletin/arc...hp/t-4952.html
http://www.dcemu.co.uk/vbulletin/arc....php/t-48.html
If anyone knows what the cause of this problem is or what I can do about it, I'd be very greatful. Even a link or something would be nice.