It is possible. It is needed to have configuration with more ELF or S-record files (one for each core) and these files use only certain range of addresses.
Some debuggers program only these flash sectors which differ from MCU flash content (for instance TRACE32).
With S32DS and PeMicro debugger it is possible to preserve certain address ranges (it performs read-modify-write operation) as on the screenshot below:
