PR25172, Wrong description of --stop-address=ADDR switch
[deliverable/binutils-gdb.git] / ld / emulparams / elf64mmix.sh
index 787b50d6545b7416df3e1beb5891230e0708fd6c..dffc6cc6f7d11758b5d29843093e0de0662d1e2c 100644 (file)
@@ -1,4 +1,4 @@
-TEMPLATE_NAME=elf32
+TEMPLATE_NAME=elf
 GENERATE_SHLIB_SCRIPT=yes
 ELFSIZE=64
 SCRIPT_NAME=elf
@@ -35,11 +35,14 @@ EXTRA_EM_FILE=mmixelf
 # DEFINED wouldn't find the symbol if it was at the top; presumably
 # before the definition, if the definition is not in the first file.
 # FIXME: Arguably a linker bug.
-OTHER_TEXT_SECTIONS='
+# Only do this for a final link, or else we'll mess up e.g. error
+# messages.
+OTHER_TEXT_SECTIONS="
+${RELOCATING+
  _start. = (DEFINED (_start) ? _start
-            : (DEFINED (Main) ? Main : (DEFINED (.text) ? .text : 0)));
+           : (DEFINED (Main) ? Main : (DEFINED (.text) ? .text : 0)));
  PROVIDE (Main = DEFINED (Main) ? Main : (DEFINED (_start) ? _start : _start.));
-'
+}"
 
 OTHER_SECTIONS='
  .MMIX.reg_contents :
This page took 0.023388 seconds and 4 git commands to generate.