Already read this but cannot solve my problem.
huge binary files with objcopy
For some testing need. I have to add following link script when link.
.section_test 0x11323000: { *(.section_test) }
This self-defined section must start at a big address 0x11323000.
Then use objcopymips to generate the raw binary file
objcopymips -O binary vxWorks.st E0122.bin
This step makes the final raw binary file,the bin file, too big. from 27MB to more than 270MB.
In this way it cannot be loaded in our machine which only have around 64MB physical memory.
Can I reduce the size of it without remove any sections and still let it be executable?