Is there a way to exclude specific sections when generating a .bin file from a .out file? I can use the tiobj2bin to generate the bin file with all sections included just fine. I tried adding --exclude "fltext" to the %hexcmd% argument list in tiobj2bin.bat to try to exclude the fltext section, but it still includes it. I have played around with it a bit and it looks like the --exclude "fltext" switch only seems to work for me when I'm not using the --image switch. But I need an image, just an image without the fltext section.
My map is something like this. The fltext section is not valid memory and is only used as an indicator that it's that particular section during bootloading. I can create the proper binary by declaring the fltext section as type = NOLOAD and running the default tiobj2bin command, but I don't want to have to generate two separate out files just to get a bin file with fltext removed.
0x00000000 .text
0x20000000 .bss
0x70000000 .fltext
Any suggestions?
Thanks,
Andy