PDA

View Full Version : Running Elf on a cd



dcdood
June 30th, 2008, 17:48
I want to run a cd with multiple binaries using DCHakker with some examples from the DDEr4.

How can i convert it from ELF to BIN?

Guaripolo
July 1st, 2008, 15:05
if you take a look into a makefile:


$(TARGET).bin: $(TARGET).elf
$(KOS_OBJCOPY) -R .stack -O binary $(TARGET).elf $(TARGET).bin

In the DDEr4, if you run "env", the KOS_OBJCOPY is sh-elf-objcopy, so i think that if you got (for example) prog.elf, you can run:


sh-elf-objcopy -R .stack -O binary prog.elf

and it will give you a file called "prog.bin".

Bye!

Basile
July 5th, 2008, 09:22
How can i convert it from ELF to BIN?
http://sbibuilder.dc-france.com/download/?idsys=2&idcat=7