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 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
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: MIPS R3000
Version: 0x1
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