aboutsummaryrefslogtreecommitdiff
path: root/contrib/binutils/ld
diff options
context:
space:
mode:
authorJayachandran C. <jchandra@FreeBSD.org>2011-06-01 10:23:03 +0000
committerJayachandran C. <jchandra@FreeBSD.org>2011-06-01 10:23:03 +0000
commitd38ea3bc9e2a8e5e55ba03eaf737c36b16e04d20 (patch)
treef31abcebbda1787f995f4084ef203d4aff48700b /contrib/binutils/ld
parent272cba15b8312cdb9157fff28f6059c9e0e5f5da (diff)
Notes
Diffstat (limited to 'contrib/binutils/ld')
-rw-r--r--contrib/binutils/ld/emulparams/elf64bmip-defs.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/binutils/ld/emulparams/elf64bmip-defs.sh b/contrib/binutils/ld/emulparams/elf64bmip-defs.sh
index 110f8929de1a..73094be08593 100644
--- a/contrib/binutils/ld/emulparams/elf64bmip-defs.sh
+++ b/contrib/binutils/ld/emulparams/elf64bmip-defs.sh
@@ -1,3 +1,11 @@
. ${srcdir}/emulparams/elf32bmipn32-defs.sh
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-INITIAL_READONLY_SECTIONS=".MIPS.options : { *(.MIPS.options) }"
+
+# elf32bmipn32-defs.sh use .reginfo, n64 ABI should use .MIPS.options,
+# override INITIAL_READONLY_SECTIONS to do this.
+INITIAL_READONLY_SECTIONS=
+if test -z "${CREATE_SHLIB}"; then
+ INITIAL_READONLY_SECTIONS=".interp ${RELOCATING-0} : { *(.interp) }"
+fi
+INITIAL_READONLY_SECTIONS="${INITIAL_READONLY_SECTIONS}
+ .MIPS.options ${RELOCATING-0} : { *(.MIPS.options) }"