move late relocs after emacs relocations
authorAndrea Corallo <akrl@sdf.org>
Wed, 25 Dec 2019 16:07:55 +0000 (17:07 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:16 +0000 (11:38 +0100)
src/pdumper.c

index d66c4e99642bcdad5907150e36422d4a9f32980c..422bec47a66bf7d5e029eecb53b6a88988cce8b1 100644 (file)
@@ -348,7 +348,7 @@ enum reloc_phase
   {
     /* First to run.  Place here every relocation with no dependecy.  */
     EARLY_RELOCS,
-    /* Run just after EARLY_RELOCS.  */
+    /* Running after emacs relocations.  */
     LATE_RELOCS,
     /* Relocated at the very last after all hooks has been run.  All
        lisp machinery (allocation included) is at disposal.  */
@@ -5563,8 +5563,8 @@ pdumper_load (const char *dump_filename)
   dump_public.end = dump_public.start + dump_size;
 
   dump_do_all_dump_reloc_for_phase (header, dump_base, EARLY_RELOCS);
-  dump_do_all_dump_reloc_for_phase (header, dump_base, LATE_RELOCS);
   dump_do_all_emacs_relocations (header, dump_base);
+  dump_do_all_dump_reloc_for_phase (header, dump_base, LATE_RELOCS);
 
   dump_mmap_discard_contents (&sections[DS_DISCARDABLE]);
   for (int i = 0; i < ARRAYELTS (sections); ++i)