Results 1 to 1 of 1
I would like to use objcopy to generate a raw binary file so that I can load it directly into memory. However, the following objcopy command gave me a huge ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-17-2010 #1
- Join Date
- Nov 2010
Objcopy generated a huge binary file
objcopy -O binary file.elf file.bin
What is the right options to use?
Please note that the elf file is for MIPS 3000 core and the "Entry point address" is 0xbfc00000. (I used --set-start= option and it did not seem to help)
Any tips would help. Thanks.
[linuxpc ~]$ readelf -h file.elf
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: MIPS R3000
Entry point address: 0xbfc00000
Start of program headers: 52 (bytes into file)
Start of section headers: 382896 (bytes into file)
Flags: 0x70ff1001, noreorder, unknown CPU, o32, mips32r2
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 12
Size of section headers: 40 (bytes)
Number of section headers: 30
Section header string table index: 27