* emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
[deliverable/binutils-gdb.git] / ld / emulparams / elf32bmip.sh
index 7badcb84d7a089346ffd18681c92ebd63b762d14..3d99044b4134b18bd4fa3903cde247a2541c518b 100644 (file)
@@ -16,7 +16,12 @@ INITIAL_READONLY_SECTIONS="
   .reginfo      ${RELOCATING-0} : { *(.reginfo) }
 "
 OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
+# If the output has a GOT section, there must be exactly 0x7ff0 bytes
+# between .got and _gp.  The ". = ." below stops the orphan code from
+# inserting other sections between the assignment to _gp and the start
+# of .got.
 OTHER_GOT_SYMBOLS='
+  . = .;
   _gp = ALIGN(16) + 0x7ff0;
 '
 OTHER_SDATA_SECTIONS="
This page took 0.023483 seconds and 4 git commands to generate.