Our board house asked us if we could supply them with a hex file which is in consecutive order. Currently the addresses in the hex file are jumbled up. What I mean is there a way to tell the linker to generate a hex file in linear order, from address 0 to max. I was looking all over but was not able to find any information. I did try to use bin2hex to generate a hex file from a binary, but the generated hexfile did not work at all.
Use the software for a flash programmer (more than one are possible to download and run even without owning the programmer). Fill memory with 0xff, load the non-sorted, non-contiguous hex file. Dump memory to new hex file.