they are not one single binary. But if I'm missing the point, then the AVR32 DFU bootloader might be of some inspiration to this I guess.