From: Andreas Schwab

Index: src/emacs.c
===================================================================
--- src/emacs.c.orig
+++ src/emacs.c
@@ -869,7 +869,11 @@ load_pdump (int argc, char **argv)
   /* Look for "emacs.pdmp" in PATH_EXEC.  We hardcode "emacs" in
      "emacs.pdmp" so that the Emacs binary still works if the user
      copies and renames it.  */
+#ifdef PDMP_BASE
+  const char *argv0_base = PDMP_BASE;
+#else
   const char *argv0_base = "emacs";
+#endif
   ptrdiff_t needed = (strlen (path_exec)
                       + 1
                       + strlen (argv0_base)
