diff options
author | Jaewon Lee <jaewon.lee@xilinx.com> | 2019-04-29 11:37:34 -0700 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-06-28 16:36:24 -0700 |
commit | f3c8b1c9a8ae6a1690f7f5d907b65c588f65446a (patch) | |
tree | a5743b9097920e16085f6229601089164840dbca | |
parent | 4060e68585b60489aaac3c39adcda81a889e8691 (diff) | |
download | meta-xilinx-f3c8b1c9a8ae6a1690f7f5d907b65c588f65446a.tar.gz |
Rebasing binutils patches from 2.31 to 2.32
Removing two revert patches and rebasing one patch to update binutils
from 2.31 to 2.32
Also fixed patch-fuzz
Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils%.bbappend | 4 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0027-Patch-Microblaze-PR22471-undefined-reference-to-link.patch | 363 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0028-Revert-ld-Remove-unused-expression-state.patch | 97 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0002-Add-mlittle-endian-and-mbig-endian-flags.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0002-Add-mlittle-endian-and-mbig-endian-flags.patch) | 10 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0003-Disable-the-warning-message-for-eh_frame_hdr.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0003-Disable-the-warning-message-for-eh_frame_hdr.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0004-Fix-relaxation-of-assembler-resolved-references.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0004-Fix-relaxation-of-assembler-resolved-references.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0005-LOCAL-Fixup-debug_loc-sections-after-linker-relaxati.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0005-LOCAL-Fixup-debug_loc-sections-after-linker-relaxati.patch) | 36 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0006-upstream-change-to-garbage-collection-sweep-causes-m.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0006-upstream-change-to-garbage-collection-sweep-causes-m.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0007-Fix-bug-in-TLSTPREL-Relocation.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0007-Fix-bug-in-TLSTPREL-Relocation.patch) | 10 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0008-Added-Address-extension-instructions.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0008-Added-Address-extension-instructions.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0009-fixing-the-MAX_OPCODES-to-correct-value.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0009-fixing-the-MAX_OPCODES-to-correct-value.patch) | 10 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0010-Add-new-bit-field-instructions.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0010-Add-new-bit-field-instructions.patch) | 16 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0011-fixing-the-imm-bug.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0011-fixing-the-imm-bug.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0012-Patch-Microblaze-fixed-bug-in-GCC-so-that-It-will-su.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0012-Patch-Microblaze-fixed-bug-in-GCC-so-that-It-will-su.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0013-fixing-the-constant-range-check-issue.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0013-fixing-the-constant-range-check-issue.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0014-Patch-Microblaze-Compiler-will-give-error-messages-i.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0014-Patch-Microblaze-Compiler-will-give-error-messages-i.patch) | 14 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0015-intial-commit-of-MB-64-bit.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0015-intial-commit-of-MB-64-bit.patch) | 78 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0016-MB-X-initial-commit.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0016-MB-X-initial-commit.patch) | 32 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0017-Patch-Microblaze-negl-instruction-is-overriding-rsub.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0017-Patch-Microblaze-negl-instruction-is-overriding-rsub.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0018-Added-relocations-for-MB-X.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0018-Added-relocations-for-MB-X.patch) | 26 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0019-Fixed-MB-x-relocation-issues.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0019-Fixed-MB-x-relocation-issues.patch) | 14 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0020-Fixing-the-branch-related-issues.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0020-Fixing-the-branch-related-issues.patch) | 8 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0021-Fixed-address-computation-issues-with-64bit-address.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0021-Fixed-address-computation-issues-with-64bit-address.patch) | 18 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0022-Adding-new-relocation-to-support-64bit-rodata.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0022-Adding-new-relocation-to-support-64bit-rodata.patch) | 10 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0023-fixing-the-.bss-relocation-issue.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0023-fixing-the-.bss-relocation-issue.patch) | 8 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0024-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0024-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0025-Patch-MicroBlaze-fixed-Build-issue-which-are-due-to-.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0025-Patch-MicroBlaze-fixed-Build-issue-which-are-due-to-.patch) | 13 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0026-Patch-Microblaze-changes-of-PR22458-failure-to-choos.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0026-Patch-Microblaze-changes-of-PR22458-failure-to-choos.patch) | 14 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0029-Patch-Microblaze-Binutils-security-check-is-causing-.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0029-Patch-Microblaze-Binutils-security-check-is-causing-.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0030-fixing-the-long-long-long-mingw-toolchain-issue.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0030-fixing-the-long-long-long-mingw-toolchain-issue.patch) | 12 | ||||
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0031-fixing-the-_STACK_SIZE-issue-with-the-flto-flag.patch (renamed from meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0031-fixing-the-_STACK_SIZE-issue-with-the-flto-flag.patch) | 22 |
32 files changed, 213 insertions, 734 deletions
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils%.bbappend b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils%.bbappend index bf6cf464..1a00c61c 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils%.bbappend +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils%.bbappend | |||
@@ -1,4 +1,4 @@ | |||
1 | FILESEXTRAPATHS_append_microblaze := "${THISDIR}/binutils-2.31:" | 1 | FILESEXTRAPATHS_append_microblaze := "${THISDIR}/binutils-2.32:" |
2 | SRC_URI_append_microblaze = " \ | 2 | SRC_URI_append_microblaze = " \ |
3 | file://0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch \ | 3 | file://0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch \ |
4 | file://0002-Add-mlittle-endian-and-mbig-endian-flags.patch \ | 4 | file://0002-Add-mlittle-endian-and-mbig-endian-flags.patch \ |
@@ -26,8 +26,6 @@ SRC_URI_append_microblaze = " \ | |||
26 | file://0024-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch \ | 26 | file://0024-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch \ |
27 | file://0025-Patch-MicroBlaze-fixed-Build-issue-which-are-due-to-.patch \ | 27 | file://0025-Patch-MicroBlaze-fixed-Build-issue-which-are-due-to-.patch \ |
28 | file://0026-Patch-Microblaze-changes-of-PR22458-failure-to-choos.patch \ | 28 | file://0026-Patch-Microblaze-changes-of-PR22458-failure-to-choos.patch \ |
29 | file://0027-Patch-Microblaze-PR22471-undefined-reference-to-link.patch \ | ||
30 | file://0028-Revert-ld-Remove-unused-expression-state.patch \ | ||
31 | file://0029-Patch-Microblaze-Binutils-security-check-is-causing-.patch \ | 29 | file://0029-Patch-Microblaze-Binutils-security-check-is-causing-.patch \ |
32 | file://0030-fixing-the-long-long-long-mingw-toolchain-issue.patch \ | 30 | file://0030-fixing-the-long-long-long-mingw-toolchain-issue.patch \ |
33 | file://0031-fixing-the-_STACK_SIZE-issue-with-the-flto-flag.patch \ | 31 | file://0031-fixing-the-_STACK_SIZE-issue-with-the-flto-flag.patch \ |
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0027-Patch-Microblaze-PR22471-undefined-reference-to-link.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0027-Patch-Microblaze-PR22471-undefined-reference-to-link.patch deleted file mode 100644 index 002b3794..00000000 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0027-Patch-Microblaze-PR22471-undefined-reference-to-link.patch +++ /dev/null | |||
@@ -1,363 +0,0 @@ | |||
1 | From 059fc6d823a81602d951275ba99430550b84f8a3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | ||
3 | Date: Tue, 26 Feb 2019 17:46:36 +0530 | ||
4 | Subject: [PATCH 27/31] [Patch,Microblaze] : "PR22471, undefined reference to | ||
5 | linker-defined symbols" is causing runtime loops.reverting for now. | ||
6 | |||
7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | ||
8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | ||
9 | --- | ||
10 | bfd/elflink.c | 7 +--- | ||
11 | bfd/linker.c | 9 +---- | ||
12 | ld/ldexp.c | 64 +++++++++++++++++++------------ | ||
13 | ld/ldlang.c | 6 +-- | ||
14 | ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d | 4 +- | ||
15 | ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got | 2 +- | ||
16 | ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d | 4 +- | ||
17 | ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got | 2 +- | ||
18 | ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d | 4 +- | ||
19 | ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got | 2 +- | ||
20 | 10 files changed, 53 insertions(+), 51 deletions(-) | ||
21 | |||
22 | diff --git a/bfd/elflink.c b/bfd/elflink.c | ||
23 | index b316149..3860891 100644 | ||
24 | --- a/bfd/elflink.c | ||
25 | +++ b/bfd/elflink.c | ||
26 | @@ -1496,15 +1496,10 @@ _bfd_elf_merge_symbol (bfd *abfd, | ||
27 | treated as strong if the new symbol is from a dynamic library. | ||
28 | This reflects the way glibc's ld.so works. | ||
29 | |||
30 | - Also allow a weak symbol to override a linker script symbol | ||
31 | - defined by an early pass over the script. This is done so the | ||
32 | - linker knows the symbol is defined in an object file, for the | ||
33 | - DEFINED script function. | ||
34 | - | ||
35 | Do this before setting *type_change_ok or *size_change_ok so that | ||
36 | we warn properly when dynamic library symbols are overridden. */ | ||
37 | |||
38 | - if (newdef && !newdyn && (olddyn || h->root.ldscript_def)) | ||
39 | + if (newdef && !newdyn && olddyn) | ||
40 | newweak = FALSE; | ||
41 | if (olddef && newdyn) | ||
42 | oldweak = FALSE; | ||
43 | diff --git a/bfd/linker.c b/bfd/linker.c | ||
44 | index 6b4c8e5..8d51c2a 100644 | ||
45 | --- a/bfd/linker.c | ||
46 | +++ b/bfd/linker.c | ||
47 | @@ -1449,14 +1449,9 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info, | ||
48 | do | ||
49 | { | ||
50 | enum link_action action; | ||
51 | - int prev; | ||
52 | |||
53 | - prev = h->type; | ||
54 | - /* Treat symbols defined by early linker script pass as undefined. */ | ||
55 | - if (h->ldscript_def) | ||
56 | - prev = bfd_link_hash_undefined; | ||
57 | cycle = FALSE; | ||
58 | - action = link_action[(int) row][prev]; | ||
59 | + action = link_action[(int) row][(int) h->type]; | ||
60 | switch (action) | ||
61 | { | ||
62 | case FAIL: | ||
63 | @@ -1500,7 +1495,6 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info, | ||
64 | h->u.def.section = section; | ||
65 | h->u.def.value = value; | ||
66 | h->linker_def = 0; | ||
67 | - h->ldscript_def = 0; | ||
68 | |||
69 | /* If we have been asked to, we act like collect2 and | ||
70 | identify all functions that might be global | ||
71 | @@ -1600,7 +1594,6 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info, | ||
72 | else | ||
73 | h->u.c.p->section = section; | ||
74 | h->linker_def = 0; | ||
75 | - h->ldscript_def = 0; | ||
76 | break; | ||
77 | |||
78 | case REF: | ||
79 | diff --git a/ld/ldexp.c b/ld/ldexp.c | ||
80 | index 6fa251e..d46a06f 100644 | ||
81 | --- a/ld/ldexp.c | ||
82 | +++ b/ld/ldexp.c | ||
83 | @@ -60,12 +60,15 @@ struct definedness_hash_entry | ||
84 | section statement, the section we'd like it relative to. */ | ||
85 | asection *final_sec; | ||
86 | |||
87 | - /* Low bits of iteration count. Symbols with matching iteration have | ||
88 | - been defined in this pass over the script. */ | ||
89 | - unsigned int iteration : 8; | ||
90 | - | ||
91 | /* Symbol was defined by an object file. */ | ||
92 | unsigned int by_object : 1; | ||
93 | + | ||
94 | + /* Symbols was defined by a script. */ | ||
95 | + unsigned int by_script : 1; | ||
96 | + | ||
97 | + /* Low bit of iteration count. Symbols with matching iteration have | ||
98 | + been defined in this pass over the script. */ | ||
99 | + unsigned int iteration : 1; | ||
100 | }; | ||
101 | |||
102 | static struct bfd_hash_table definedness_table; | ||
103 | @@ -283,6 +286,7 @@ definedness_newfunc (struct bfd_hash_entry *entry, | ||
104 | einfo (_("%F%P: bfd_hash_allocate failed creating symbol %s\n"), name); | ||
105 | |||
106 | ret->by_object = 0; | ||
107 | + ret->by_script = 0; | ||
108 | ret->iteration = 0; | ||
109 | return &ret->root; | ||
110 | } | ||
111 | @@ -316,7 +320,7 @@ update_definedness (const char *name, struct bfd_link_hash_entry *h) | ||
112 | /* If the symbol was already defined, and not by a script, then it | ||
113 | must be defined by an object file or by the linker target code. */ | ||
114 | ret = TRUE; | ||
115 | - if (!h->ldscript_def | ||
116 | + if (!defentry->by_script | ||
117 | && (h->type == bfd_link_hash_defined | ||
118 | || h->type == bfd_link_hash_defweak | ||
119 | || h->type == bfd_link_hash_common)) | ||
120 | @@ -328,6 +332,7 @@ update_definedness (const char *name, struct bfd_link_hash_entry *h) | ||
121 | ret = FALSE; | ||
122 | } | ||
123 | |||
124 | + defentry->by_script = 1; | ||
125 | defentry->iteration = lang_statement_iteration; | ||
126 | defentry->final_sec = bfd_abs_section_ptr; | ||
127 | if (expld.phase == lang_final_phase_enum | ||
128 | @@ -681,9 +686,6 @@ fold_trinary (etree_type *tree) | ||
129 | static void | ||
130 | fold_name (etree_type *tree) | ||
131 | { | ||
132 | - struct bfd_link_hash_entry *h; | ||
133 | - struct definedness_hash_entry *def; | ||
134 | - | ||
135 | memset (&expld.result, 0, sizeof (expld.result)); | ||
136 | |||
137 | switch (tree->type.node_code) | ||
138 | @@ -701,18 +703,23 @@ fold_name (etree_type *tree) | ||
139 | break; | ||
140 | |||
141 | case DEFINED: | ||
142 | - h = bfd_wrapped_link_hash_lookup (link_info.output_bfd, | ||
143 | - &link_info, | ||
144 | - tree->name.name, | ||
145 | - FALSE, FALSE, TRUE); | ||
146 | - new_number (h != NULL | ||
147 | - && (h->type == bfd_link_hash_defined | ||
148 | - || h->type == bfd_link_hash_defweak | ||
149 | - || h->type == bfd_link_hash_common) | ||
150 | - && (!h->ldscript_def | ||
151 | - || (def = symbol_defined (tree->name.name)) == NULL | ||
152 | - || def->by_object | ||
153 | - || def->iteration == (lang_statement_iteration & 255))); | ||
154 | + if (expld.phase != lang_first_phase_enum) | ||
155 | + { | ||
156 | + struct bfd_link_hash_entry *h; | ||
157 | + struct definedness_hash_entry *def; | ||
158 | + | ||
159 | + h = bfd_wrapped_link_hash_lookup (link_info.output_bfd, | ||
160 | + &link_info, | ||
161 | + tree->name.name, | ||
162 | + FALSE, FALSE, TRUE); | ||
163 | + new_number (h != NULL | ||
164 | + && (h->type == bfd_link_hash_defined | ||
165 | + || h->type == bfd_link_hash_defweak | ||
166 | + || h->type == bfd_link_hash_common) | ||
167 | + && ((def = symbol_defined (tree->name.name)) == NULL | ||
168 | + || def->by_object | ||
169 | + || def->iteration == (lang_statement_iteration & 1))); | ||
170 | + } | ||
171 | break; | ||
172 | |||
173 | case NAME: | ||
174 | @@ -721,6 +728,9 @@ fold_name (etree_type *tree) | ||
175 | { | ||
176 | /* Self-assignment is only allowed for absolute symbols | ||
177 | defined in a linker script. */ | ||
178 | + struct bfd_link_hash_entry *h; | ||
179 | + struct definedness_hash_entry *def; | ||
180 | + | ||
181 | h = bfd_wrapped_link_hash_lookup (link_info.output_bfd, | ||
182 | &link_info, | ||
183 | tree->name.name, | ||
184 | @@ -730,13 +740,17 @@ fold_name (etree_type *tree) | ||
185 | || h->type == bfd_link_hash_defweak) | ||
186 | && h->u.def.section == bfd_abs_section_ptr | ||
187 | && (def = symbol_defined (tree->name.name)) != NULL | ||
188 | - && def->iteration == (lang_statement_iteration & 255))) | ||
189 | + && def->iteration == (lang_statement_iteration & 1))) | ||
190 | expld.assign_name = NULL; | ||
191 | } | ||
192 | - if (tree->name.name[0] == '.' && tree->name.name[1] == 0) | ||
193 | + if (expld.phase == lang_first_phase_enum) | ||
194 | + ; | ||
195 | + else if (tree->name.name[0] == '.' && tree->name.name[1] == 0) | ||
196 | new_rel_from_abs (expld.dot); | ||
197 | else | ||
198 | { | ||
199 | + struct bfd_link_hash_entry *h; | ||
200 | + | ||
201 | h = bfd_wrapped_link_hash_lookup (link_info.output_bfd, | ||
202 | &link_info, | ||
203 | tree->name.name, | ||
204 | @@ -751,7 +765,7 @@ fold_name (etree_type *tree) | ||
205 | output_section = h->u.def.section->output_section; | ||
206 | if (output_section == NULL) | ||
207 | { | ||
208 | - if (expld.phase <= lang_mark_phase_enum) | ||
209 | + if (expld.phase == lang_mark_phase_enum) | ||
210 | new_rel (h->u.def.value, h->u.def.section); | ||
211 | else | ||
212 | einfo (_("%X%P:%pS: unresolvable symbol `%s'" | ||
213 | @@ -943,12 +957,12 @@ is_sym_value (const etree_type *tree, bfd_vma val) | ||
214 | return (tree->type.node_class == etree_name | ||
215 | && tree->type.node_code == NAME | ||
216 | && (def = symbol_defined (tree->name.name)) != NULL | ||
217 | - && def->iteration == (lang_statement_iteration & 255) | ||
218 | + && def->by_script | ||
219 | + && def->iteration == (lang_statement_iteration & 1) | ||
220 | && (h = bfd_wrapped_link_hash_lookup (link_info.output_bfd, | ||
221 | &link_info, | ||
222 | tree->name.name, | ||
223 | FALSE, FALSE, TRUE)) != NULL | ||
224 | - && h->ldscript_def | ||
225 | && h->type == bfd_link_hash_defined | ||
226 | && h->u.def.section == bfd_abs_section_ptr | ||
227 | && h->u.def.value == val); | ||
228 | diff --git a/ld/ldlang.c b/ld/ldlang.c | ||
229 | index 350baf2..7e12480 100644 | ||
230 | --- a/ld/ldlang.c | ||
231 | +++ b/ld/ldlang.c | ||
232 | @@ -3360,7 +3360,9 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode) | ||
233 | #endif | ||
234 | break; | ||
235 | case lang_assignment_statement_enum: | ||
236 | - if (s->assignment_statement.exp->type.node_class != etree_assert) | ||
237 | + if (s->assignment_statement.exp->type.node_class != etree_assert | ||
238 | + && s->assignment_statement.exp->assign.defsym) | ||
239 | + /* This is from a --defsym on the command line. */ | ||
240 | exp_fold_tree_no_dot (s->assignment_statement.exp); | ||
241 | break; | ||
242 | default: | ||
243 | @@ -7176,7 +7178,6 @@ lang_process (void) | ||
244 | |||
245 | /* Create a bfd for each input file. */ | ||
246 | current_target = default_target; | ||
247 | - lang_statement_iteration++; | ||
248 | open_input_bfds (statement_list.head, OPEN_BFD_NORMAL); | ||
249 | |||
250 | #ifdef ENABLE_PLUGINS | ||
251 | @@ -7232,7 +7233,6 @@ lang_process (void) | ||
252 | |||
253 | /* Rescan archives in case new undefined symbols have appeared. */ | ||
254 | files = file_chain; | ||
255 | - lang_statement_iteration++; | ||
256 | open_input_bfds (statement_list.head, OPEN_BFD_RESCAN); | ||
257 | lang_list_remove_tail (&file_chain, &files); | ||
258 | while (files.head != NULL) | ||
259 | diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d | ||
260 | index 17e42d0..011df6c 100644 | ||
261 | --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d | ||
262 | +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d | ||
263 | @@ -5,7 +5,7 @@ Disassembly of section .text: | ||
264 | |||
265 | .* <__start>: | ||
266 | .*: 3c1c0fc0 lui gp,0xfc0 | ||
267 | - .*: 279c7b80 addiu gp,gp,31616 | ||
268 | + .*: 279c7c30 addiu gp,gp,31792 | ||
269 | .*: 0399e021 addu gp,gp,t9 | ||
270 | .*: 27bdfff0 addiu sp,sp,-16 | ||
271 | .*: afbe0008 sw s8,8\(sp\) | ||
272 | @@ -55,7 +55,7 @@ Disassembly of section .text: | ||
273 | |||
274 | .* <other>: | ||
275 | .*: 3c1c0fc0 lui gp,0xfc0 | ||
276 | - .*: 279c7ac0 addiu gp,gp,31424 | ||
277 | + .*: 279c7b70 addiu gp,gp,31600 | ||
278 | .*: 0399e021 addu gp,gp,t9 | ||
279 | .*: 27bdfff0 addiu sp,sp,-16 | ||
280 | .*: afbe0008 sw s8,8\(sp\) | ||
281 | diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got | ||
282 | index 508fed2..1dbcab4 100644 | ||
283 | --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got | ||
284 | +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got | ||
285 | @@ -13,6 +13,6 @@ OFFSET TYPE VALUE | ||
286 | |||
287 | |||
288 | Contents of section .got: | ||
289 | - 10000020 00000000 80000000 0040053c 00000000 .........@...... | ||
290 | + 10000020 00000000 80000000 0040048c 00000000 .........@...... | ||
291 | 10000030 00000000 00000000 00000000 00000000 ................ | ||
292 | 10000040 00000000 00000001 00000000 ............ | ||
293 | diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d | ||
294 | index 17e42d0..011df6c 100644 | ||
295 | --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d | ||
296 | +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d | ||
297 | @@ -5,7 +5,7 @@ Disassembly of section .text: | ||
298 | |||
299 | .* <__start>: | ||
300 | .*: 3c1c0fc0 lui gp,0xfc0 | ||
301 | - .*: 279c7b80 addiu gp,gp,31616 | ||
302 | + .*: 279c7c30 addiu gp,gp,31792 | ||
303 | .*: 0399e021 addu gp,gp,t9 | ||
304 | .*: 27bdfff0 addiu sp,sp,-16 | ||
305 | .*: afbe0008 sw s8,8\(sp\) | ||
306 | @@ -55,7 +55,7 @@ Disassembly of section .text: | ||
307 | |||
308 | .* <other>: | ||
309 | .*: 3c1c0fc0 lui gp,0xfc0 | ||
310 | - .*: 279c7ac0 addiu gp,gp,31424 | ||
311 | + .*: 279c7b70 addiu gp,gp,31600 | ||
312 | .*: 0399e021 addu gp,gp,t9 | ||
313 | .*: 27bdfff0 addiu sp,sp,-16 | ||
314 | .*: afbe0008 sw s8,8\(sp\) | ||
315 | diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got | ||
316 | index 4a97099..fb50635 100644 | ||
317 | --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got | ||
318 | +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got | ||
319 | @@ -13,6 +13,6 @@ OFFSET TYPE VALUE | ||
320 | |||
321 | |||
322 | Contents of section .got: | ||
323 | - 10000020 00000000 80000000 0040053c 00000000 .* | ||
324 | + 10000020 00000000 80000000 0040048c 00000000 .* | ||
325 | 10000030 00000000 00000000 00000000 00000000 .* | ||
326 | 10000040 00000000 00000001 00000000 .* | ||
327 | diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d | ||
328 | index fb3750a..3828aca 100644 | ||
329 | --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d | ||
330 | +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d | ||
331 | @@ -5,7 +5,7 @@ Disassembly of section .text: | ||
332 | |||
333 | .* <other>: | ||
334 | .*: 3c1c0fc0 lui gp,0xfc0 | ||
335 | - .*: 279c7b80 addiu gp,gp,31616 | ||
336 | + .*: 279c7c30 addiu gp,gp,31792 | ||
337 | .*: 0399e021 addu gp,gp,t9 | ||
338 | .*: 27bdfff0 addiu sp,sp,-16 | ||
339 | .*: afbe0008 sw s8,8\(sp\) | ||
340 | @@ -51,7 +51,7 @@ Disassembly of section .text: | ||
341 | |||
342 | .* <__start>: | ||
343 | .*: 3c1c0fc0 lui gp,0xfc0 | ||
344 | - .*: 279c7ad0 addiu gp,gp,31440 | ||
345 | + .*: 279c7b80 addiu gp,gp,31616 | ||
346 | .*: 0399e021 addu gp,gp,t9 | ||
347 | .*: 27bdfff0 addiu sp,sp,-16 | ||
348 | .*: afbe0008 sw s8,8\(sp\) | ||
349 | diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got | ||
350 | index d96375c..4a97099 100644 | ||
351 | --- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got | ||
352 | +++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got | ||
353 | @@ -13,6 +13,6 @@ OFFSET TYPE VALUE | ||
354 | |||
355 | |||
356 | Contents of section .got: | ||
357 | - 10000020 00000000 80000000 004005ec 00000000 .* | ||
358 | + 10000020 00000000 80000000 0040053c 00000000 .* | ||
359 | 10000030 00000000 00000000 00000000 00000000 .* | ||
360 | 10000040 00000000 00000001 00000000 .* | ||
361 | -- | ||
362 | 2.7.4 | ||
363 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0028-Revert-ld-Remove-unused-expression-state.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0028-Revert-ld-Remove-unused-expression-state.patch deleted file mode 100644 index c574470e..00000000 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0028-Revert-ld-Remove-unused-expression-state.patch +++ /dev/null | |||
@@ -1,97 +0,0 @@ | |||
1 | From a9bcbddf77662f8c12e83360809a697196a55281 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | ||
3 | Date: Wed, 27 Feb 2019 15:12:32 +0530 | ||
4 | Subject: [PATCH 28/31] Revert "ld: Remove unused expression state" | ||
5 | |||
6 | This reverts commit 65f14869fd3fbee8ed4c4ca49de8aaa86dbc66cb. | ||
7 | |||
8 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | ||
9 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | ||
10 | --- | ||
11 | ld/ChangeLog | 9 --------- | ||
12 | ld/ldexp.c | 8 +++++--- | ||
13 | ld/ldexp.h | 1 + | ||
14 | 3 files changed, 6 insertions(+), 12 deletions(-) | ||
15 | |||
16 | diff --git a/ld/ChangeLog b/ld/ChangeLog | ||
17 | index 4827678..ce3d2d5 100644 | ||
18 | --- a/ld/ChangeLog | ||
19 | +++ b/ld/ChangeLog | ||
20 | @@ -2972,15 +2972,6 @@ | ||
21 | |||
22 | 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com> | ||
23 | |||
24 | - * ldexp.h (union etree_union): Remove defsym field. | ||
25 | - * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym | ||
26 | - parameter. | ||
27 | - (exp_assign): Remove passing of defsym parameter. | ||
28 | - (exp_defsym): Likewise. | ||
29 | - (exp_provide): Likewise. | ||
30 | - | ||
31 | -2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com> | ||
32 | - | ||
33 | * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide | ||
34 | nodes are ignored in the tree walk, and move the location at which | ||
35 | we change provide nodes into provided nodes. | ||
36 | diff --git a/ld/ldexp.c b/ld/ldexp.c | ||
37 | index d46a06f..a84bf63 100644 | ||
38 | --- a/ld/ldexp.c | ||
39 | +++ b/ld/ldexp.c | ||
40 | @@ -1355,6 +1355,7 @@ static etree_type * | ||
41 | exp_assop (const char *dst, | ||
42 | etree_type *src, | ||
43 | enum node_tree_enum class, | ||
44 | + bfd_boolean defsym, | ||
45 | bfd_boolean hidden) | ||
46 | { | ||
47 | etree_type *n; | ||
48 | @@ -1366,6 +1367,7 @@ exp_assop (const char *dst, | ||
49 | n->assign.type.node_class = class; | ||
50 | n->assign.src = src; | ||
51 | n->assign.dst = dst; | ||
52 | + n->assign.defsym = defsym; | ||
53 | n->assign.hidden = hidden; | ||
54 | return n; | ||
55 | } | ||
56 | @@ -1375,7 +1377,7 @@ exp_assop (const char *dst, | ||
57 | etree_type * | ||
58 | exp_assign (const char *dst, etree_type *src, bfd_boolean hidden) | ||
59 | { | ||
60 | - return exp_assop (dst, src, etree_assign, hidden); | ||
61 | + return exp_assop (dst, src, etree_assign, FALSE, hidden); | ||
62 | } | ||
63 | |||
64 | /* Handle --defsym command-line option. */ | ||
65 | @@ -1383,7 +1385,7 @@ exp_assign (const char *dst, etree_type *src, bfd_boolean hidden) | ||
66 | etree_type * | ||
67 | exp_defsym (const char *dst, etree_type *src) | ||
68 | { | ||
69 | - return exp_assop (dst, src, etree_assign, FALSE); | ||
70 | + return exp_assop (dst, src, etree_assign, TRUE, FALSE); | ||
71 | } | ||
72 | |||
73 | /* Handle PROVIDE. */ | ||
74 | @@ -1391,7 +1393,7 @@ exp_defsym (const char *dst, etree_type *src) | ||
75 | etree_type * | ||
76 | exp_provide (const char *dst, etree_type *src, bfd_boolean hidden) | ||
77 | { | ||
78 | - return exp_assop (dst, src, etree_provide, hidden); | ||
79 | + return exp_assop (dst, src, etree_provide, FALSE, hidden); | ||
80 | } | ||
81 | |||
82 | /* Handle ASSERT. */ | ||
83 | diff --git a/ld/ldexp.h b/ld/ldexp.h | ||
84 | index d58cacb..572b703 100644 | ||
85 | --- a/ld/ldexp.h | ||
86 | +++ b/ld/ldexp.h | ||
87 | @@ -66,6 +66,7 @@ typedef union etree_union { | ||
88 | node_type type; | ||
89 | const char *dst; | ||
90 | union etree_union *src; | ||
91 | + bfd_boolean defsym; | ||
92 | bfd_boolean hidden; | ||
93 | } assign; | ||
94 | struct { | ||
95 | -- | ||
96 | 2.7.4 | ||
97 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch index 4ea2f12c..58608485 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 6958c0c056b1597992d72d4b75e763e65862e1ad Mon Sep 17 00:00:00 2001 | 1 | From ad671256112cfee47871e91c6d390daea1b8fa2f Mon Sep 17 00:00:00 2001 |
2 | From: David Holsgrove <david.holsgrove@xilinx.com> | 2 | From: David Holsgrove <david.holsgrove@xilinx.com> |
3 | Date: Wed, 8 May 2013 11:03:36 +1000 | 3 | Date: Wed, 8 May 2013 11:03:36 +1000 |
4 | Subject: [PATCH 01/31] Add wdc.ext.clear and wdc.ext.flush insns | 4 | Subject: [PATCH] Add wdc.ext.clear and wdc.ext.flush insns |
5 | 5 | ||
6 | Added two new instructions, wdc.ext.clear and wdc.ext.flush, | 6 | Added two new instructions, wdc.ext.clear and wdc.ext.flush, |
7 | to enable MicroBlaze to flush an external cache, which is | 7 | to enable MicroBlaze to flush an external cache, which is |
@@ -9,13 +9,14 @@ used with the new coherency support for multiprocessing. | |||
9 | 9 | ||
10 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 10 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
11 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | 11 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> |
12 | |||
12 | --- | 13 | --- |
13 | opcodes/microblaze-opc.h | 5 ++++- | 14 | opcodes/microblaze-opc.h | 5 ++++- |
14 | opcodes/microblaze-opcm.h | 4 ++-- | 15 | opcodes/microblaze-opcm.h | 4 ++-- |
15 | 2 files changed, 6 insertions(+), 3 deletions(-) | 16 | 2 files changed, 6 insertions(+), 3 deletions(-) |
16 | 17 | ||
17 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h | 18 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h |
18 | index ede8af8..773dc81 100644 | 19 | index 62ee3c9..865151f 100644 |
19 | --- a/opcodes/microblaze-opc.h | 20 | --- a/opcodes/microblaze-opc.h |
20 | +++ b/opcodes/microblaze-opc.h | 21 | +++ b/opcodes/microblaze-opc.h |
21 | @@ -91,6 +91,7 @@ | 22 | @@ -91,6 +91,7 @@ |
@@ -46,7 +47,7 @@ index ede8af8..773dc81 100644 | |||
46 | {"mfs", INST_TYPE_RD_SPECIAL, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_MFS, 0x94008000, OPCODE_MASK_H23S, mfs, special_inst }, | 47 | {"mfs", INST_TYPE_RD_SPECIAL, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_MFS, 0x94008000, OPCODE_MASK_H23S, mfs, special_inst }, |
47 | {"br", INST_TYPE_R2, INST_PC_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x98000000, OPCODE_MASK_H124, br, branch_inst }, | 48 | {"br", INST_TYPE_R2, INST_PC_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x98000000, OPCODE_MASK_H124, br, branch_inst }, |
48 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h | 49 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h |
49 | index 92f3f19..7338f6a 100644 | 50 | index 5a2d3b0..42f3dd3 100644 |
50 | --- a/opcodes/microblaze-opcm.h | 51 | --- a/opcodes/microblaze-opcm.h |
51 | +++ b/opcodes/microblaze-opcm.h | 52 | +++ b/opcodes/microblaze-opcm.h |
52 | @@ -33,8 +33,8 @@ enum microblaze_instr | 53 | @@ -33,8 +33,8 @@ enum microblaze_instr |
@@ -60,6 +61,3 @@ index 92f3f19..7338f6a 100644 | |||
60 | bltd, ble, bled, bgt, bgtd, bge, bged, ori, andi, xori, andni, | 61 | bltd, ble, bled, bgt, bgtd, bge, bged, ori, andi, xori, andni, |
61 | imm, rtsd, rtid, rtbd, rted, bri, brid, brlid, brai, braid, bralid, | 62 | imm, rtsd, rtid, rtbd, rted, bri, brid, brlid, brai, braid, bralid, |
62 | brki, beqi, beqid, bnei, bneid, blti, bltid, blei, bleid, bgti, | 63 | brki, beqi, beqid, bnei, bneid, blti, bltid, blei, bleid, bgti, |
63 | -- | ||
64 | 2.7.4 | ||
65 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0002-Add-mlittle-endian-and-mbig-endian-flags.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0002-Add-mlittle-endian-and-mbig-endian-flags.patch index 12f2f639..f0df4b8f 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0002-Add-mlittle-endian-and-mbig-endian-flags.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0002-Add-mlittle-endian-and-mbig-endian-flags.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From a570d7ef1fce2a1e4d4fde5f3ac36a741a01587b Mon Sep 17 00:00:00 2001 | 1 | From cd4e233a38df5eee833c77f4393e710ad5383ac0 Mon Sep 17 00:00:00 2001 |
2 | From: nagaraju <nmekala@xilix.com> | 2 | From: nagaraju <nmekala@xilix.com> |
3 | Date: Tue, 19 Mar 2013 17:18:23 +0530 | 3 | Date: Tue, 19 Mar 2013 17:18:23 +0530 |
4 | Subject: [PATCH 02/31] Add mlittle-endian and mbig-endian flags | 4 | Subject: [PATCH] Add mlittle-endian and mbig-endian flags |
5 | 5 | ||
6 | Added support in gas for mlittle-endian and mbig-endian flags | 6 | Added support in gas for mlittle-endian and mbig-endian flags |
7 | as options. | 7 | as options. |
@@ -11,12 +11,13 @@ to include new entries. | |||
11 | 11 | ||
12 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 12 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
13 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | 13 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> |
14 | |||
14 | --- | 15 | --- |
15 | gas/config/tc-microblaze.c | 9 +++++++++ | 16 | gas/config/tc-microblaze.c | 9 +++++++++ |
16 | 1 file changed, 9 insertions(+) | 17 | 1 file changed, 9 insertions(+) |
17 | 18 | ||
18 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 19 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
19 | index ba6eabb..360ccba 100644 | 20 | index ab90c6b..c92e9ce 100644 |
20 | --- a/gas/config/tc-microblaze.c | 21 | --- a/gas/config/tc-microblaze.c |
21 | +++ b/gas/config/tc-microblaze.c | 22 | +++ b/gas/config/tc-microblaze.c |
22 | @@ -37,6 +37,8 @@ | 23 | @@ -37,6 +37,8 @@ |
@@ -59,6 +60,3 @@ index ba6eabb..360ccba 100644 | |||
59 | } | 60 | } |
60 | 61 | ||
61 | 62 | ||
62 | -- | ||
63 | 2.7.4 | ||
64 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0003-Disable-the-warning-message-for-eh_frame_hdr.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0003-Disable-the-warning-message-for-eh_frame_hdr.patch index ec3e2192..64d27d92 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0003-Disable-the-warning-message-for-eh_frame_hdr.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0003-Disable-the-warning-message-for-eh_frame_hdr.patch | |||
@@ -1,19 +1,20 @@ | |||
1 | From 311a3a3dc3f5b2ab1ee276cb5626a85d0fd1027a Mon Sep 17 00:00:00 2001 | 1 | From a8cbf5f3e93150132f194cfa3008fe896457171f Mon Sep 17 00:00:00 2001 |
2 | From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> | 2 | From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> |
3 | Date: Fri, 22 Jun 2012 01:20:20 +0200 | 3 | Date: Fri, 22 Jun 2012 01:20:20 +0200 |
4 | Subject: [PATCH 03/31] Disable the warning message for eh_frame_hdr | 4 | Subject: [PATCH] Disable the warning message for eh_frame_hdr |
5 | 5 | ||
6 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> | 6 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> |
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | bfd/elf-eh-frame.c | 3 +++ | 10 | bfd/elf-eh-frame.c | 3 +++ |
10 | 1 file changed, 3 insertions(+) | 11 | 1 file changed, 3 insertions(+) |
11 | 12 | ||
12 | diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c | 13 | diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c |
13 | index 12f06ef..e144922 100644 | 14 | index a13e81e..1824ba6 100644 |
14 | --- a/bfd/elf-eh-frame.c | 15 | --- a/bfd/elf-eh-frame.c |
15 | +++ b/bfd/elf-eh-frame.c | 16 | +++ b/bfd/elf-eh-frame.c |
16 | @@ -1042,10 +1042,13 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info, | 17 | @@ -1044,10 +1044,13 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info, |
17 | goto success; | 18 | goto success; |
18 | 19 | ||
19 | free_no_table: | 20 | free_no_table: |
@@ -27,6 +28,3 @@ index 12f06ef..e144922 100644 | |||
27 | hdr_info->u.dwarf.table = FALSE; | 28 | hdr_info->u.dwarf.table = FALSE; |
28 | if (sec_info) | 29 | if (sec_info) |
29 | free (sec_info); | 30 | free (sec_info); |
30 | -- | ||
31 | 2.7.4 | ||
32 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0004-Fix-relaxation-of-assembler-resolved-references.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0004-Fix-relaxation-of-assembler-resolved-references.patch index d77c6120..4cae439e 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0004-Fix-relaxation-of-assembler-resolved-references.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0004-Fix-relaxation-of-assembler-resolved-references.patch | |||
@@ -1,17 +1,18 @@ | |||
1 | From cafd454afbd2722b9249024332182e3e96b1bcc7 Mon Sep 17 00:00:00 2001 | 1 | From 2b87c5c4ec4a7d6285c0991c202aae3cf8401d99 Mon Sep 17 00:00:00 2001 |
2 | From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> | 2 | From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> |
3 | Date: Tue, 14 Feb 2012 01:00:22 +0100 | 3 | Date: Tue, 14 Feb 2012 01:00:22 +0100 |
4 | Subject: [PATCH 04/31] Fix relaxation of assembler resolved references | 4 | Subject: [PATCH] Fix relaxation of assembler resolved references |
5 | 5 | ||
6 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> | 6 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> |
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | bfd/elf32-microblaze.c | 38 ++++++++++++++++++++++++++++++++++++++ | 10 | bfd/elf32-microblaze.c | 38 ++++++++++++++++++++++++++++++++++++++ |
10 | gas/config/tc-microblaze.c | 1 + | 11 | gas/config/tc-microblaze.c | 1 + |
11 | 2 files changed, 39 insertions(+) | 12 | 2 files changed, 39 insertions(+) |
12 | 13 | ||
13 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c | 14 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
14 | index 3d131bc..56c82ae 100644 | 15 | index e3c8027..359484d 100644 |
15 | --- a/bfd/elf32-microblaze.c | 16 | --- a/bfd/elf32-microblaze.c |
16 | +++ b/bfd/elf32-microblaze.c | 17 | +++ b/bfd/elf32-microblaze.c |
17 | @@ -1973,6 +1973,44 @@ microblaze_elf_relax_section (bfd *abfd, | 18 | @@ -1973,6 +1973,44 @@ microblaze_elf_relax_section (bfd *abfd, |
@@ -60,7 +61,7 @@ index 3d131bc..56c82ae 100644 | |||
60 | { | 61 | { |
61 | isym = isymbuf + ELF32_R_SYM (irelscan->r_info); | 62 | isym = isymbuf + ELF32_R_SYM (irelscan->r_info); |
62 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 63 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
63 | index 360ccba..e3dd1e0 100644 | 64 | index c92e9ce..3e72840 100644 |
64 | --- a/gas/config/tc-microblaze.c | 65 | --- a/gas/config/tc-microblaze.c |
65 | +++ b/gas/config/tc-microblaze.c | 66 | +++ b/gas/config/tc-microblaze.c |
66 | @@ -2205,6 +2205,7 @@ md_apply_fix (fixS * fixP, | 67 | @@ -2205,6 +2205,7 @@ md_apply_fix (fixS * fixP, |
@@ -71,6 +72,3 @@ index 360ccba..e3dd1e0 100644 | |||
71 | } | 72 | } |
72 | return; | 73 | return; |
73 | } | 74 | } |
74 | -- | ||
75 | 2.7.4 | ||
76 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0005-LOCAL-Fixup-debug_loc-sections-after-linker-relaxati.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0005-LOCAL-Fixup-debug_loc-sections-after-linker-relaxati.patch index 1b64bff1..a2954c91 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0005-LOCAL-Fixup-debug_loc-sections-after-linker-relaxati.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0005-LOCAL-Fixup-debug_loc-sections-after-linker-relaxati.patch | |||
@@ -1,16 +1,17 @@ | |||
1 | From 9c0639469318b3a88aa7cb5e776eed85b586c5d0 Mon Sep 17 00:00:00 2001 | 1 | From 68a91eb7ac94f0e0c6e9ebd7ad148c80cbc227df Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Mon, 6 Feb 2017 15:53:08 +0530 | 3 | Date: Mon, 6 Feb 2017 15:53:08 +0530 |
4 | Subject: [PATCH 05/31] [LOCAL]: Fixup debug_loc sections after linker | 4 | Subject: [PATCH] Fixup debug_loc sections after linker relaxation Adds a new |
5 | relaxation Adds a new reloctype R_MICROBLAZE_32_NONE, used for passing reloc | 5 | reloctype R_MICROBLAZE_32_NONE, used for passing reloc info from the |
6 | info from the assembler to the linker when the linker manages to fully | 6 | assembler to the linker when the linker manages to fully resolve a local |
7 | resolve a local symbol reference. | 7 | symbol reference. |
8 | 8 | ||
9 | This is a workaround for design flaws in the assembler to | 9 | This is a workaround for design flaws in the assembler to |
10 | linker interface with regards to linker relaxation. | 10 | linker interface with regards to linker relaxation. |
11 | 11 | ||
12 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> | 12 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> |
13 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 13 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
14 | |||
14 | --- | 15 | --- |
15 | bfd/bfd-in2.h | 9 ++++++-- | 16 | bfd/bfd-in2.h | 9 ++++++-- |
16 | bfd/elf32-microblaze.c | 53 ++++++++++++++++++++++++++++++++++------------ | 17 | bfd/elf32-microblaze.c | 53 ++++++++++++++++++++++++++++++++++------------ |
@@ -22,10 +23,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | |||
22 | 7 files changed, 64 insertions(+), 16 deletions(-) | 23 | 7 files changed, 64 insertions(+), 16 deletions(-) |
23 | 24 | ||
24 | diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h | 25 | diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h |
25 | index f53dbb5..5807f70 100644 | 26 | index e251d7e..fe6933a 100644 |
26 | --- a/bfd/bfd-in2.h | 27 | --- a/bfd/bfd-in2.h |
27 | +++ b/bfd/bfd-in2.h | 28 | +++ b/bfd/bfd-in2.h |
28 | @@ -5790,10 +5790,15 @@ value relative to the read-write small data area anchor */ | 29 | @@ -5867,10 +5867,15 @@ value relative to the read-write small data area anchor */ |
29 | expressions of the form "Symbol Op Symbol" */ | 30 | expressions of the form "Symbol Op Symbol" */ |
30 | BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM, | 31 | BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM, |
31 | 32 | ||
@@ -44,7 +45,7 @@ index f53dbb5..5807f70 100644 | |||
44 | /* This is a 64 bit reloc that stores the 32 bit pc relative | 45 | /* This is a 64 bit reloc that stores the 32 bit pc relative |
45 | value in two words (with an imm instruction). The relocation is | 46 | value in two words (with an imm instruction). The relocation is |
46 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c | 47 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
47 | index 56c82ae..a377790 100644 | 48 | index 359484d..1c69c26 100644 |
48 | --- a/bfd/elf32-microblaze.c | 49 | --- a/bfd/elf32-microblaze.c |
49 | +++ b/bfd/elf32-microblaze.c | 50 | +++ b/bfd/elf32-microblaze.c |
50 | @@ -176,7 +176,21 @@ static reloc_howto_type microblaze_elf_howto_raw[] = | 51 | @@ -176,7 +176,21 @@ static reloc_howto_type microblaze_elf_howto_raw[] = |
@@ -163,10 +164,10 @@ index 56c82ae..a377790 100644 | |||
163 | 0, | 164 | 0, |
164 | sec); | 165 | sec); |
165 | diff --git a/bfd/libbfd.h b/bfd/libbfd.h | 166 | diff --git a/bfd/libbfd.h b/bfd/libbfd.h |
166 | index 85f61b2..261086c 100644 | 167 | index 36284d7..feb9fad 100644 |
167 | --- a/bfd/libbfd.h | 168 | --- a/bfd/libbfd.h |
168 | +++ b/bfd/libbfd.h | 169 | +++ b/bfd/libbfd.h |
169 | @@ -2862,6 +2862,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", | 170 | @@ -2901,6 +2901,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", |
170 | "BFD_RELOC_MICROBLAZE_32_ROSDA", | 171 | "BFD_RELOC_MICROBLAZE_32_ROSDA", |
171 | "BFD_RELOC_MICROBLAZE_32_RWSDA", | 172 | "BFD_RELOC_MICROBLAZE_32_RWSDA", |
172 | "BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM", | 173 | "BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM", |
@@ -175,10 +176,10 @@ index 85f61b2..261086c 100644 | |||
175 | "BFD_RELOC_MICROBLAZE_64_GOTPC", | 176 | "BFD_RELOC_MICROBLAZE_64_GOTPC", |
176 | "BFD_RELOC_MICROBLAZE_64_GOT", | 177 | "BFD_RELOC_MICROBLAZE_64_GOT", |
177 | diff --git a/bfd/reloc.c b/bfd/reloc.c | 178 | diff --git a/bfd/reloc.c b/bfd/reloc.c |
178 | index 68bc8a8..d89bc5d 100644 | 179 | index e6446a7..87753ae 100644 |
179 | --- a/bfd/reloc.c | 180 | --- a/bfd/reloc.c |
180 | +++ b/bfd/reloc.c | 181 | +++ b/bfd/reloc.c |
181 | @@ -6865,6 +6865,12 @@ ENUMDOC | 182 | @@ -6796,6 +6796,12 @@ ENUMDOC |
182 | This is a 32 bit reloc for the microblaze to handle | 183 | This is a 32 bit reloc for the microblaze to handle |
183 | expressions of the form "Symbol Op Symbol" | 184 | expressions of the form "Symbol Op Symbol" |
184 | ENUM | 185 | ENUM |
@@ -192,10 +193,10 @@ index 68bc8a8..d89bc5d 100644 | |||
192 | ENUMDOC | 193 | ENUMDOC |
193 | This is a 64 bit reloc that stores the 32 bit pc relative | 194 | This is a 64 bit reloc that stores the 32 bit pc relative |
194 | diff --git a/binutils/readelf.c b/binutils/readelf.c | 195 | diff --git a/binutils/readelf.c b/binutils/readelf.c |
195 | index 1b50ba7..13e794d 100644 | 196 | index 9df3742..1bbc2d1 100644 |
196 | --- a/binutils/readelf.c | 197 | --- a/binutils/readelf.c |
197 | +++ b/binutils/readelf.c | 198 | +++ b/binutils/readelf.c |
198 | @@ -12907,6 +12907,10 @@ is_none_reloc (Filedata * filedata, unsigned int reloc_type) | 199 | @@ -13020,6 +13020,10 @@ is_none_reloc (Filedata * filedata, unsigned int reloc_type) |
199 | || reloc_type == 32 /* R_AVR_DIFF32. */); | 200 | || reloc_type == 32 /* R_AVR_DIFF32. */); |
200 | case EM_METAG: | 201 | case EM_METAG: |
201 | return reloc_type == 3; /* R_METAG_NONE. */ | 202 | return reloc_type == 3; /* R_METAG_NONE. */ |
@@ -207,7 +208,7 @@ index 1b50ba7..13e794d 100644 | |||
207 | return (reloc_type == 0 /* R_XTENSA_NONE. */ | 208 | return (reloc_type == 0 /* R_XTENSA_NONE. */ |
208 | || reloc_type == 204 /* R_NDS32_DIFF8. */ | 209 | || reloc_type == 204 /* R_NDS32_DIFF8. */ |
209 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 210 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
210 | index e3dd1e0..b34796c 100644 | 211 | index 3e72840..fa665b4 100644 |
211 | --- a/gas/config/tc-microblaze.c | 212 | --- a/gas/config/tc-microblaze.c |
212 | +++ b/gas/config/tc-microblaze.c | 213 | +++ b/gas/config/tc-microblaze.c |
213 | @@ -2201,7 +2201,9 @@ md_apply_fix (fixS * fixP, | 214 | @@ -2201,7 +2201,9 @@ md_apply_fix (fixS * fixP, |
@@ -230,7 +231,7 @@ index e3dd1e0..b34796c 100644 | |||
230 | case BFD_RELOC_32: | 231 | case BFD_RELOC_32: |
231 | case BFD_RELOC_MICROBLAZE_32_LO: | 232 | case BFD_RELOC_MICROBLAZE_32_LO: |
232 | diff --git a/include/elf/microblaze.h b/include/elf/microblaze.h | 233 | diff --git a/include/elf/microblaze.h b/include/elf/microblaze.h |
233 | index dbaa16c..7bdba67 100644 | 234 | index 830b5ad..6ee0966 100644 |
234 | --- a/include/elf/microblaze.h | 235 | --- a/include/elf/microblaze.h |
235 | +++ b/include/elf/microblaze.h | 236 | +++ b/include/elf/microblaze.h |
236 | @@ -61,6 +61,8 @@ START_RELOC_NUMBERS (elf_microblaze_reloc_type) | 237 | @@ -61,6 +61,8 @@ START_RELOC_NUMBERS (elf_microblaze_reloc_type) |
@@ -242,6 +243,3 @@ index dbaa16c..7bdba67 100644 | |||
242 | END_RELOC_NUMBERS (R_MICROBLAZE_max) | 243 | END_RELOC_NUMBERS (R_MICROBLAZE_max) |
243 | 244 | ||
244 | /* Global base address names. */ | 245 | /* Global base address names. */ |
245 | -- | ||
246 | 2.7.4 | ||
247 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0006-upstream-change-to-garbage-collection-sweep-causes-m.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0006-upstream-change-to-garbage-collection-sweep-causes-m.patch index 0c7b95b4..8c72ecf7 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0006-upstream-change-to-garbage-collection-sweep-causes-m.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0006-upstream-change-to-garbage-collection-sweep-causes-m.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 1bb6a80a2ae3cff3a3cc8526ec09e60f66b7cb96 Mon Sep 17 00:00:00 2001 | 1 | From 0ee164f7e50d88e1cda4fdebd6f7bd182d0f27b3 Mon Sep 17 00:00:00 2001 |
2 | From: David Holsgrove <david.holsgrove@xilinx.com> | 2 | From: David Holsgrove <david.holsgrove@xilinx.com> |
3 | Date: Wed, 27 Feb 2013 13:56:11 +1000 | 3 | Date: Wed, 27 Feb 2013 13:56:11 +1000 |
4 | Subject: [PATCH 06/31] upstream change to garbage collection sweep causes mb | 4 | Subject: [PATCH] upstream change to garbage collection sweep causes mb |
5 | regression | 5 | regression |
6 | 6 | ||
7 | Upstream change for PR13177 now clears the def_regular during gc_sweep of a | 7 | Upstream change for PR13177 now clears the def_regular during gc_sweep of a |
@@ -19,15 +19,16 @@ relocations for a shared lib with garbage collection this occurs | |||
19 | 19 | ||
20 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | 20 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> |
21 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 21 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
22 | |||
22 | --- | 23 | --- |
23 | bfd/elflink.c | 1 - | 24 | bfd/elflink.c | 1 - |
24 | 1 file changed, 1 deletion(-) | 25 | 1 file changed, 1 deletion(-) |
25 | 26 | ||
26 | diff --git a/bfd/elflink.c b/bfd/elflink.c | 27 | diff --git a/bfd/elflink.c b/bfd/elflink.c |
27 | index b24fb95..b316149 100644 | 28 | index e50c0e4..09d43e3 100644 |
28 | --- a/bfd/elflink.c | 29 | --- a/bfd/elflink.c |
29 | +++ b/bfd/elflink.c | 30 | +++ b/bfd/elflink.c |
30 | @@ -6172,7 +6172,6 @@ elf_gc_sweep_symbol (struct elf_link_hash_entry *h, void *data) | 31 | @@ -6187,7 +6187,6 @@ elf_gc_sweep_symbol (struct elf_link_hash_entry *h, void *data) |
31 | 32 | ||
32 | inf = (struct elf_gc_sweep_symbol_info *) data; | 33 | inf = (struct elf_gc_sweep_symbol_info *) data; |
33 | (*inf->hide_symbol) (inf->info, h, TRUE); | 34 | (*inf->hide_symbol) (inf->info, h, TRUE); |
@@ -35,6 +36,3 @@ index b24fb95..b316149 100644 | |||
35 | h->ref_regular = 0; | 36 | h->ref_regular = 0; |
36 | h->ref_regular_nonweak = 0; | 37 | h->ref_regular_nonweak = 0; |
37 | } | 38 | } |
38 | -- | ||
39 | 2.7.4 | ||
40 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0007-Fix-bug-in-TLSTPREL-Relocation.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0007-Fix-bug-in-TLSTPREL-Relocation.patch index 8d880f12..472aa0cf 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0007-Fix-bug-in-TLSTPREL-Relocation.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0007-Fix-bug-in-TLSTPREL-Relocation.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 7bfa31fb09557bc33f4965cd08c865df9c67fbc4 Mon Sep 17 00:00:00 2001 | 1 | From 1367d2933de24720fa24032947f784b72b54e974 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Mon, 15 Jun 2015 16:50:30 +0530 | 3 | Date: Mon, 15 Jun 2015 16:50:30 +0530 |
4 | Subject: [PATCH 07/31] Fix bug in TLSTPREL Relocation | 4 | Subject: [PATCH] Fix bug in TLSTPREL Relocation |
5 | 5 | ||
6 | Fixed the problem related to the fixup/relocations TLSTPREL. | 6 | Fixed the problem related to the fixup/relocations TLSTPREL. |
7 | When the fixup is applied the addend is not added at the correct offset | 7 | When the fixup is applied the addend is not added at the correct offset |
@@ -10,12 +10,13 @@ and it fails for Little endian. This patch allows support for both | |||
10 | big & little-endian compilers | 10 | big & little-endian compilers |
11 | 11 | ||
12 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 12 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
13 | |||
13 | --- | 14 | --- |
14 | bfd/elf32-microblaze.c | 4 ++-- | 15 | bfd/elf32-microblaze.c | 4 ++-- |
15 | 1 file changed, 2 insertions(+), 2 deletions(-) | 16 | 1 file changed, 2 insertions(+), 2 deletions(-) |
16 | 17 | ||
17 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c | 18 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
18 | index a377790..474bd0e 100644 | 19 | index 1c69c26..d19a6dc 100644 |
19 | --- a/bfd/elf32-microblaze.c | 20 | --- a/bfd/elf32-microblaze.c |
20 | +++ b/bfd/elf32-microblaze.c | 21 | +++ b/bfd/elf32-microblaze.c |
21 | @@ -1451,9 +1451,9 @@ microblaze_elf_relocate_section (bfd *output_bfd, | 22 | @@ -1451,9 +1451,9 @@ microblaze_elf_relocate_section (bfd *output_bfd, |
@@ -30,6 +31,3 @@ index a377790..474bd0e 100644 | |||
30 | break; | 31 | break; |
31 | case (int) R_MICROBLAZE_TEXTREL_64: | 32 | case (int) R_MICROBLAZE_TEXTREL_64: |
32 | case (int) R_MICROBLAZE_TEXTREL_32_LO: | 33 | case (int) R_MICROBLAZE_TEXTREL_32_LO: |
33 | -- | ||
34 | 2.7.4 | ||
35 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0008-Added-Address-extension-instructions.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0008-Added-Address-extension-instructions.patch index b7eaf383..23d17935 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0008-Added-Address-extension-instructions.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0008-Added-Address-extension-instructions.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 693a9f95f2fd78b334ed9bb7265ad2f95b536a2d Mon Sep 17 00:00:00 2001 | 1 | From 57675e049d815f6fce100bd5effaea187abacf04 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Mon, 18 Jan 2016 12:28:21 +0530 | 3 | Date: Mon, 18 Jan 2016 12:28:21 +0530 |
4 | Subject: [PATCH 08/31] Added Address extension instructions | 4 | Subject: [PATCH] Added Address extension instructions |
5 | 5 | ||
6 | This patch adds the support of new instructions which are required | 6 | This patch adds the support of new instructions which are required |
7 | for supporting Address extension feature. | 7 | for supporting Address extension feature. |
@@ -15,13 +15,14 @@ ChangeLog: | |||
15 | Added new instructions | 15 | Added new instructions |
16 | *microblaze-opcm.h (microblaze_instr): Update | 16 | *microblaze-opcm.h (microblaze_instr): Update |
17 | Added new instructions | 17 | Added new instructions |
18 | |||
18 | --- | 19 | --- |
19 | opcodes/microblaze-opc.h | 11 +++++++++++ | 20 | opcodes/microblaze-opc.h | 11 +++++++++++ |
20 | opcodes/microblaze-opcm.h | 10 +++++----- | 21 | opcodes/microblaze-opcm.h | 10 +++++----- |
21 | 2 files changed, 16 insertions(+), 5 deletions(-) | 22 | 2 files changed, 16 insertions(+), 5 deletions(-) |
22 | 23 | ||
23 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h | 24 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h |
24 | index 773dc81..292e3a4 100644 | 25 | index 865151f..330f104 100644 |
25 | --- a/opcodes/microblaze-opc.h | 26 | --- a/opcodes/microblaze-opc.h |
26 | +++ b/opcodes/microblaze-opc.h | 27 | +++ b/opcodes/microblaze-opc.h |
27 | @@ -178,8 +178,11 @@ struct op_code_struct | 28 | @@ -178,8 +178,11 @@ struct op_code_struct |
@@ -71,7 +72,7 @@ index 773dc81..292e3a4 100644 | |||
71 | {"swaph", INST_TYPE_RD_R1, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x900001E2, OPCODE_MASK_H4, swaph, arithmetic_inst }, | 72 | {"swaph", INST_TYPE_RD_R1, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x900001E2, OPCODE_MASK_H4, swaph, arithmetic_inst }, |
72 | {"", 0, 0, 0, 0, 0, 0, 0, 0}, | 73 | {"", 0, 0, 0, 0, 0, 0, 0, 0}, |
73 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h | 74 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h |
74 | index 7338f6a..c75f10a 100644 | 75 | index 42f3dd3..1c39dbf 100644 |
75 | --- a/opcodes/microblaze-opcm.h | 76 | --- a/opcodes/microblaze-opcm.h |
76 | +++ b/opcodes/microblaze-opcm.h | 77 | +++ b/opcodes/microblaze-opcm.h |
77 | @@ -33,13 +33,13 @@ enum microblaze_instr | 78 | @@ -33,13 +33,13 @@ enum microblaze_instr |
@@ -93,6 +94,3 @@ index 7338f6a..c75f10a 100644 | |||
93 | sbi, shi, swi, msrset, msrclr, tuqula, fadd, frsub, fmul, fdiv, | 94 | sbi, shi, swi, msrset, msrclr, tuqula, fadd, frsub, fmul, fdiv, |
94 | fcmp_lt, fcmp_eq, fcmp_le, fcmp_gt, fcmp_ne, fcmp_ge, fcmp_un, flt, | 95 | fcmp_lt, fcmp_eq, fcmp_le, fcmp_gt, fcmp_ne, fcmp_ge, fcmp_un, flt, |
95 | fint, fsqrt, | 96 | fint, fsqrt, |
96 | -- | ||
97 | 2.7.4 | ||
98 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0009-fixing-the-MAX_OPCODES-to-correct-value.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0009-fixing-the-MAX_OPCODES-to-correct-value.patch index a8e33af9..0eaa6990 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0009-fixing-the-MAX_OPCODES-to-correct-value.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0009-fixing-the-MAX_OPCODES-to-correct-value.patch | |||
@@ -1,15 +1,16 @@ | |||
1 | From c96e1cac59722005484ff5051b03fcc43efd246f Mon Sep 17 00:00:00 2001 | 1 | From 98b1a76e13ad32c979208a22e5b6b7cb260426b0 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Thu, 28 Jan 2016 14:07:34 +0530 | 3 | Date: Thu, 28 Jan 2016 14:07:34 +0530 |
4 | Subject: [PATCH 09/31] fixing the MAX_OPCODES to correct value | 4 | Subject: [PATCH] fixing the MAX_OPCODES to correct value |
5 | 5 | ||
6 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 6 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
7 | |||
7 | --- | 8 | --- |
8 | opcodes/microblaze-opc.h | 2 +- | 9 | opcodes/microblaze-opc.h | 2 +- |
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
10 | 11 | ||
11 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h | 12 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h |
12 | index 292e3a4..4e69f76 100644 | 13 | index 330f104..2a6b841 100644 |
13 | --- a/opcodes/microblaze-opc.h | 14 | --- a/opcodes/microblaze-opc.h |
14 | +++ b/opcodes/microblaze-opc.h | 15 | +++ b/opcodes/microblaze-opc.h |
15 | @@ -102,7 +102,7 @@ | 16 | @@ -102,7 +102,7 @@ |
@@ -21,6 +22,3 @@ index 292e3a4..4e69f76 100644 | |||
21 | 22 | ||
22 | struct op_code_struct | 23 | struct op_code_struct |
23 | { | 24 | { |
24 | -- | ||
25 | 2.7.4 | ||
26 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0010-Add-new-bit-field-instructions.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0010-Add-new-bit-field-instructions.patch index 5410bad9..ea288aa1 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0010-Add-new-bit-field-instructions.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0010-Add-new-bit-field-instructions.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From bcb1dcdb9349fb2f6863daf9206552916bd4149b Mon Sep 17 00:00:00 2001 | 1 | From 200359b776fbb19a1423ff4d0c46f5301af197c6 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Mon, 18 Jul 2016 12:24:28 +0530 | 3 | Date: Mon, 18 Jul 2016 12:24:28 +0530 |
4 | Subject: [PATCH 10/31] Add new bit-field instructions | 4 | Subject: [PATCH] Add new bit-field instructions |
5 | 5 | ||
6 | This patches adds new bsefi and bsifi instructions. | 6 | This patches adds new bsefi and bsifi instructions. |
7 | BSEFI- The instruction shall extract a bit field from a | 7 | BSEFI- The instruction shall extract a bit field from a |
@@ -12,6 +12,7 @@ from a register at another position in the destination register. | |||
12 | The rest of the bits in the destination register shall be unchanged | 12 | The rest of the bits in the destination register shall be unchanged |
13 | 13 | ||
14 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | 14 | Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> |
15 | |||
15 | --- | 16 | --- |
16 | gas/config/tc-microblaze.c | 71 +++++++++++++++++++++++++++++++++++++++++++++- | 17 | gas/config/tc-microblaze.c | 71 +++++++++++++++++++++++++++++++++++++++++++++- |
17 | opcodes/microblaze-dis.c | 16 +++++++++++ | 18 | opcodes/microblaze-dis.c | 16 +++++++++++ |
@@ -20,7 +21,7 @@ Signed-off-by :Nagaraju Mekala <nmekala@xilix.com> | |||
20 | 4 files changed, 102 insertions(+), 3 deletions(-) | 21 | 4 files changed, 102 insertions(+), 3 deletions(-) |
21 | 22 | ||
22 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 23 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
23 | index b34796c..7b42c99 100644 | 24 | index fa665b4..71bb888 100644 |
24 | --- a/gas/config/tc-microblaze.c | 25 | --- a/gas/config/tc-microblaze.c |
25 | +++ b/gas/config/tc-microblaze.c | 26 | +++ b/gas/config/tc-microblaze.c |
26 | @@ -917,7 +917,7 @@ md_assemble (char * str) | 27 | @@ -917,7 +917,7 @@ md_assemble (char * str) |
@@ -110,7 +111,7 @@ index b34796c..7b42c99 100644 | |||
110 | if (strcmp (op_end, "")) | 111 | if (strcmp (op_end, "")) |
111 | op_end = parse_reg (op_end + 1, ®1); /* Get r1. */ | 112 | op_end = parse_reg (op_end + 1, ®1); /* Get r1. */ |
112 | diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c | 113 | diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c |
113 | index 3b676d8..5101ceb 100644 | 114 | index f691740..f8aaf27 100644 |
114 | --- a/opcodes/microblaze-dis.c | 115 | --- a/opcodes/microblaze-dis.c |
115 | +++ b/opcodes/microblaze-dis.c | 116 | +++ b/opcodes/microblaze-dis.c |
116 | @@ -74,6 +74,18 @@ get_field_imm5_mbar (long instr) | 117 | @@ -74,6 +74,18 @@ get_field_imm5_mbar (long instr) |
@@ -144,7 +145,7 @@ index 3b676d8..5101ceb 100644 | |||
144 | case INST_TYPE_RD: | 145 | case INST_TYPE_RD: |
145 | print_func (stream, "\t%s", get_field_rd (inst)); | 146 | print_func (stream, "\t%s", get_field_rd (inst)); |
146 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h | 147 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h |
147 | index 4e69f76..4bc400a 100644 | 148 | index 2a6b841..ce8ac35 100644 |
148 | --- a/opcodes/microblaze-opc.h | 149 | --- a/opcodes/microblaze-opc.h |
149 | +++ b/opcodes/microblaze-opc.h | 150 | +++ b/opcodes/microblaze-opc.h |
150 | @@ -59,6 +59,9 @@ | 151 | @@ -59,6 +59,9 @@ |
@@ -195,7 +196,7 @@ index 4e69f76..4bc400a 100644 | |||
195 | #endif /* MICROBLAZE_OPC */ | 196 | #endif /* MICROBLAZE_OPC */ |
196 | 197 | ||
197 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h | 198 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h |
198 | index c75f10a..b69e6a4 100644 | 199 | index 1c39dbf..2866269 100644 |
199 | --- a/opcodes/microblaze-opcm.h | 200 | --- a/opcodes/microblaze-opcm.h |
200 | +++ b/opcodes/microblaze-opcm.h | 201 | +++ b/opcodes/microblaze-opcm.h |
201 | @@ -29,7 +29,7 @@ enum microblaze_instr | 202 | @@ -29,7 +29,7 @@ enum microblaze_instr |
@@ -225,6 +226,3 @@ index c75f10a..b69e6a4 100644 | |||
225 | /* FSL imm mask for get, put instructions. */ | 226 | /* FSL imm mask for get, put instructions. */ |
226 | #define RFSL_MASK 0x000000F | 227 | #define RFSL_MASK 0x000000F |
227 | 228 | ||
228 | -- | ||
229 | 2.7.4 | ||
230 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0011-fixing-the-imm-bug.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0011-fixing-the-imm-bug.patch index 1b903e64..43d368c3 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0011-fixing-the-imm-bug.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0011-fixing-the-imm-bug.patch | |||
@@ -1,16 +1,17 @@ | |||
1 | From f61fb7af045c67c8c1c48cabecf568205d6f9637 Mon Sep 17 00:00:00 2001 | 1 | From cb65478b8ec240b372a9da7fe33875a59e89a1fe Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Mon, 10 Jul 2017 16:07:28 +0530 | 3 | Date: Mon, 10 Jul 2017 16:07:28 +0530 |
4 | Subject: [PATCH 11/31] fixing the imm bug. with relax option imm -1 is also | 4 | Subject: [PATCH] fixing the imm bug. with relax option imm -1 is also getting |
5 | getting removed this is corrected now. | 5 | removed this is corrected now. |
6 | 6 | ||
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | bfd/elf32-microblaze.c | 3 +-- | 10 | bfd/elf32-microblaze.c | 3 +-- |
10 | 1 file changed, 1 insertion(+), 2 deletions(-) | 11 | 1 file changed, 1 insertion(+), 2 deletions(-) |
11 | 12 | ||
12 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c | 13 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
13 | index 474bd0e..94fa3cf 100644 | 14 | index d19a6dc..d001437 100644 |
14 | --- a/bfd/elf32-microblaze.c | 15 | --- a/bfd/elf32-microblaze.c |
15 | +++ b/bfd/elf32-microblaze.c | 16 | +++ b/bfd/elf32-microblaze.c |
16 | @@ -1869,8 +1869,7 @@ microblaze_elf_relax_section (bfd *abfd, | 17 | @@ -1869,8 +1869,7 @@ microblaze_elf_relax_section (bfd *abfd, |
@@ -23,6 +24,3 @@ index 474bd0e..94fa3cf 100644 | |||
23 | { | 24 | { |
24 | /* We can delete this instruction. */ | 25 | /* We can delete this instruction. */ |
25 | sec->relax[sec->relax_count].addr = irel->r_offset; | 26 | sec->relax[sec->relax_count].addr = irel->r_offset; |
26 | -- | ||
27 | 2.7.4 | ||
28 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0012-Patch-Microblaze-fixed-bug-in-GCC-so-that-It-will-su.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0012-Patch-Microblaze-fixed-bug-in-GCC-so-that-It-will-su.patch index b1eb240d..9abed968 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0012-Patch-Microblaze-fixed-bug-in-GCC-so-that-It-will-su.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0012-Patch-Microblaze-fixed-bug-in-GCC-so-that-It-will-su.patch | |||
@@ -1,17 +1,18 @@ | |||
1 | From ff25d91969293aeddfffc8ae6d87f3f910a69d7b Mon Sep 17 00:00:00 2001 | 1 | From 58271555959fcc3eadb1f23c8d31d793c979984b Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Fri, 29 Sep 2017 18:00:23 +0530 | 3 | Date: Fri, 29 Sep 2017 18:00:23 +0530 |
4 | Subject: [PATCH 12/31] [Patch,Microblaze]: fixed bug in GCC so that It will | 4 | Subject: [PATCH] fixed bug in GCC so that It will support .long 0U and .long |
5 | support .long 0U and .long 0u | 5 | 0u |
6 | 6 | ||
7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
9 | |||
9 | --- | 10 | --- |
10 | gas/expr.c | 9 +++++++++ | 11 | gas/expr.c | 9 +++++++++ |
11 | 1 file changed, 9 insertions(+) | 12 | 1 file changed, 9 insertions(+) |
12 | 13 | ||
13 | diff --git a/gas/expr.c b/gas/expr.c | 14 | diff --git a/gas/expr.c b/gas/expr.c |
14 | index 074e0b3..993aaca 100644 | 15 | index ee85bda..b502418 100644 |
15 | --- a/gas/expr.c | 16 | --- a/gas/expr.c |
16 | +++ b/gas/expr.c | 17 | +++ b/gas/expr.c |
17 | @@ -810,6 +810,15 @@ operand (expressionS *expressionP, enum expr_mode mode) | 18 | @@ -810,6 +810,15 @@ operand (expressionS *expressionP, enum expr_mode mode) |
@@ -30,6 +31,3 @@ index 074e0b3..993aaca 100644 | |||
30 | c = *input_line_pointer; | 31 | c = *input_line_pointer; |
31 | switch (c) | 32 | switch (c) |
32 | { | 33 | { |
33 | -- | ||
34 | 2.7.4 | ||
35 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0013-fixing-the-constant-range-check-issue.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0013-fixing-the-constant-range-check-issue.patch index 03e4c701..4aef7c98 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0013-fixing-the-constant-range-check-issue.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0013-fixing-the-constant-range-check-issue.patch | |||
@@ -1,16 +1,17 @@ | |||
1 | From 85e4d02730d657ddc9ce25f3e7eccf4818bc25eb Mon Sep 17 00:00:00 2001 | 1 | From 70ba2154c2261d5a9d35a765c29acc5fdcdeea38 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Mon, 16 Oct 2017 15:44:23 +0530 | 3 | Date: Mon, 16 Oct 2017 15:44:23 +0530 |
4 | Subject: [PATCH 13/31] fixing the constant range check issue sample error: not | 4 | Subject: [PATCH] fixing the constant range check issue sample error: not in |
5 | in range ffffffff80000000..7fffffff, not ffffffff70000000 | 5 | range ffffffff80000000..7fffffff, not ffffffff70000000 |
6 | 6 | ||
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | gas/config/tc-microblaze.c | 2 +- | 10 | gas/config/tc-microblaze.c | 2 +- |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
11 | 12 | ||
12 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 13 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
13 | index 7b42c99..f1d97b9 100644 | 14 | index 71bb888..16b10d0 100644 |
14 | --- a/gas/config/tc-microblaze.c | 15 | --- a/gas/config/tc-microblaze.c |
15 | +++ b/gas/config/tc-microblaze.c | 16 | +++ b/gas/config/tc-microblaze.c |
16 | @@ -757,7 +757,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max) | 17 | @@ -757,7 +757,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max) |
@@ -22,6 +23,3 @@ index 7b42c99..f1d97b9 100644 | |||
22 | { | 23 | { |
23 | as_fatal (_("operand must be absolute in range %lx..%lx, not %lx"), | 24 | as_fatal (_("operand must be absolute in range %lx..%lx, not %lx"), |
24 | (long) min, (long) max, (long) e->X_add_number); | 25 | (long) min, (long) max, (long) e->X_add_number); |
25 | -- | ||
26 | 2.7.4 | ||
27 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0014-Patch-Microblaze-Compiler-will-give-error-messages-i.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0014-Patch-Microblaze-Compiler-will-give-error-messages-i.patch index 52274e02..21182569 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0014-Patch-Microblaze-Compiler-will-give-error-messages-i.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0014-Patch-Microblaze-Compiler-will-give-error-messages-i.patch | |||
@@ -1,20 +1,21 @@ | |||
1 | From 3d1e635a4223f6c0a0b938b94911740b4aa0db8f Mon Sep 17 00:00:00 2001 | 1 | From 1b8f6099c5f85d77ef666becff1c4edd0aa724ab Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Wed, 21 Feb 2018 12:32:02 +0530 | 3 | Date: Wed, 21 Feb 2018 12:32:02 +0530 |
4 | Subject: [PATCH 14/31] [Patch,Microblaze]: Compiler will give error messages | 4 | Subject: [PATCH] Compiler will give error messages in more detail for |
5 | in more detail for mxl-gp-opt flag.. | 5 | mxl-gp-opt flag.. |
6 | 6 | ||
7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
9 | |||
9 | --- | 10 | --- |
10 | ld/ldmain.c | 12 ++++++++++++ | 11 | ld/ldmain.c | 12 ++++++++++++ |
11 | 1 file changed, 12 insertions(+) | 12 | 1 file changed, 12 insertions(+) |
12 | 13 | ||
13 | diff --git a/ld/ldmain.c b/ld/ldmain.c | 14 | diff --git a/ld/ldmain.c b/ld/ldmain.c |
14 | index f31eeb2..04e96ca 100644 | 15 | index 725512f..2ed413a 100644 |
15 | --- a/ld/ldmain.c | 16 | --- a/ld/ldmain.c |
16 | +++ b/ld/ldmain.c | 17 | +++ b/ld/ldmain.c |
17 | @@ -1434,6 +1434,18 @@ reloc_overflow (struct bfd_link_info *info, | 18 | @@ -1448,6 +1448,18 @@ reloc_overflow (struct bfd_link_info *info, |
18 | break; | 19 | break; |
19 | case bfd_link_hash_defined: | 20 | case bfd_link_hash_defined: |
20 | case bfd_link_hash_defweak: | 21 | case bfd_link_hash_defweak: |
@@ -33,6 +34,3 @@ index f31eeb2..04e96ca 100644 | |||
33 | einfo (_(" relocation truncated to fit: " | 34 | einfo (_(" relocation truncated to fit: " |
34 | "%s against symbol `%pT' defined in %pA section in %pB"), | 35 | "%s against symbol `%pT' defined in %pA section in %pB"), |
35 | reloc_name, entry->root.string, | 36 | reloc_name, entry->root.string, |
36 | -- | ||
37 | 2.7.4 | ||
38 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0015-intial-commit-of-MB-64-bit.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0015-intial-commit-of-MB-64-bit.patch index eb4eaf1d..1afe8307 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0015-intial-commit-of-MB-64-bit.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0015-intial-commit-of-MB-64-bit.patch | |||
@@ -1,10 +1,11 @@ | |||
1 | From f548b7a7d92d8f06afee253a7faf71f5bb1cb163 Mon Sep 17 00:00:00 2001 | 1 | From e0a7cf883ed02a73fda5f7d3e131afc8f1ebe416 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Sun, 30 Sep 2018 16:28:28 +0530 | 3 | Date: Sun, 30 Sep 2018 16:28:28 +0530 |
4 | Subject: [PATCH 15/31] intial commit of MB 64-bit | 4 | Subject: [PATCH] intial commit of MB 64-bit |
5 | 5 | ||
6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | bfd/Makefile.am | 2 + | 10 | bfd/Makefile.am | 2 + |
10 | bfd/Makefile.in | 3 + | 11 | bfd/Makefile.in | 3 + |
@@ -31,10 +32,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | |||
31 | create mode 100644 ld/emulparams/elf64microblazeel.sh | 32 | create mode 100644 ld/emulparams/elf64microblazeel.sh |
32 | 33 | ||
33 | diff --git a/bfd/Makefile.am b/bfd/Makefile.am | 34 | diff --git a/bfd/Makefile.am b/bfd/Makefile.am |
34 | index 3f3487f..ae6bf3e 100644 | 35 | index a919155..c5fd250 100644 |
35 | --- a/bfd/Makefile.am | 36 | --- a/bfd/Makefile.am |
36 | +++ b/bfd/Makefile.am | 37 | +++ b/bfd/Makefile.am |
37 | @@ -568,6 +568,7 @@ BFD64_BACKENDS = \ | 38 | @@ -570,6 +570,7 @@ BFD64_BACKENDS = \ |
38 | elf64-riscv.lo \ | 39 | elf64-riscv.lo \ |
39 | elfxx-riscv.lo \ | 40 | elfxx-riscv.lo \ |
40 | elf64-s390.lo \ | 41 | elf64-s390.lo \ |
@@ -42,7 +43,7 @@ index 3f3487f..ae6bf3e 100644 | |||
42 | elf64-sparc.lo \ | 43 | elf64-sparc.lo \ |
43 | elf64-tilegx.lo \ | 44 | elf64-tilegx.lo \ |
44 | elf64-x86-64.lo \ | 45 | elf64-x86-64.lo \ |
45 | @@ -601,6 +602,7 @@ BFD64_BACKENDS_CFILES = \ | 46 | @@ -603,6 +604,7 @@ BFD64_BACKENDS_CFILES = \ |
46 | elf64-nfp.c \ | 47 | elf64-nfp.c \ |
47 | elf64-ppc.c \ | 48 | elf64-ppc.c \ |
48 | elf64-s390.c \ | 49 | elf64-s390.c \ |
@@ -51,10 +52,10 @@ index 3f3487f..ae6bf3e 100644 | |||
51 | elf64-tilegx.c \ | 52 | elf64-tilegx.c \ |
52 | elf64-x86-64.c \ | 53 | elf64-x86-64.c \ |
53 | diff --git a/bfd/Makefile.in b/bfd/Makefile.in | 54 | diff --git a/bfd/Makefile.in b/bfd/Makefile.in |
54 | index cc27ef0..3ba6eee 100644 | 55 | index 896df52..fd457cb 100644 |
55 | --- a/bfd/Makefile.in | 56 | --- a/bfd/Makefile.in |
56 | +++ b/bfd/Makefile.in | 57 | +++ b/bfd/Makefile.in |
57 | @@ -992,6 +992,7 @@ BFD64_BACKENDS = \ | 58 | @@ -995,6 +995,7 @@ BFD64_BACKENDS = \ |
58 | elf64-riscv.lo \ | 59 | elf64-riscv.lo \ |
59 | elfxx-riscv.lo \ | 60 | elfxx-riscv.lo \ |
60 | elf64-s390.lo \ | 61 | elf64-s390.lo \ |
@@ -62,7 +63,7 @@ index cc27ef0..3ba6eee 100644 | |||
62 | elf64-sparc.lo \ | 63 | elf64-sparc.lo \ |
63 | elf64-tilegx.lo \ | 64 | elf64-tilegx.lo \ |
64 | elf64-x86-64.lo \ | 65 | elf64-x86-64.lo \ |
65 | @@ -1025,6 +1026,7 @@ BFD64_BACKENDS_CFILES = \ | 66 | @@ -1028,6 +1029,7 @@ BFD64_BACKENDS_CFILES = \ |
66 | elf64-nfp.c \ | 67 | elf64-nfp.c \ |
67 | elf64-ppc.c \ | 68 | elf64-ppc.c \ |
68 | elf64-s390.c \ | 69 | elf64-s390.c \ |
@@ -70,7 +71,7 @@ index cc27ef0..3ba6eee 100644 | |||
70 | elf64-sparc.c \ | 71 | elf64-sparc.c \ |
71 | elf64-tilegx.c \ | 72 | elf64-tilegx.c \ |
72 | elf64-x86-64.c \ | 73 | elf64-x86-64.c \ |
73 | @@ -1489,6 +1491,7 @@ distclean-compile: | 74 | @@ -1494,6 +1496,7 @@ distclean-compile: |
74 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-ppc.Plo@am__quote@ | 75 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-ppc.Plo@am__quote@ |
75 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-riscv.Plo@am__quote@ | 76 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-riscv.Plo@am__quote@ |
76 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-s390.Plo@am__quote@ | 77 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-s390.Plo@am__quote@ |
@@ -79,10 +80,10 @@ index cc27ef0..3ba6eee 100644 | |||
79 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-tilegx.Plo@am__quote@ | 80 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-tilegx.Plo@am__quote@ |
80 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-x86-64.Plo@am__quote@ | 81 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-x86-64.Plo@am__quote@ |
81 | diff --git a/bfd/config.bfd b/bfd/config.bfd | 82 | diff --git a/bfd/config.bfd b/bfd/config.bfd |
82 | index 6391f35..cde27b4 100644 | 83 | index aef1448..8072c8a 100644 |
83 | --- a/bfd/config.bfd | 84 | --- a/bfd/config.bfd |
84 | +++ b/bfd/config.bfd | 85 | +++ b/bfd/config.bfd |
85 | @@ -844,11 +844,15 @@ case "${targ}" in | 86 | @@ -850,11 +850,15 @@ case "${targ}" in |
86 | microblazeel*-*) | 87 | microblazeel*-*) |
87 | targ_defvec=microblaze_elf32_le_vec | 88 | targ_defvec=microblaze_elf32_le_vec |
88 | targ_selvecs=microblaze_elf32_vec | 89 | targ_selvecs=microblaze_elf32_vec |
@@ -99,11 +100,11 @@ index 6391f35..cde27b4 100644 | |||
99 | 100 | ||
100 | #ifdef BFD64 | 101 | #ifdef BFD64 |
101 | diff --git a/bfd/configure b/bfd/configure | 102 | diff --git a/bfd/configure b/bfd/configure |
102 | index 3c32a83..5934afd 100755 | 103 | index e5bde48..5bf94d5 100755 |
103 | --- a/bfd/configure | 104 | --- a/bfd/configure |
104 | +++ b/bfd/configure | 105 | +++ b/bfd/configure |
105 | @@ -14844,6 +14844,8 @@ do | 106 | @@ -15502,6 +15502,8 @@ do |
106 | rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; | 107 | rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; |
107 | s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; | 108 | s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
108 | s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | 109 | s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; |
109 | + microblaze_elf64_vec) tb="$tb elf64-microblaze.lo elf64.lo $elf"; target_size=64 ;; | 110 | + microblaze_elf64_vec) tb="$tb elf64-microblaze.lo elf64.lo $elf"; target_size=64 ;; |
@@ -112,11 +113,11 @@ index 3c32a83..5934afd 100755 | |||
112 | score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;; | 113 | score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;; |
113 | sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; | 114 | sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; |
114 | diff --git a/bfd/configure.ac b/bfd/configure.ac | 115 | diff --git a/bfd/configure.ac b/bfd/configure.ac |
115 | index c6193cd..901977d 100644 | 116 | index 7cdf9c8..998a651 100644 |
116 | --- a/bfd/configure.ac | 117 | --- a/bfd/configure.ac |
117 | +++ b/bfd/configure.ac | 118 | +++ b/bfd/configure.ac |
118 | @@ -612,6 +612,8 @@ do | 119 | @@ -615,6 +615,8 @@ do |
119 | rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; | 120 | rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; |
120 | s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; | 121 | s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
121 | s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | 122 | s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; |
122 | + microblaze_elf64_vec) tb="$tb elf64-microblaze.lo elf64.lo $elf"; target_size=64 ;; | 123 | + microblaze_elf64_vec) tb="$tb elf64-microblaze.lo elf64.lo $elf"; target_size=64 ;; |
@@ -125,7 +126,7 @@ index c6193cd..901977d 100644 | |||
125 | score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;; | 126 | score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;; |
126 | sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; | 127 | sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; |
127 | diff --git a/bfd/cpu-microblaze.c b/bfd/cpu-microblaze.c | 128 | diff --git a/bfd/cpu-microblaze.c b/bfd/cpu-microblaze.c |
128 | index 2ccf724..dd2d6ab 100644 | 129 | index 9bc2eb3..c91ba46 100644 |
129 | --- a/bfd/cpu-microblaze.c | 130 | --- a/bfd/cpu-microblaze.c |
130 | +++ b/bfd/cpu-microblaze.c | 131 | +++ b/bfd/cpu-microblaze.c |
131 | @@ -23,7 +23,24 @@ | 132 | @@ -23,7 +23,24 @@ |
@@ -3783,10 +3784,10 @@ index 0000000..0f43ae6 | |||
3783 | + | 3784 | + |
3784 | +#include "elf64-target.h" | 3785 | +#include "elf64-target.h" |
3785 | diff --git a/bfd/targets.c b/bfd/targets.c | 3786 | diff --git a/bfd/targets.c b/bfd/targets.c |
3786 | index 531703d..8ddbd39 100644 | 3787 | index 158168c..ef567a3 100644 |
3787 | --- a/bfd/targets.c | 3788 | --- a/bfd/targets.c |
3788 | +++ b/bfd/targets.c | 3789 | +++ b/bfd/targets.c |
3789 | @@ -704,6 +704,8 @@ extern const bfd_target mep_elf32_le_vec; | 3790 | @@ -706,6 +706,8 @@ extern const bfd_target mep_elf32_le_vec; |
3790 | extern const bfd_target metag_elf32_vec; | 3791 | extern const bfd_target metag_elf32_vec; |
3791 | extern const bfd_target microblaze_elf32_vec; | 3792 | extern const bfd_target microblaze_elf32_vec; |
3792 | extern const bfd_target microblaze_elf32_le_vec; | 3793 | extern const bfd_target microblaze_elf32_le_vec; |
@@ -3795,7 +3796,7 @@ index 531703d..8ddbd39 100644 | |||
3795 | extern const bfd_target mips_ecoff_be_vec; | 3796 | extern const bfd_target mips_ecoff_be_vec; |
3796 | extern const bfd_target mips_ecoff_le_vec; | 3797 | extern const bfd_target mips_ecoff_le_vec; |
3797 | extern const bfd_target mips_ecoff_bele_vec; | 3798 | extern const bfd_target mips_ecoff_bele_vec; |
3798 | @@ -1067,6 +1069,10 @@ static const bfd_target * const _bfd_target_vector[] = | 3799 | @@ -1073,6 +1075,10 @@ static const bfd_target * const _bfd_target_vector[] = |
3799 | 3800 | ||
3800 | &metag_elf32_vec, | 3801 | &metag_elf32_vec, |
3801 | 3802 | ||
@@ -3807,7 +3808,7 @@ index 531703d..8ddbd39 100644 | |||
3807 | 3808 | ||
3808 | &mips_ecoff_be_vec, | 3809 | &mips_ecoff_be_vec, |
3809 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 3810 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
3810 | index f1d97b9..eb7998f 100644 | 3811 | index 16b10d0..c794347 100644 |
3811 | --- a/gas/config/tc-microblaze.c | 3812 | --- a/gas/config/tc-microblaze.c |
3812 | +++ b/gas/config/tc-microblaze.c | 3813 | +++ b/gas/config/tc-microblaze.c |
3813 | @@ -35,10 +35,13 @@ | 3814 | @@ -35,10 +35,13 @@ |
@@ -4202,7 +4203,7 @@ index f1d97b9..eb7998f 100644 | |||
4202 | 4203 | ||
4203 | 4204 | ||
4204 | diff --git a/gas/config/tc-microblaze.h b/gas/config/tc-microblaze.h | 4205 | diff --git a/gas/config/tc-microblaze.h b/gas/config/tc-microblaze.h |
4205 | index 1263f57..7a991ae 100644 | 4206 | index ca9dbb8..9d38d2c 100644 |
4206 | --- a/gas/config/tc-microblaze.h | 4207 | --- a/gas/config/tc-microblaze.h |
4207 | +++ b/gas/config/tc-microblaze.h | 4208 | +++ b/gas/config/tc-microblaze.h |
4208 | @@ -78,7 +78,9 @@ extern const struct relax_type md_relax_table[]; | 4209 | @@ -78,7 +78,9 @@ extern const struct relax_type md_relax_table[]; |
@@ -4217,7 +4218,7 @@ index 1263f57..7a991ae 100644 | |||
4217 | #define ELF_TC_SPECIAL_SECTIONS \ | 4218 | #define ELF_TC_SPECIAL_SECTIONS \ |
4218 | { ".sdata", SHT_PROGBITS, SHF_ALLOC + SHF_WRITE }, \ | 4219 | { ".sdata", SHT_PROGBITS, SHF_ALLOC + SHF_WRITE }, \ |
4219 | diff --git a/include/elf/common.h b/include/elf/common.h | 4220 | diff --git a/include/elf/common.h b/include/elf/common.h |
4220 | index 773f378..cd2114e 100644 | 4221 | index 996acf9..2f1e5be 100644 |
4221 | --- a/include/elf/common.h | 4222 | --- a/include/elf/common.h |
4222 | +++ b/include/elf/common.h | 4223 | +++ b/include/elf/common.h |
4223 | @@ -339,6 +339,7 @@ | 4224 | @@ -339,6 +339,7 @@ |
@@ -4226,13 +4227,13 @@ index 773f378..cd2114e 100644 | |||
4226 | #define EM_BPF 247 /* Linux BPF – in-kernel virtual machine. */ | 4227 | #define EM_BPF 247 /* Linux BPF – in-kernel virtual machine. */ |
4227 | +#define EM_MB_64 248 /* Xilinx MicroBlaze 32-bit RISC soft processor core */ | 4228 | +#define EM_MB_64 248 /* Xilinx MicroBlaze 32-bit RISC soft processor core */ |
4228 | #define EM_NFP 250 /* Netronome Flow Processor. */ | 4229 | #define EM_NFP 250 /* Netronome Flow Processor. */ |
4230 | #define EM_CSKY 252 /* C-SKY processor family. */ | ||
4229 | 4231 | ||
4230 | /* If it is necessary to assign new unofficial EM_* values, please pick large | ||
4231 | diff --git a/ld/Makefile.am b/ld/Makefile.am | 4232 | diff --git a/ld/Makefile.am b/ld/Makefile.am |
4232 | index d86ad09..f531471 100644 | 4233 | index d7faf19..f7b3b97 100644 |
4233 | --- a/ld/Makefile.am | 4234 | --- a/ld/Makefile.am |
4234 | +++ b/ld/Makefile.am | 4235 | +++ b/ld/Makefile.am |
4235 | @@ -420,6 +420,8 @@ ALL_64_EMULATION_SOURCES = \ | 4236 | @@ -422,6 +422,8 @@ ALL_64_EMULATION_SOURCES = \ |
4236 | eelf32ltsmipn32.c \ | 4237 | eelf32ltsmipn32.c \ |
4237 | eelf32ltsmipn32_fbsd.c \ | 4238 | eelf32ltsmipn32_fbsd.c \ |
4238 | eelf32mipswindiss.c \ | 4239 | eelf32mipswindiss.c \ |
@@ -4241,7 +4242,7 @@ index d86ad09..f531471 100644 | |||
4241 | eelf64_aix.c \ | 4242 | eelf64_aix.c \ |
4242 | eelf64_ia64.c \ | 4243 | eelf64_ia64.c \ |
4243 | eelf64_ia64_fbsd.c \ | 4244 | eelf64_ia64_fbsd.c \ |
4244 | @@ -1688,6 +1690,12 @@ eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \ | 4245 | @@ -1702,6 +1704,12 @@ eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \ |
4245 | $(srcdir)/emulparams/elf_nacl.sh \ | 4246 | $(srcdir)/emulparams/elf_nacl.sh \ |
4246 | $(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | 4247 | $(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
4247 | 4248 | ||
@@ -4255,10 +4256,10 @@ index d86ad09..f531471 100644 | |||
4255 | $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | 4256 | $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
4256 | 4257 | ||
4257 | diff --git a/ld/Makefile.in b/ld/Makefile.in | 4258 | diff --git a/ld/Makefile.in b/ld/Makefile.in |
4258 | index 4792b2b..1f75a81 100644 | 4259 | index 8b14f52..ffc9a3e 100644 |
4259 | --- a/ld/Makefile.in | 4260 | --- a/ld/Makefile.in |
4260 | +++ b/ld/Makefile.in | 4261 | +++ b/ld/Makefile.in |
4261 | @@ -905,6 +905,8 @@ ALL_64_EMULATION_SOURCES = \ | 4262 | @@ -907,6 +907,8 @@ ALL_64_EMULATION_SOURCES = \ |
4262 | eelf32ltsmipn32.c \ | 4263 | eelf32ltsmipn32.c \ |
4263 | eelf32ltsmipn32_fbsd.c \ | 4264 | eelf32ltsmipn32_fbsd.c \ |
4264 | eelf32mipswindiss.c \ | 4265 | eelf32mipswindiss.c \ |
@@ -4267,7 +4268,7 @@ index 4792b2b..1f75a81 100644 | |||
4267 | eelf64_aix.c \ | 4268 | eelf64_aix.c \ |
4268 | eelf64_ia64.c \ | 4269 | eelf64_ia64.c \ |
4269 | eelf64_ia64_fbsd.c \ | 4270 | eelf64_ia64_fbsd.c \ |
4270 | @@ -1350,6 +1352,8 @@ distclean-compile: | 4271 | @@ -1355,6 +1357,8 @@ distclean-compile: |
4271 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32xc16xs.Po@am__quote@ | 4272 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32xc16xs.Po@am__quote@ |
4272 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32xstormy16.Po@am__quote@ | 4273 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32xstormy16.Po@am__quote@ |
4273 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32xtensa.Po@am__quote@ | 4274 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32xtensa.Po@am__quote@ |
@@ -4276,7 +4277,7 @@ index 4792b2b..1f75a81 100644 | |||
4276 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64_aix.Po@am__quote@ | 4277 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64_aix.Po@am__quote@ |
4277 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64_ia64.Po@am__quote@ | 4278 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64_ia64.Po@am__quote@ |
4278 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64_ia64_fbsd.Po@am__quote@ | 4279 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64_ia64_fbsd.Po@am__quote@ |
4279 | @@ -3289,6 +3293,12 @@ eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \ | 4280 | @@ -3306,6 +3310,12 @@ eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \ |
4280 | $(srcdir)/emulparams/elf_nacl.sh \ | 4281 | $(srcdir)/emulparams/elf_nacl.sh \ |
4281 | $(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | 4282 | $(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
4282 | 4283 | ||
@@ -4290,10 +4291,10 @@ index 4792b2b..1f75a81 100644 | |||
4290 | $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | 4291 | $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
4291 | 4292 | ||
4292 | diff --git a/ld/configure.tgt b/ld/configure.tgt | 4293 | diff --git a/ld/configure.tgt b/ld/configure.tgt |
4293 | index fad8b2e..25615ea 100644 | 4294 | index 1e37d74..42f106d 100644 |
4294 | --- a/ld/configure.tgt | 4295 | --- a/ld/configure.tgt |
4295 | +++ b/ld/configure.tgt | 4296 | +++ b/ld/configure.tgt |
4296 | @@ -419,6 +419,9 @@ microblaze*-linux*) targ_emul="elf32mb_linux" | 4297 | @@ -424,6 +424,9 @@ microblaze*-linux*) targ_emul="elf32mb_linux" |
4297 | microblazeel*) targ_emul=elf32microblazeel | 4298 | microblazeel*) targ_emul=elf32microblazeel |
4298 | targ_extra_emuls=elf32microblaze | 4299 | targ_extra_emuls=elf32microblaze |
4299 | ;; | 4300 | ;; |
@@ -4362,7 +4363,7 @@ index 0000000..9c7b0eb | |||
4362 | +TEMPLATE_NAME=elf32 | 4363 | +TEMPLATE_NAME=elf32 |
4363 | +#GENERATE_SHLIB_SCRIPT=yes | 4364 | +#GENERATE_SHLIB_SCRIPT=yes |
4364 | diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c | 4365 | diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c |
4365 | index 5101ceb..09757d1 100644 | 4366 | index f8aaf27..20ea6a8 100644 |
4366 | --- a/opcodes/microblaze-dis.c | 4367 | --- a/opcodes/microblaze-dis.c |
4367 | +++ b/opcodes/microblaze-dis.c | 4368 | +++ b/opcodes/microblaze-dis.c |
4368 | @@ -33,6 +33,7 @@ | 4369 | @@ -33,6 +33,7 @@ |
@@ -4456,7 +4457,7 @@ index 5101ceb..09757d1 100644 | |||
4456 | case INST_TYPE_RD: | 4457 | case INST_TYPE_RD: |
4457 | print_func (stream, "\t%s", get_field_rd (inst)); | 4458 | print_func (stream, "\t%s", get_field_rd (inst)); |
4458 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h | 4459 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h |
4459 | index 4bc400a..c88092d 100644 | 4460 | index ce8ac35..985834b 100644 |
4460 | --- a/opcodes/microblaze-opc.h | 4461 | --- a/opcodes/microblaze-opc.h |
4461 | +++ b/opcodes/microblaze-opc.h | 4462 | +++ b/opcodes/microblaze-opc.h |
4462 | @@ -40,7 +40,7 @@ | 4463 | @@ -40,7 +40,7 @@ |
@@ -4684,7 +4685,7 @@ index 4bc400a..c88092d 100644 | |||
4684 | #endif /* MICROBLAZE_OPC */ | 4685 | #endif /* MICROBLAZE_OPC */ |
4685 | 4686 | ||
4686 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h | 4687 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h |
4687 | index b69e6a4..265cea8 100644 | 4688 | index 2866269..076dbcd 100644 |
4688 | --- a/opcodes/microblaze-opcm.h | 4689 | --- a/opcodes/microblaze-opcm.h |
4689 | +++ b/opcodes/microblaze-opcm.h | 4690 | +++ b/opcodes/microblaze-opcm.h |
4690 | @@ -25,6 +25,7 @@ | 4691 | @@ -25,6 +25,7 @@ |
@@ -4735,6 +4736,3 @@ index b69e6a4..265cea8 100644 | |||
4735 | 4736 | ||
4736 | /* FSL imm mask for get, put instructions. */ | 4737 | /* FSL imm mask for get, put instructions. */ |
4737 | #define RFSL_MASK 0x000000F | 4738 | #define RFSL_MASK 0x000000F |
4738 | -- | ||
4739 | 2.7.4 | ||
4740 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0016-MB-X-initial-commit.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0016-MB-X-initial-commit.patch index 6239e214..406d7bf2 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0016-MB-X-initial-commit.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0016-MB-X-initial-commit.patch | |||
@@ -1,10 +1,11 @@ | |||
1 | From 05240f6bdb5e3789efdc03b90c073b78785268e4 Mon Sep 17 00:00:00 2001 | 1 | From 549bf1fafb7dfa2718e172a94ff68acb14320ed8 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Sun, 30 Sep 2018 16:31:26 +0530 | 3 | Date: Sun, 30 Sep 2018 16:31:26 +0530 |
4 | Subject: [PATCH 16/31] MB-X initial commit code cleanup is needed. | 4 | Subject: [PATCH] MB-X initial commit code cleanup is needed. |
5 | 5 | ||
6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | bfd/bfd-in2.h | 10 +++ | 10 | bfd/bfd-in2.h | 10 +++ |
10 | bfd/elf32-microblaze.c | 65 +++++++++++++++++-- | 11 | bfd/elf32-microblaze.c | 65 +++++++++++++++++-- |
@@ -18,10 +19,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | |||
18 | 9 files changed, 277 insertions(+), 35 deletions(-) | 19 | 9 files changed, 277 insertions(+), 35 deletions(-) |
19 | 20 | ||
20 | diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h | 21 | diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h |
21 | index 5807f70..44cddc2 100644 | 22 | index fe6933a..90645d1 100644 |
22 | --- a/bfd/bfd-in2.h | 23 | --- a/bfd/bfd-in2.h |
23 | +++ b/bfd/bfd-in2.h | 24 | +++ b/bfd/bfd-in2.h |
24 | @@ -5801,11 +5801,21 @@ done here - only used for relaxing */ | 25 | @@ -5878,11 +5878,21 @@ done here - only used for relaxing */ |
25 | BFD_RELOC_MICROBLAZE_64_NONE, | 26 | BFD_RELOC_MICROBLAZE_64_NONE, |
26 | 27 | ||
27 | /* This is a 64 bit reloc that stores the 32 bit pc relative | 28 | /* This is a 64 bit reloc that stores the 32 bit pc relative |
@@ -44,7 +45,7 @@ index 5807f70..44cddc2 100644 | |||
44 | GOT offset */ | 45 | GOT offset */ |
45 | BFD_RELOC_MICROBLAZE_64_GOT, | 46 | BFD_RELOC_MICROBLAZE_64_GOT, |
46 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c | 47 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
47 | index 94fa3cf..b632dd1 100644 | 48 | index d001437..035e71f 100644 |
48 | --- a/bfd/elf32-microblaze.c | 49 | --- a/bfd/elf32-microblaze.c |
49 | +++ b/bfd/elf32-microblaze.c | 50 | +++ b/bfd/elf32-microblaze.c |
50 | @@ -116,6 +116,20 @@ static reloc_howto_type microblaze_elf_howto_raw[] = | 51 | @@ -116,6 +116,20 @@ static reloc_howto_type microblaze_elf_howto_raw[] = |
@@ -268,10 +269,10 @@ index 0f43ae6..56a45f2 100644 | |||
268 | case R_MICROBLAZE_32_NONE: | 269 | case R_MICROBLAZE_32_NONE: |
269 | { | 270 | { |
270 | diff --git a/bfd/libbfd.h b/bfd/libbfd.h | 271 | diff --git a/bfd/libbfd.h b/bfd/libbfd.h |
271 | index 261086c..d7892a6 100644 | 272 | index feb9fad..450653f 100644 |
272 | --- a/bfd/libbfd.h | 273 | --- a/bfd/libbfd.h |
273 | +++ b/bfd/libbfd.h | 274 | +++ b/bfd/libbfd.h |
274 | @@ -2864,7 +2864,9 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", | 275 | @@ -2903,7 +2903,9 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", |
275 | "BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM", | 276 | "BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM", |
276 | "BFD_RELOC_MICROBLAZE_32_NONE", | 277 | "BFD_RELOC_MICROBLAZE_32_NONE", |
277 | "BFD_RELOC_MICROBLAZE_64_NONE", | 278 | "BFD_RELOC_MICROBLAZE_64_NONE", |
@@ -282,10 +283,10 @@ index 261086c..d7892a6 100644 | |||
282 | "BFD_RELOC_MICROBLAZE_64_PLT", | 283 | "BFD_RELOC_MICROBLAZE_64_PLT", |
283 | "BFD_RELOC_MICROBLAZE_64_GOTOFF", | 284 | "BFD_RELOC_MICROBLAZE_64_GOTOFF", |
284 | diff --git a/bfd/reloc.c b/bfd/reloc.c | 285 | diff --git a/bfd/reloc.c b/bfd/reloc.c |
285 | index d89bc5d..60eac77 100644 | 286 | index 87753ae..ccf29f5 100644 |
286 | --- a/bfd/reloc.c | 287 | --- a/bfd/reloc.c |
287 | +++ b/bfd/reloc.c | 288 | +++ b/bfd/reloc.c |
288 | @@ -6873,6 +6873,12 @@ ENUMDOC | 289 | @@ -6804,6 +6804,12 @@ ENUMDOC |
289 | ENUM | 290 | ENUM |
290 | BFD_RELOC_MICROBLAZE_64_NONE | 291 | BFD_RELOC_MICROBLAZE_64_NONE |
291 | ENUMDOC | 292 | ENUMDOC |
@@ -298,7 +299,7 @@ index d89bc5d..60eac77 100644 | |||
298 | This is a 64 bit reloc that stores the 32 bit pc relative | 299 | This is a 64 bit reloc that stores the 32 bit pc relative |
299 | value in two words (with an imm instruction). No relocation is | 300 | value in two words (with an imm instruction). No relocation is |
300 | done here - only used for relaxing | 301 | done here - only used for relaxing |
301 | @@ -6880,6 +6886,12 @@ ENUM | 302 | @@ -6811,6 +6817,12 @@ ENUM |
302 | BFD_RELOC_MICROBLAZE_64_GOTPC | 303 | BFD_RELOC_MICROBLAZE_64_GOTPC |
303 | ENUMDOC | 304 | ENUMDOC |
304 | This is a 64 bit reloc that stores the 32 bit pc relative | 305 | This is a 64 bit reloc that stores the 32 bit pc relative |
@@ -312,7 +313,7 @@ index d89bc5d..60eac77 100644 | |||
312 | PC-relative GOT offset | 313 | PC-relative GOT offset |
313 | ENUM | 314 | ENUM |
314 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 315 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
315 | index eb7998f..680a794 100644 | 316 | index c794347..3f90b7c 100644 |
316 | --- a/gas/config/tc-microblaze.c | 317 | --- a/gas/config/tc-microblaze.c |
317 | +++ b/gas/config/tc-microblaze.c | 318 | +++ b/gas/config/tc-microblaze.c |
318 | @@ -94,6 +94,7 @@ const char FLT_CHARS[] = "rRsSfFdDxXpP"; | 319 | @@ -94,6 +94,7 @@ const char FLT_CHARS[] = "rRsSfFdDxXpP"; |
@@ -647,7 +648,7 @@ index eb7998f..680a794 100644 | |||
647 | default: | 648 | default: |
648 | as_bad (_("unsupported BFD relocation size %u"), size); | 649 | as_bad (_("unsupported BFD relocation size %u"), size); |
649 | diff --git a/include/elf/microblaze.h b/include/elf/microblaze.h | 650 | diff --git a/include/elf/microblaze.h b/include/elf/microblaze.h |
650 | index 7bdba67..454e2b4 100644 | 651 | index 6ee0966..16b2736 100644 |
651 | --- a/include/elf/microblaze.h | 652 | --- a/include/elf/microblaze.h |
652 | +++ b/include/elf/microblaze.h | 653 | +++ b/include/elf/microblaze.h |
653 | @@ -62,6 +62,8 @@ START_RELOC_NUMBERS (elf_microblaze_reloc_type) | 654 | @@ -62,6 +62,8 @@ START_RELOC_NUMBERS (elf_microblaze_reloc_type) |
@@ -660,7 +661,7 @@ index 7bdba67..454e2b4 100644 | |||
660 | END_RELOC_NUMBERS (R_MICROBLAZE_max) | 661 | END_RELOC_NUMBERS (R_MICROBLAZE_max) |
661 | 662 | ||
662 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h | 663 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h |
663 | index c88092d..8d43af0 100644 | 664 | index 985834b..9b6264b 100644 |
664 | --- a/opcodes/microblaze-opc.h | 665 | --- a/opcodes/microblaze-opc.h |
665 | +++ b/opcodes/microblaze-opc.h | 666 | +++ b/opcodes/microblaze-opc.h |
666 | @@ -538,8 +538,8 @@ struct op_code_struct | 667 | @@ -538,8 +538,8 @@ struct op_code_struct |
@@ -675,7 +676,7 @@ index c88092d..8d43af0 100644 | |||
675 | {"dadd", INST_TYPE_RD_R1_R2, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x58000400, OPCODE_MASK_H4, dadd, arithmetic_inst }, | 676 | {"dadd", INST_TYPE_RD_R1_R2, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x58000400, OPCODE_MASK_H4, dadd, arithmetic_inst }, |
676 | {"drsub", INST_TYPE_RD_R1_R2, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x58000480, OPCODE_MASK_H4, drsub, arithmetic_inst }, | 677 | {"drsub", INST_TYPE_RD_R1_R2, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x58000480, OPCODE_MASK_H4, drsub, arithmetic_inst }, |
677 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h | 678 | diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h |
678 | index 265cea8..abb5c9f 100644 | 679 | index 076dbcd..5f2e190 100644 |
679 | --- a/opcodes/microblaze-opcm.h | 680 | --- a/opcodes/microblaze-opcm.h |
680 | +++ b/opcodes/microblaze-opcm.h | 681 | +++ b/opcodes/microblaze-opcm.h |
681 | @@ -40,8 +40,8 @@ enum microblaze_instr | 682 | @@ -40,8 +40,8 @@ enum microblaze_instr |
@@ -689,6 +690,3 @@ index 265cea8..abb5c9f 100644 | |||
689 | fcmp_lt, fcmp_eq, fcmp_le, fcmp_gt, fcmp_ne, fcmp_ge, fcmp_un, flt, | 690 | fcmp_lt, fcmp_eq, fcmp_le, fcmp_gt, fcmp_ne, fcmp_ge, fcmp_un, flt, |
690 | fint, fsqrt, | 691 | fint, fsqrt, |
691 | tget, tcget, tnget, tncget, tput, tcput, tnput, tncput, | 692 | tget, tcget, tnget, tncget, tput, tcput, tnput, tncput, |
692 | -- | ||
693 | 2.7.4 | ||
694 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0017-Patch-Microblaze-negl-instruction-is-overriding-rsub.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0017-Patch-Microblaze-negl-instruction-is-overriding-rsub.patch index 9cc96fae..062ee364 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0017-Patch-Microblaze-negl-instruction-is-overriding-rsub.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0017-Patch-Microblaze-negl-instruction-is-overriding-rsub.patch | |||
@@ -1,17 +1,18 @@ | |||
1 | From 7df271f0025a39dc7b9f21e122d69a6f81a44af2 Mon Sep 17 00:00:00 2001 | 1 | From 3735a1bb6174f15bde23dd2767675b49c9e8712f Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Tue, 11 Sep 2018 13:48:33 +0530 | 3 | Date: Tue, 11 Sep 2018 13:48:33 +0530 |
4 | Subject: [PATCH 17/31] [Patch,Microblaze] : negl instruction is overriding | 4 | Subject: [PATCH] negl instruction is overriding rsubl,fixed it by changing the |
5 | rsubl,fixed it by changing the instruction order... | 5 | instruction order... |
6 | 6 | ||
7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
9 | |||
9 | --- | 10 | --- |
10 | opcodes/microblaze-opc.h | 4 ++-- | 11 | opcodes/microblaze-opc.h | 4 ++-- |
11 | 1 file changed, 2 insertions(+), 2 deletions(-) | 12 | 1 file changed, 2 insertions(+), 2 deletions(-) |
12 | 13 | ||
13 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h | 14 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h |
14 | index 8d43af0..2096269 100644 | 15 | index 9b6264b..824afc0 100644 |
15 | --- a/opcodes/microblaze-opc.h | 16 | --- a/opcodes/microblaze-opc.h |
16 | +++ b/opcodes/microblaze-opc.h | 17 | +++ b/opcodes/microblaze-opc.h |
17 | @@ -275,9 +275,7 @@ struct op_code_struct | 18 | @@ -275,9 +275,7 @@ struct op_code_struct |
@@ -33,6 +34,3 @@ index 8d43af0..2096269 100644 | |||
33 | 34 | ||
34 | {"", 0, 0, 0, 0, 0, 0, 0, 0}, | 35 | {"", 0, 0, 0, 0, 0, 0, 0, 0}, |
35 | }; | 36 | }; |
36 | -- | ||
37 | 2.7.4 | ||
38 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0018-Added-relocations-for-MB-X.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0018-Added-relocations-for-MB-X.patch index d401cdd3..b98db228 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0018-Added-relocations-for-MB-X.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0018-Added-relocations-for-MB-X.patch | |||
@@ -1,10 +1,11 @@ | |||
1 | From a1961dbfa4324335116f84494396ce9801688f18 Mon Sep 17 00:00:00 2001 | 1 | From 6b6c4a67212ced3fe1593fb173cfc4bce8d7f922 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Tue, 11 Sep 2018 17:30:17 +0530 | 3 | Date: Tue, 11 Sep 2018 17:30:17 +0530 |
4 | Subject: [PATCH 18/31] Added relocations for MB-X | 4 | Subject: [PATCH] Added relocations for MB-X |
5 | 5 | ||
6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | bfd/bfd-in2.h | 11 ++++-- | 10 | bfd/bfd-in2.h | 11 ++++-- |
10 | bfd/libbfd.h | 4 +-- | 11 | bfd/libbfd.h | 4 +-- |
@@ -13,10 +14,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | |||
13 | 4 files changed, 62 insertions(+), 69 deletions(-) | 14 | 4 files changed, 62 insertions(+), 69 deletions(-) |
14 | 15 | ||
15 | diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h | 16 | diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h |
16 | index 44cddc2..44e719b 100644 | 17 | index 90645d1..f74aac1 100644 |
17 | --- a/bfd/bfd-in2.h | 18 | --- a/bfd/bfd-in2.h |
18 | +++ b/bfd/bfd-in2.h | 19 | +++ b/bfd/bfd-in2.h |
19 | @@ -5796,16 +5796,21 @@ done here - only used for relaxing */ | 20 | @@ -5873,16 +5873,21 @@ done here - only used for relaxing */ |
20 | BFD_RELOC_MICROBLAZE_32_NONE, | 21 | BFD_RELOC_MICROBLAZE_32_NONE, |
21 | 22 | ||
22 | /* This is a 64 bit reloc that stores the 32 bit pc relative | 23 | /* This is a 64 bit reloc that stores the 32 bit pc relative |
@@ -42,10 +43,10 @@ index 44cddc2..44e719b 100644 | |||
42 | PC-relative GOT offset */ | 43 | PC-relative GOT offset */ |
43 | BFD_RELOC_MICROBLAZE_64_GOTPC, | 44 | BFD_RELOC_MICROBLAZE_64_GOTPC, |
44 | diff --git a/bfd/libbfd.h b/bfd/libbfd.h | 45 | diff --git a/bfd/libbfd.h b/bfd/libbfd.h |
45 | index d7892a6..bb8fb42 100644 | 46 | index 450653f..d87a183 100644 |
46 | --- a/bfd/libbfd.h | 47 | --- a/bfd/libbfd.h |
47 | +++ b/bfd/libbfd.h | 48 | +++ b/bfd/libbfd.h |
48 | @@ -2864,14 +2864,14 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", | 49 | @@ -2903,14 +2903,14 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", |
49 | "BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM", | 50 | "BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM", |
50 | "BFD_RELOC_MICROBLAZE_32_NONE", | 51 | "BFD_RELOC_MICROBLAZE_32_NONE", |
51 | "BFD_RELOC_MICROBLAZE_64_NONE", | 52 | "BFD_RELOC_MICROBLAZE_64_NONE", |
@@ -63,10 +64,10 @@ index d7892a6..bb8fb42 100644 | |||
63 | "BFD_RELOC_MICROBLAZE_64_TLSGD", | 64 | "BFD_RELOC_MICROBLAZE_64_TLSGD", |
64 | "BFD_RELOC_MICROBLAZE_64_TLSLD", | 65 | "BFD_RELOC_MICROBLAZE_64_TLSLD", |
65 | diff --git a/bfd/reloc.c b/bfd/reloc.c | 66 | diff --git a/bfd/reloc.c b/bfd/reloc.c |
66 | index 60eac77..2d73154 100644 | 67 | index ccf29f5..861f2d4 100644 |
67 | --- a/bfd/reloc.c | 68 | --- a/bfd/reloc.c |
68 | +++ b/bfd/reloc.c | 69 | +++ b/bfd/reloc.c |
69 | @@ -6873,12 +6873,6 @@ ENUMDOC | 70 | @@ -6804,12 +6804,6 @@ ENUMDOC |
70 | ENUM | 71 | ENUM |
71 | BFD_RELOC_MICROBLAZE_64_NONE | 72 | BFD_RELOC_MICROBLAZE_64_NONE |
72 | ENUMDOC | 73 | ENUMDOC |
@@ -79,7 +80,7 @@ index 60eac77..2d73154 100644 | |||
79 | This is a 64 bit reloc that stores the 32 bit pc relative | 80 | This is a 64 bit reloc that stores the 32 bit pc relative |
80 | value in two words (with an imm instruction). No relocation is | 81 | value in two words (with an imm instruction). No relocation is |
81 | done here - only used for relaxing | 82 | done here - only used for relaxing |
82 | @@ -6886,12 +6880,6 @@ ENUM | 83 | @@ -6817,12 +6811,6 @@ ENUM |
83 | BFD_RELOC_MICROBLAZE_64_GOTPC | 84 | BFD_RELOC_MICROBLAZE_64_GOTPC |
84 | ENUMDOC | 85 | ENUMDOC |
85 | This is a 64 bit reloc that stores the 32 bit pc relative | 86 | This is a 64 bit reloc that stores the 32 bit pc relative |
@@ -92,7 +93,7 @@ index 60eac77..2d73154 100644 | |||
92 | value in two words (with an imm instruction). The relocation is | 93 | value in two words (with an imm instruction). The relocation is |
93 | PC-relative GOT offset | 94 | PC-relative GOT offset |
94 | ENUM | 95 | ENUM |
95 | @@ -6975,6 +6963,20 @@ ENUMDOC | 96 | @@ -6906,6 +6894,20 @@ ENUMDOC |
96 | value in two words (with an imm instruction). The relocation is | 97 | value in two words (with an imm instruction). The relocation is |
97 | relative offset from start of TEXT. | 98 | relative offset from start of TEXT. |
98 | 99 | ||
@@ -114,7 +115,7 @@ index 60eac77..2d73154 100644 | |||
114 | BFD_RELOC_AARCH64_RELOC_START | 115 | BFD_RELOC_AARCH64_RELOC_START |
115 | ENUMDOC | 116 | ENUMDOC |
116 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 117 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
117 | index 680a794..663e1a6 100644 | 118 | index 3f90b7c..587a4d5 100644 |
118 | --- a/gas/config/tc-microblaze.c | 119 | --- a/gas/config/tc-microblaze.c |
119 | +++ b/gas/config/tc-microblaze.c | 120 | +++ b/gas/config/tc-microblaze.c |
120 | @@ -95,6 +95,7 @@ const char FLT_CHARS[] = "rRsSfFdDxXpP"; | 121 | @@ -95,6 +95,7 @@ const char FLT_CHARS[] = "rRsSfFdDxXpP"; |
@@ -345,6 +346,3 @@ index 680a794..663e1a6 100644 | |||
345 | case BFD_RELOC_MICROBLAZE_64_GOT: | 346 | case BFD_RELOC_MICROBLAZE_64_GOT: |
346 | case BFD_RELOC_MICROBLAZE_64_PLT: | 347 | case BFD_RELOC_MICROBLAZE_64_PLT: |
347 | case BFD_RELOC_MICROBLAZE_64_GOTOFF: | 348 | case BFD_RELOC_MICROBLAZE_64_GOTOFF: |
348 | -- | ||
349 | 2.7.4 | ||
350 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0019-Fixed-MB-x-relocation-issues.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0019-Fixed-MB-x-relocation-issues.patch index 814672d2..55319ee2 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0019-Fixed-MB-x-relocation-issues.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0019-Fixed-MB-x-relocation-issues.patch | |||
@@ -1,11 +1,12 @@ | |||
1 | From b63b8ae83cc538808e06d84143df6b7150fb4037 Mon Sep 17 00:00:00 2001 | 1 | From 616031595c692c2181c3b1ce8c08678b68b2fe4e Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Fri, 28 Sep 2018 12:04:55 +0530 | 3 | Date: Fri, 28 Sep 2018 12:04:55 +0530 |
4 | Subject: [PATCH 19/31] -Fixed MB-x relocation issues -Added imml for required | 4 | Subject: [PATCH] -Fixed MB-x relocation issues -Added imml for required MB-x |
5 | MB-x instructions | 5 | instructions |
6 | 6 | ||
7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
9 | |||
9 | --- | 10 | --- |
10 | bfd/elf64-microblaze.c | 68 ++++++++++++++++---- | 11 | bfd/elf64-microblaze.c | 68 ++++++++++++++++---- |
11 | gas/config/tc-microblaze.c | 152 ++++++++++++++++++++++++++++++++------------- | 12 | gas/config/tc-microblaze.c | 152 ++++++++++++++++++++++++++++++++------------- |
@@ -115,7 +116,7 @@ index 56a45f2..54a2461 100644 | |||
115 | instr_lo &= ~0x0000ffff; | 116 | instr_lo &= ~0x0000ffff; |
116 | instr_lo |= (val & 0x0000ffff); | 117 | instr_lo |= (val & 0x0000ffff); |
117 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 118 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
118 | index 663e1a6..8d2980a 100644 | 119 | index 587a4d5..fa437b6 100644 |
119 | --- a/gas/config/tc-microblaze.c | 120 | --- a/gas/config/tc-microblaze.c |
120 | +++ b/gas/config/tc-microblaze.c | 121 | +++ b/gas/config/tc-microblaze.c |
121 | @@ -392,7 +392,7 @@ microblaze_s_weakext (int ignore ATTRIBUTE_UNUSED) | 122 | @@ -392,7 +392,7 @@ microblaze_s_weakext (int ignore ATTRIBUTE_UNUSED) |
@@ -358,7 +359,7 @@ index 663e1a6..8d2980a 100644 | |||
358 | default: | 359 | default: |
359 | return 0; | 360 | return 0; |
360 | diff --git a/gas/tc.h b/gas/tc.h | 361 | diff --git a/gas/tc.h b/gas/tc.h |
361 | index beddb48..96c7559 100644 | 362 | index 0a50a69..529a73b 100644 |
362 | --- a/gas/tc.h | 363 | --- a/gas/tc.h |
363 | +++ b/gas/tc.h | 364 | +++ b/gas/tc.h |
364 | @@ -22,7 +22,7 @@ | 365 | @@ -22,7 +22,7 @@ |
@@ -370,6 +371,3 @@ index beddb48..96c7559 100644 | |||
370 | 371 | ||
371 | const char * md_atof (int, char *, int *); | 372 | const char * md_atof (int, char *, int *); |
372 | int md_parse_option (int, const char *); | 373 | int md_parse_option (int, const char *); |
373 | -- | ||
374 | 2.7.4 | ||
375 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0020-Fixing-the-branch-related-issues.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0020-Fixing-the-branch-related-issues.patch index 0fbb6362..43a06d89 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0020-Fixing-the-branch-related-issues.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0020-Fixing-the-branch-related-issues.patch | |||
@@ -1,10 +1,11 @@ | |||
1 | From fc9704bdb0c74f34a77346c0283f2e05440d68ec Mon Sep 17 00:00:00 2001 | 1 | From 05cac23e0cdb94705c87cf9d94ffe00e7cba53f6 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Sun, 30 Sep 2018 17:06:58 +0530 | 3 | Date: Sun, 30 Sep 2018 17:06:58 +0530 |
4 | Subject: [PATCH 20/31] Fixing the branch related issues | 4 | Subject: [PATCH] Fixing the branch related issues |
5 | 5 | ||
6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | bfd/elf64-microblaze.c | 2 +- | 10 | bfd/elf64-microblaze.c | 2 +- |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
@@ -22,6 +23,3 @@ index 54a2461..e9b3cf3 100644 | |||
22 | } | 23 | } |
23 | 24 | ||
24 | switch (r_type) | 25 | switch (r_type) |
25 | -- | ||
26 | 2.7.4 | ||
27 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0021-Fixed-address-computation-issues-with-64bit-address.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0021-Fixed-address-computation-issues-with-64bit-address.patch index 612f706d..b3aebb74 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0021-Fixed-address-computation-issues-with-64bit-address.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0021-Fixed-address-computation-issues-with-64bit-address.patch | |||
@@ -1,11 +1,12 @@ | |||
1 | From 380ad65a2bdb42749c22783f53f4b2263721a2ca Mon Sep 17 00:00:00 2001 | 1 | From 8b98898add56667d28b7d6242c86603bb2f5946e Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Tue, 9 Oct 2018 10:14:22 +0530 | 3 | Date: Tue, 9 Oct 2018 10:14:22 +0530 |
4 | Subject: [PATCH 21/31] - Fixed address computation issues with 64bit address - | 4 | Subject: [PATCH] - Fixed address computation issues with 64bit address - Fixed |
5 | Fixed imml dissassamble issue | 5 | imml dissassamble issue |
6 | 6 | ||
7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
9 | |||
9 | --- | 10 | --- |
10 | bfd/bfd-in2.h | 5 ++++ | 11 | bfd/bfd-in2.h | 5 ++++ |
11 | bfd/elf64-microblaze.c | 14 ++++----- | 12 | bfd/elf64-microblaze.c | 14 ++++----- |
@@ -14,10 +15,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | |||
14 | 4 files changed, 79 insertions(+), 16 deletions(-) | 15 | 4 files changed, 79 insertions(+), 16 deletions(-) |
15 | 16 | ||
16 | diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h | 17 | diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h |
17 | index 44e719b..a35e51d 100644 | 18 | index f74aac1..434b41c 100644 |
18 | --- a/bfd/bfd-in2.h | 19 | --- a/bfd/bfd-in2.h |
19 | +++ b/bfd/bfd-in2.h | 20 | +++ b/bfd/bfd-in2.h |
20 | @@ -5805,6 +5805,11 @@ done here - only used for relaxing */ | 21 | @@ -5882,6 +5882,11 @@ done here - only used for relaxing */ |
21 | * +done here - only used for relaxing */ | 22 | * +done here - only used for relaxing */ |
22 | BFD_RELOC_MICROBLAZE_64, | 23 | BFD_RELOC_MICROBLAZE_64, |
23 | 24 | ||
@@ -83,7 +84,7 @@ index e9b3cf3..40f10aa 100644 | |||
83 | fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, irel->r_addend); | 84 | fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, irel->r_addend); |
84 | } | 85 | } |
85 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 86 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
86 | index 8d2980a..7ff93a1 100644 | 87 | index fa437b6..46df32e 100644 |
87 | --- a/gas/config/tc-microblaze.c | 88 | --- a/gas/config/tc-microblaze.c |
88 | +++ b/gas/config/tc-microblaze.c | 89 | +++ b/gas/config/tc-microblaze.c |
89 | @@ -402,7 +402,6 @@ pseudo_typeS md_pseudo_table[] = | 90 | @@ -402,7 +402,6 @@ pseudo_typeS md_pseudo_table[] = |
@@ -202,7 +203,7 @@ index 8d2980a..7ff93a1 100644 | |||
202 | default: | 203 | default: |
203 | as_bad (_("unsupported BFD relocation size %u"), size); | 204 | as_bad (_("unsupported BFD relocation size %u"), size); |
204 | diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c | 205 | diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c |
205 | index 09757d1..69e11e6 100644 | 206 | index 20ea6a8..f679a43 100644 |
206 | --- a/opcodes/microblaze-dis.c | 207 | --- a/opcodes/microblaze-dis.c |
207 | +++ b/opcodes/microblaze-dis.c | 208 | +++ b/opcodes/microblaze-dis.c |
208 | @@ -61,7 +61,7 @@ get_field_imml (long instr) | 209 | @@ -61,7 +61,7 @@ get_field_imml (long instr) |
@@ -214,6 +215,3 @@ index 09757d1..69e11e6 100644 | |||
214 | return (strdup (tmpstr)); | 215 | return (strdup (tmpstr)); |
215 | } | 216 | } |
216 | 217 | ||
217 | -- | ||
218 | 2.7.4 | ||
219 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0022-Adding-new-relocation-to-support-64bit-rodata.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0022-Adding-new-relocation-to-support-64bit-rodata.patch index 4e54b0d3..aec793d9 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0022-Adding-new-relocation-to-support-64bit-rodata.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0022-Adding-new-relocation-to-support-64bit-rodata.patch | |||
@@ -1,10 +1,11 @@ | |||
1 | From e2c399e62b6b0f1940e73024a8076c8787602b9c Mon Sep 17 00:00:00 2001 | 1 | From 3eb0c068ad5a698007341b32c82d9e7ac6cabc49 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Sat, 13 Oct 2018 21:17:01 +0530 | 3 | Date: Sat, 13 Oct 2018 21:17:01 +0530 |
4 | Subject: [PATCH 22/31] Adding new relocation to support 64bit rodata | 4 | Subject: [PATCH] Adding new relocation to support 64bit rodata |
5 | 5 | ||
6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | bfd/elf64-microblaze.c | 11 +++++++++-- | 10 | bfd/elf64-microblaze.c | 11 +++++++++-- |
10 | gas/config/tc-microblaze.c | 49 ++++++++++++++++++++++++++++++++++++++++++---- | 11 | gas/config/tc-microblaze.c | 49 ++++++++++++++++++++++++++++++++++++++++++---- |
@@ -68,7 +69,7 @@ index 40f10aa..4d9b906 100644 | |||
68 | if (h != NULL && !bfd_link_pic (info)) | 69 | if (h != NULL && !bfd_link_pic (info)) |
69 | { | 70 | { |
70 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 71 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
71 | index 7ff93a1..442f72c 100644 | 72 | index 46df32e..c6d2e4c 100644 |
72 | --- a/gas/config/tc-microblaze.c | 73 | --- a/gas/config/tc-microblaze.c |
73 | +++ b/gas/config/tc-microblaze.c | 74 | +++ b/gas/config/tc-microblaze.c |
74 | @@ -1119,6 +1119,13 @@ md_assemble (char * str) | 75 | @@ -1119,6 +1119,13 @@ md_assemble (char * str) |
@@ -163,6 +164,3 @@ index 7ff93a1..442f72c 100644 | |||
163 | break; | 164 | break; |
164 | default: | 165 | default: |
165 | as_bad (_("unsupported BFD relocation size %u"), size); | 166 | as_bad (_("unsupported BFD relocation size %u"), size); |
166 | -- | ||
167 | 2.7.4 | ||
168 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0023-fixing-the-.bss-relocation-issue.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0023-fixing-the-.bss-relocation-issue.patch index fc42ca58..cd54cae4 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0023-fixing-the-.bss-relocation-issue.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0023-fixing-the-.bss-relocation-issue.patch | |||
@@ -1,10 +1,11 @@ | |||
1 | From 2a2298c9f32e96a71d6295e7ef52b37d834e5224 Mon Sep 17 00:00:00 2001 | 1 | From 52f6c56353aad424dfdaf713e0192f8fc9c874f4 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Wed, 24 Oct 2018 12:34:37 +0530 | 3 | Date: Wed, 24 Oct 2018 12:34:37 +0530 |
4 | Subject: [PATCH 23/31] fixing the .bss relocation issue | 4 | Subject: [PATCH] fixing the .bss relocation issue |
5 | 5 | ||
6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | bfd/elf64-microblaze.c | 18 ++++++++++++------ | 10 | bfd/elf64-microblaze.c | 18 ++++++++++++------ |
10 | 1 file changed, 12 insertions(+), 6 deletions(-) | 11 | 1 file changed, 12 insertions(+), 6 deletions(-) |
@@ -73,6 +74,3 @@ index 4d9b906..184b7d5 100644 | |||
73 | immediate |= (instr_lo & 0x0000ffff); | 74 | immediate |= (instr_lo & 0x0000ffff); |
74 | target_address = immediate; | 75 | target_address = immediate; |
75 | offset = calc_fixup (target_address, 0, sec); | 76 | offset = calc_fixup (target_address, 0, sec); |
76 | -- | ||
77 | 2.7.4 | ||
78 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0024-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0024-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch index 5c327d2d..a4f8257d 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0024-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0024-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch | |||
@@ -1,18 +1,19 @@ | |||
1 | From 198f2ccd054613f39bbad49b3f0dbad23036b4fc Mon Sep 17 00:00:00 2001 | 1 | From ed3e6fad3e2a626fc987e9c7477f51d03d2b4512 Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Wed, 28 Nov 2018 14:00:29 +0530 | 3 | Date: Wed, 28 Nov 2018 14:00:29 +0530 |
4 | Subject: [PATCH 24/31] Fixed the bug in the R_MICROBLAZE_64_NONE relocation. | 4 | Subject: [PATCH] Fixed the bug in the R_MICROBLAZE_64_NONE relocation. It was |
5 | It was adjusting only lower 16bits. | 5 | adjusting only lower 16bits. |
6 | 6 | ||
7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
9 | |||
9 | --- | 10 | --- |
10 | bfd/elf32-microblaze.c | 4 ++-- | 11 | bfd/elf32-microblaze.c | 4 ++-- |
11 | bfd/elf64-microblaze.c | 4 ++-- | 12 | bfd/elf64-microblaze.c | 4 ++-- |
12 | 2 files changed, 4 insertions(+), 4 deletions(-) | 13 | 2 files changed, 4 insertions(+), 4 deletions(-) |
13 | 14 | ||
14 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c | 15 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
15 | index b632dd1..ffb23d8 100644 | 16 | index 035e71f..2d8c062 100644 |
16 | --- a/bfd/elf32-microblaze.c | 17 | --- a/bfd/elf32-microblaze.c |
17 | +++ b/bfd/elf32-microblaze.c | 18 | +++ b/bfd/elf32-microblaze.c |
18 | @@ -2022,8 +2022,8 @@ microblaze_elf_relax_section (bfd *abfd, | 19 | @@ -2022,8 +2022,8 @@ microblaze_elf_relax_section (bfd *abfd, |
@@ -41,6 +42,3 @@ index 184b7d5..ef6a870 100644 | |||
41 | } | 42 | } |
42 | break; | 43 | break; |
43 | } | 44 | } |
44 | -- | ||
45 | 2.7.4 | ||
46 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0025-Patch-MicroBlaze-fixed-Build-issue-which-are-due-to-.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0025-Patch-MicroBlaze-fixed-Build-issue-which-are-due-to-.patch index f035a8da..fec19b6b 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0025-Patch-MicroBlaze-fixed-Build-issue-which-are-due-to-.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0025-Patch-MicroBlaze-fixed-Build-issue-which-are-due-to-.patch | |||
@@ -1,11 +1,11 @@ | |||
1 | From 597ab75895c106c673db0e7a2adfac2f2350c2ec Mon Sep 17 00:00:00 2001 | 1 | From b8bd638f71649980e114548d8eeecba34683af42 Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Sun, 2 Dec 2018 14:49:14 +0530 | 3 | Date: Sun, 2 Dec 2018 14:49:14 +0530 |
4 | Subject: [PATCH 25/31] [Patch,MicroBlaze]: fixed Build issue which are due to | 4 | Subject: [PATCH] fixed Build issue which are due to conflicts in patches. |
5 | conflicts in patches. | ||
6 | 5 | ||
7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
9 | --- | 9 | --- |
10 | bfd/elf32-microblaze.c | 1 + | 10 | bfd/elf32-microblaze.c | 1 + |
11 | bfd/elf64-microblaze.c | 12 ++++++------ | 11 | bfd/elf64-microblaze.c | 12 ++++++------ |
@@ -13,7 +13,7 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | |||
13 | 3 files changed, 9 insertions(+), 8 deletions(-) | 13 | 3 files changed, 9 insertions(+), 8 deletions(-) |
14 | 14 | ||
15 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c | 15 | diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c |
16 | index ffb23d8..53924f6 100644 | 16 | index 2d8c062..6a795c5 100644 |
17 | --- a/bfd/elf32-microblaze.c | 17 | --- a/bfd/elf32-microblaze.c |
18 | +++ b/bfd/elf32-microblaze.c | 18 | +++ b/bfd/elf32-microblaze.c |
19 | @@ -1996,6 +1996,7 @@ microblaze_elf_relax_section (bfd *abfd, | 19 | @@ -1996,6 +1996,7 @@ microblaze_elf_relax_section (bfd *abfd, |
@@ -50,7 +50,7 @@ index ef6a870..bed534e 100644 | |||
50 | /* This is a reference to a symbol defined by a dynamic object which | 50 | /* This is a reference to a symbol defined by a dynamic object which |
51 | is not a function. */ | 51 | is not a function. */ |
52 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 52 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
53 | index 442f72c..edc7985 100644 | 53 | index c6d2e4c..b3e49f0 100644 |
54 | --- a/gas/config/tc-microblaze.c | 54 | --- a/gas/config/tc-microblaze.c |
55 | +++ b/gas/config/tc-microblaze.c | 55 | +++ b/gas/config/tc-microblaze.c |
56 | @@ -118,9 +118,9 @@ const relax_typeS md_relax_table[] = | 56 | @@ -118,9 +118,9 @@ const relax_typeS md_relax_table[] = |
@@ -65,6 +65,3 @@ index 442f72c..edc7985 100644 | |||
65 | { 0x7fffffffffffffff, 0x8000000000000000, INST_WORD_SIZE*2, 0 } /* 20: DEFINED_64_PC_OFFSET. */ | 65 | { 0x7fffffffffffffff, 0x8000000000000000, INST_WORD_SIZE*2, 0 } /* 20: DEFINED_64_PC_OFFSET. */ |
66 | }; | 66 | }; |
67 | 67 | ||
68 | -- | ||
69 | 2.7.4 | ||
70 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0026-Patch-Microblaze-changes-of-PR22458-failure-to-choos.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0026-Patch-Microblaze-changes-of-PR22458-failure-to-choos.patch index a7ecec15..cd6965d7 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0026-Patch-Microblaze-changes-of-PR22458-failure-to-choos.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0026-Patch-Microblaze-changes-of-PR22458-failure-to-choos.patch | |||
@@ -1,18 +1,19 @@ | |||
1 | From c0be3d2a8f0ac0c1a2ba82253c9eea99071da0a9 Mon Sep 17 00:00:00 2001 | 1 | From cbe98e5a0cbc2337bf25d6b3f9dabcae38b95952 Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Tue, 26 Feb 2019 17:31:41 +0530 | 3 | Date: Tue, 26 Feb 2019 17:31:41 +0530 |
4 | Subject: [PATCH 26/31] [Patch,Microblaze] : changes of "PR22458, failure to | 4 | Subject: [PATCH] changes of "PR22458, failure to choose a matching ELF target" |
5 | choose a matching ELF target" is causing "Multiple Prevailing definition | 5 | is causing "Multiple Prevailing definition errors",added check for best_match |
6 | errors",added check for best_match elf. | 6 | elf. |
7 | 7 | ||
8 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 8 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
9 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 9 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
10 | |||
10 | --- | 11 | --- |
11 | bfd/format.c | 5 +++++ | 12 | bfd/format.c | 5 +++++ |
12 | 1 file changed, 5 insertions(+) | 13 | 1 file changed, 5 insertions(+) |
13 | 14 | ||
14 | diff --git a/bfd/format.c b/bfd/format.c | 15 | diff --git a/bfd/format.c b/bfd/format.c |
15 | index c4afd97..4f7367d 100644 | 16 | index 97a9229..3a74cc4 100644 |
16 | --- a/bfd/format.c | 17 | --- a/bfd/format.c |
17 | +++ b/bfd/format.c | 18 | +++ b/bfd/format.c |
18 | @@ -292,7 +292,12 @@ bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching) | 19 | @@ -292,7 +292,12 @@ bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching) |
@@ -28,6 +29,3 @@ index c4afd97..4f7367d 100644 | |||
28 | continue; | 29 | continue; |
29 | 30 | ||
30 | /* If we already tried a match, the bfd is modified and may | 31 | /* If we already tried a match, the bfd is modified and may |
31 | -- | ||
32 | 2.7.4 | ||
33 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0029-Patch-Microblaze-Binutils-security-check-is-causing-.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0029-Patch-Microblaze-Binutils-security-check-is-causing-.patch index dd7bf088..f293f5cf 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0029-Patch-Microblaze-Binutils-security-check-is-causing-.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0029-Patch-Microblaze-Binutils-security-check-is-causing-.patch | |||
@@ -1,17 +1,18 @@ | |||
1 | From e267384901f94566300114b91fa251de43f7ec34 Mon Sep 17 00:00:00 2001 | 1 | From b1e425aed65150d7ce9ddb119f4b94969fe4043e Mon Sep 17 00:00:00 2001 |
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
3 | Date: Mon, 11 Mar 2019 14:23:58 +0530 | 3 | Date: Mon, 11 Mar 2019 14:23:58 +0530 |
4 | Subject: [PATCH 29/31] [Patch,Microblaze] : Binutils security check is causing | 4 | Subject: [PATCH] Binutils security check is causing build error for windows |
5 | build error for windows builds.commenting for now. | 5 | builds.commenting for now. |
6 | 6 | ||
7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
9 | |||
9 | --- | 10 | --- |
10 | bfd/elf-attrs.c | 2 ++ | 11 | bfd/elf-attrs.c | 2 ++ |
11 | 1 file changed, 2 insertions(+) | 12 | 1 file changed, 2 insertions(+) |
12 | 13 | ||
13 | diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c | 14 | diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c |
14 | index 5c1b960..5285db2 100644 | 15 | index bfe135e..feb5cb3 100644 |
15 | --- a/bfd/elf-attrs.c | 16 | --- a/bfd/elf-attrs.c |
16 | +++ b/bfd/elf-attrs.c | 17 | +++ b/bfd/elf-attrs.c |
17 | @@ -440,6 +440,7 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr) | 18 | @@ -440,6 +440,7 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr) |
@@ -30,6 +31,3 @@ index 5c1b960..5285db2 100644 | |||
30 | 31 | ||
31 | contents = (bfd_byte *) bfd_malloc (hdr->sh_size + 1); | 32 | contents = (bfd_byte *) bfd_malloc (hdr->sh_size + 1); |
32 | if (!contents) | 33 | if (!contents) |
33 | -- | ||
34 | 2.7.4 | ||
35 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0030-fixing-the-long-long-long-mingw-toolchain-issue.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0030-fixing-the-long-long-long-mingw-toolchain-issue.patch index fea12b0b..7e3accad 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0030-fixing-the-long-long-long-mingw-toolchain-issue.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0030-fixing-the-long-long-long-mingw-toolchain-issue.patch | |||
@@ -1,17 +1,18 @@ | |||
1 | From 0e918ef176cf14073abca83c61d3978f3fa2551e Mon Sep 17 00:00:00 2001 | 1 | From 1eec84c155aeaeead673310f83293853f01b578d Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju Mekala <nmekala@xilix.com> | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
3 | Date: Thu, 29 Nov 2018 17:59:25 +0530 | 3 | Date: Thu, 29 Nov 2018 17:59:25 +0530 |
4 | Subject: [PATCH 30/31] fixing the long & long long mingw toolchain issue | 4 | Subject: [PATCH] fixing the long & long long mingw toolchain issue |
5 | 5 | ||
6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> | 6 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 7 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
8 | |||
8 | --- | 9 | --- |
9 | gas/config/tc-microblaze.c | 10 +++++----- | 10 | gas/config/tc-microblaze.c | 10 +++++----- |
10 | opcodes/microblaze-opc.h | 4 ++-- | 11 | opcodes/microblaze-opc.h | 4 ++-- |
11 | 2 files changed, 7 insertions(+), 7 deletions(-) | 12 | 2 files changed, 7 insertions(+), 7 deletions(-) |
12 | 13 | ||
13 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c | 14 | diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c |
14 | index edc7985..9db9a7f 100644 | 15 | index b3e49f0..5b506d3 100644 |
15 | --- a/gas/config/tc-microblaze.c | 16 | --- a/gas/config/tc-microblaze.c |
16 | +++ b/gas/config/tc-microblaze.c | 17 | +++ b/gas/config/tc-microblaze.c |
17 | @@ -783,7 +783,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max) | 18 | @@ -783,7 +783,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max) |
@@ -40,7 +41,7 @@ index edc7985..9db9a7f 100644 | |||
40 | 41 | ||
41 | if (atp) | 42 | if (atp) |
42 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h | 43 | diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h |
43 | index 2096269..7df80d4 100644 | 44 | index 824afc0..d59ee0a 100644 |
44 | --- a/opcodes/microblaze-opc.h | 45 | --- a/opcodes/microblaze-opc.h |
45 | +++ b/opcodes/microblaze-opc.h | 46 | +++ b/opcodes/microblaze-opc.h |
46 | @@ -585,8 +585,8 @@ char pvr_register_prefix[] = "rpvr"; | 47 | @@ -585,8 +585,8 @@ char pvr_register_prefix[] = "rpvr"; |
@@ -54,6 +55,3 @@ index 2096269..7df80d4 100644 | |||
54 | 55 | ||
55 | #endif /* MICROBLAZE_OPC */ | 56 | #endif /* MICROBLAZE_OPC */ |
56 | 57 | ||
57 | -- | ||
58 | 2.7.4 | ||
59 | |||
diff --git a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0031-fixing-the-_STACK_SIZE-issue-with-the-flto-flag.patch b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0031-fixing-the-_STACK_SIZE-issue-with-the-flto-flag.patch index d47b59a9..8c54f761 100644 --- a/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0031-fixing-the-_STACK_SIZE-issue-with-the-flto-flag.patch +++ b/meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.32/0031-fixing-the-_STACK_SIZE-issue-with-the-flto-flag.patch | |||
@@ -1,27 +1,28 @@ | |||
1 | From 8c08e0dfcfcb6c56576b68f235b0006c4c67fafb Mon Sep 17 00:00:00 2001 | 1 | From e28b33db95e6b71afe2eaca9d7090b3bfc20f08e Mon Sep 17 00:00:00 2001 |
2 | From: Nagaraju <nmekala@xilinx.com> | 2 | From: Nagaraju <nmekala@xilinx.com> |
3 | Date: Wed, 20 Mar 2019 11:42:07 +0530 | 3 | Date: Wed, 20 Mar 2019 11:42:07 +0530 |
4 | Subject: [PATCH 31/31] fixing the _STACK_SIZE issue with the flto flag | 4 | Subject: [PATCH] fixing the _STACK_SIZE issue with the flto flag |
5 | 5 | ||
6 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> | 6 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
7 | |||
7 | --- | 8 | --- |
8 | ld/scripttempl/elfmicroblaze.sc | 12 ++++++------ | 9 | ld/scripttempl/elfmicroblaze.sc | 12 ++++++------ |
9 | 1 file changed, 6 insertions(+), 6 deletions(-) | 10 | 1 file changed, 6 insertions(+), 6 deletions(-) |
10 | 11 | ||
11 | diff --git a/ld/scripttempl/elfmicroblaze.sc b/ld/scripttempl/elfmicroblaze.sc | 12 | diff --git a/ld/scripttempl/elfmicroblaze.sc b/ld/scripttempl/elfmicroblaze.sc |
12 | index d8f7569..1316901 100644 | 13 | index 30b9c28..6be0f4e 100644 |
13 | --- a/ld/scripttempl/elfmicroblaze.sc | 14 | --- a/ld/scripttempl/elfmicroblaze.sc |
14 | +++ b/ld/scripttempl/elfmicroblaze.sc | 15 | +++ b/ld/scripttempl/elfmicroblaze.sc |
15 | @@ -63,9 +63,9 @@ ${RELOCATING+${LIB_SEARCH_DIRS}} | 16 | @@ -63,9 +63,9 @@ ${RELOCATING+${LIB_SEARCH_DIRS}} |
16 | 17 | ||
17 | ${RELOCATING+ENTRY (${ENTRY})} | 18 | ${RELOCATING+ENTRY (${ENTRY})} |
18 | 19 | ||
19 | -_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50; | 20 | -${RELOCATING+_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50; |
20 | -_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0; | 21 | -_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0; |
21 | -_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400; | 22 | -_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;} |
22 | +_DEF_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50; | 23 | +${RELOCATING+_DEF_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50; |
23 | +_DEF_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0; | 24 | +_DEF_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0; |
24 | +_DEF_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400; | 25 | +_DEF_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;} |
25 | 26 | ||
26 | SECTIONS | 27 | SECTIONS |
27 | { | 28 | { |
@@ -34,7 +35,7 @@ index d8f7569..1316901 100644 | |||
34 | 35 | ||
35 | ${RELOCATING+ _ftext = .;} | 36 | ${RELOCATING+ _ftext = .;} |
36 | .text : { | 37 | .text : { |
37 | @@ -208,7 +208,7 @@ SECTIONS | 38 | @@ -207,7 +207,7 @@ SECTIONS |
38 | .heap : { | 39 | .heap : { |
39 | ${RELOCATING+ _heap = .;} | 40 | ${RELOCATING+ _heap = .;} |
40 | ${RELOCATING+ _heap_start = .;} | 41 | ${RELOCATING+ _heap_start = .;} |
@@ -43,7 +44,7 @@ index d8f7569..1316901 100644 | |||
43 | ${RELOCATING+ _heap_end = .;} | 44 | ${RELOCATING+ _heap_end = .;} |
44 | } | 45 | } |
45 | 46 | ||
46 | @@ -216,7 +216,7 @@ SECTIONS | 47 | @@ -215,7 +215,7 @@ SECTIONS |
47 | 48 | ||
48 | .stack : { | 49 | .stack : { |
49 | ${RELOCATING+ _stack_end = .;} | 50 | ${RELOCATING+ _stack_end = .;} |
@@ -52,6 +53,3 @@ index d8f7569..1316901 100644 | |||
52 | ${RELOCATING+ . = ALIGN(. != 0 ? 8 : 1);} | 53 | ${RELOCATING+ . = ALIGN(. != 0 ? 8 : 1);} |
53 | ${RELOCATING+ _stack = .;} | 54 | ${RELOCATING+ _stack = .;} |
54 | ${RELOCATING+ _end = .;} | 55 | ${RELOCATING+ _end = .;} |
55 | -- | ||
56 | 2.7.4 | ||
57 | |||