summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/binutils/files/0004-58deb49b33812b048a1061553c1ca6f010af59f4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/binutils/files/0004-58deb49b33812b048a1061553c1ca6f010af59f4.patch')
-rw-r--r--recipes-devtools/binutils/files/0004-58deb49b33812b048a1061553c1ca6f010af59f4.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/recipes-devtools/binutils/files/0004-58deb49b33812b048a1061553c1ca6f010af59f4.patch b/recipes-devtools/binutils/files/0004-58deb49b33812b048a1061553c1ca6f010af59f4.patch
new file mode 100644
index 00000000..e3db8ea4
--- /dev/null
+++ b/recipes-devtools/binutils/files/0004-58deb49b33812b048a1061553c1ca6f010af59f4.patch
@@ -0,0 +1,63 @@
1From 58deb49b33812b048a1061553c1ca6f010af59f4 Mon Sep 17 00:00:00 2001
2From: Michael Eager <eager@eagercon.com>
3Date: Fri, 9 Nov 2012 22:43:28 +0000
4Subject: Files missing from previous commit.
5
6Upstream-Status: Backport
7
8diff --git a/ld/emulparams/elf32mbel_linux.sh b/ld/emulparams/elf32mbel_linux.sh
9new file mode 100644
10index 0000000..2980e82
11--- /dev/null
12+++ b/ld/emulparams/elf32mbel_linux.sh
13@@ -0,0 +1,18 @@
14+SCRIPT_NAME=elf
15+OUTPUT_FORMAT="elf32-microblazeel"
16+BIG_OUTPUT_FORMAT="elf32-microblaze"
17+LITTLE_OUTPUT_FORMAT="elf32-microblazeel"
18+TEXT_START_ADDR=0x10000000
19+NONPAGED_TEXT_START_ADDR=0x28
20+ALIGNMENT=4
21+MAXPAGESIZE=0x1000
22+COMMONPAGESIZE=0x1000
23+ARCH=microblaze
24+
25+NOP=0x80000000
26+
27+TEMPLATE_NAME=elf32
28+GENERATE_SHLIB_SCRIPT=yes
29+GENERATE_PIE_SCRIPT=yes
30+NO_SMALL_DATA=yes
31+SEPARATE_GOTPLT=12
32diff --git a/ld/emulparams/elf32microblazeel.sh b/ld/emulparams/elf32microblazeel.sh
33new file mode 100644
34index 0000000..86268b0
35--- /dev/null
36+++ b/ld/emulparams/elf32microblazeel.sh
37@@ -0,0 +1,23 @@
38+SCRIPT_NAME=elfmicroblaze
39+OUTPUT_FORMAT="elf32-microblazeel"
40+BIG_OUTPUT_FORMAT="elf32-microblaze"
41+LITTLE_OUTPUT_FORMAT="elf32-microblazeel"
42+#TEXT_START_ADDR=0
43+NONPAGED_TEXT_START_ADDR=0x28
44+ALIGNMENT=4
45+MAXPAGESIZE=4
46+ARCH=microblaze
47+EMBEDDED=yes
48+
49+NOP=0x80000000
50+
51+# Hmmm, there's got to be a better way. This sets the stack to the
52+# top of the simulator memory (2^19 bytes).
53+#PAGE_SIZE=0x1000
54+#DATA_ADDR=0x10000
55+#OTHER_RELOCATING_SECTIONS='.stack 0x7000 : { _stack = .; *(.stack) }'
56+#$@{RELOCATING+ PROVIDE (__stack = 0x7000);@}
57+#OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = _end + 0x1000);'
58+
59+TEMPLATE_NAME=elf32
60+#GENERATE_SHLIB_SCRIPT=yes
61--
621.7.5.4
63