summaryrefslogtreecommitdiffstats
path: root/binutils-2.21/ld/emulparams/elf32bfinfd.sh
diff options
context:
space:
mode:
authorJing Yu <jingyu@google.com>2011-12-20 10:27:58 -0800
committerJing Yu <jingyu@google.com>2011-12-20 10:27:58 -0800
commitcf3cdbf8b3cda61a619299e7966a83df66244036 (patch)
tree201e2bcfc955f16802d3257112d29736cb3a3ce8 /binutils-2.21/ld/emulparams/elf32bfinfd.sh
parente4df3e0a5bb640ccfa2f30ee67fe9b3146b152d6 (diff)
downloadtoolchain_binutils-cf3cdbf8b3cda61a619299e7966a83df66244036.zip
toolchain_binutils-cf3cdbf8b3cda61a619299e7966a83df66244036.tar.gz
toolchain_binutils-cf3cdbf8b3cda61a619299e7966a83df66244036.tar.bz2
Add binutils-2.21.
Use --enable-gold=default for dual linker support. Change-Id: Id1a744c7db58a0b5e7a3be174cdfa875f2f86e49
Diffstat (limited to 'binutils-2.21/ld/emulparams/elf32bfinfd.sh')
-rw-r--r--binutils-2.21/ld/emulparams/elf32bfinfd.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/binutils-2.21/ld/emulparams/elf32bfinfd.sh b/binutils-2.21/ld/emulparams/elf32bfinfd.sh
new file mode 100644
index 0000000..3e0420e
--- /dev/null
+++ b/binutils-2.21/ld/emulparams/elf32bfinfd.sh
@@ -0,0 +1,45 @@
+. ${srcdir}/emulparams/bfin.sh
+unset STACK_ADDR
+OUTPUT_FORMAT="elf32-bfinfdpic"
+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+TEMPLATE_NAME=elf32
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+EMBEDDED= # This gets us program headers mapped as part of the text segment.
+OTHER_GOT_SYMBOLS=
+OTHER_READONLY_SECTIONS="
+ .rofixup : {
+ ${RELOCATING+__ROFIXUP_LIST__ = .;}
+ *(.rofixup)
+ ${RELOCATING+__ROFIXUP_END__ = .;}
+ }
+"
+# 0xfeb00000, 0xfec00000, 0xff700000, 0xff800000, 0xff900000
+# 0xffa00000 are also used in Dynamic linker and linux kernel.
+# They need to be kept synchronized.
+OTHER_SECTIONS="
+ .l2.text 0xfeb00000 :
+ {
+ *(.l2.text)
+ }
+ .l2.data 0xfec00000 :
+ {
+ *(.l2.data)
+ }
+ .l1.data 0xff700000 :
+ {
+ *(.l1.data)
+ }
+ .l1.data.A 0xff800000 :
+ {
+ *(.l1.data.A)
+ }
+ .l1.data.B 0xff900000 :
+ {
+ *(.l1.data.B)
+ }
+ .l1.text 0xffa00000 :
+ {
+ *(.l1.text)
+ }
+"