summaryrefslogtreecommitdiff
path: root/ld/emultempl/mmix-elfnmmo.em
diff options
context:
space:
mode:
Diffstat (limited to 'ld/emultempl/mmix-elfnmmo.em')
-rw-r--r--ld/emultempl/mmix-elfnmmo.em10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/emultempl/mmix-elfnmmo.em b/ld/emultempl/mmix-elfnmmo.em
index d703eac566..39f532bfa7 100644
--- a/ld/emultempl/mmix-elfnmmo.em
+++ b/ld/emultempl/mmix-elfnmmo.em
@@ -25,6 +25,15 @@
fragment <<EOF
#include "elf/mmix.h"
+static void gld${EMULATION_NAME}_before_parse (void);
+
+static void
+mmix_before_parse (void)
+{
+ link_info.check_relocs_after_open_input = TRUE;
+ gld${EMULATION_NAME}_before_parse ();
+}
+
/* Set up handling of linker-allocated global registers. */
static void
@@ -111,5 +120,6 @@ mmix_after_allocation (void)
}
EOF
+LDEMUL_BEFORE_PARSE=mmix_before_parse
LDEMUL_AFTER_ALLOCATION=mmix_after_allocation
LDEMUL_BEFORE_ALLOCATION=mmix_before_allocation