Actually it is a routine that is linked in called unexec(). It never
generates a core dump, just creates a new executable from the running
image and some magic smoke extracted from the old executable.
Various flavours of the routine exist for all Linux executable types.
r~