aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaewon Lee <jaewon.lee@xilinx.com>2019-04-29 11:37:34 -0700
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2019-06-28 16:36:24 -0700
commitf3c8b1c9a8ae6a1690f7f5d907b65c588f65446a (patch)
treea5743b9097920e16085f6229601089164840dbca
parent4060e68585b60489aaac3c39adcda81a889e8691 (diff)
downloadmeta-xilinx-f3c8b1c9a8ae6a1690f7f5d907b65c588f65446a.tar.gz
meta-xilinx-f3c8b1c9a8ae6a1690f7f5d907b65c588f65446a.tar.bz2
meta-xilinx-f3c8b1c9a8ae6a1690f7f5d907b65c588f65446a.zip
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%.bbappend4
-rw-r--r--meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0027-Patch-Microblaze-PR22471-undefined-reference-to-link.patch363
-rw-r--r--meta-xilinx-bsp/recipes-microblaze/binutils/binutils-2.31/0028-Revert-ld-Remove-unused-expression-state.patch97
-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 @@
-FILESEXTRAPATHS_append_microblaze := "${THISDIR}/binutils-2.31:"
+FILESEXTRAPATHS_append_microblaze := "${THISDIR}/binutils-2.32:"
SRC_URI_append_microblaze = " \
file://0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch \
file://0002-Add-mlittle-endian-and-mbig-endian-flags.patch \
@@ -26,8 +26,6 @@ SRC_URI_append_microblaze = " \
file://0024-Fixed-the-bug-in-the-R_MICROBLAZE_64_NONE-relocation.patch \
file://0025-Patch-MicroBlaze-fixed-Build-issue-which-are-due-to-.patch \
file://0026-Patch-Microblaze-changes-of-PR22458-failure-to-choos.patch \
- file://0027-Patch-Microblaze-PR22471-undefined-reference-to-link.patch \
- file://0028-Revert-ld-Remove-unused-expression-state.patch \
file://0029-Patch-Microblaze-Binutils-security-check-is-causing-.patch \
file://0030-fixing-the-long-long-long-mingw-toolchain-issue.patch \
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 @@
-From 059fc6d823a81602d951275ba99430550b84f8a3 Mon Sep 17 00:00:00 2001
-From: Mahesh Bodapati <mbodapat@xilinx.com>
-Date: Tue, 26 Feb 2019 17:46:36 +0530
-Subject: [PATCH 27/31] [Patch,Microblaze] : "PR22471, undefined reference to
- linker-defined symbols" is causing runtime loops.reverting for now.
-
-Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
-Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
----
- bfd/elflink.c | 7 +---
- bfd/linker.c | 9 +----
- ld/ldexp.c | 64 +++++++++++++++++++------------
- ld/ldlang.c | 6 +--
- ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d | 4 +-
- ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got | 2 +-
- ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d | 4 +-
- ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got | 2 +-
- ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d | 4 +-
- ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got | 2 +-
- 10 files changed, 53 insertions(+), 51 deletions(-)
-
-diff --git a/bfd/elflink.c b/bfd/elflink.c
-index b316149..3860891 100644
---- a/bfd/elflink.c
-+++ b/bfd/elflink.c
-@@ -1496,15 +1496,10 @@ _bfd_elf_merge_symbol (bfd *abfd,
- treated as strong if the new symbol is from a dynamic library.
- This reflects the way glibc's ld.so works.
-
-- Also allow a weak symbol to override a linker script symbol
-- defined by an early pass over the script. This is done so the
-- linker knows the symbol is defined in an object file, for the
-- DEFINED script function.
--
- Do this before setting *type_change_ok or *size_change_ok so that
- we warn properly when dynamic library symbols are overridden. */
-
-- if (newdef && !newdyn && (olddyn || h->root.ldscript_def))
-+ if (newdef && !newdyn && olddyn)
- newweak = FALSE;
- if (olddef && newdyn)
- oldweak = FALSE;
-diff --git a/bfd/linker.c b/bfd/linker.c
-index 6b4c8e5..8d51c2a 100644
---- a/bfd/linker.c
-+++ b/bfd/linker.c
-@@ -1449,14 +1449,9 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info,
- do
- {
- enum link_action action;
-- int prev;
-
-- prev = h->type;
-- /* Treat symbols defined by early linker script pass as undefined. */
-- if (h->ldscript_def)
-- prev = bfd_link_hash_undefined;
- cycle = FALSE;
-- action = link_action[(int) row][prev];
-+ action = link_action[(int) row][(int) h->type];
- switch (action)
- {
- case FAIL:
-@@ -1500,7 +1495,6 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info,
- h->u.def.section = section;
- h->u.def.value = value;
- h->linker_def = 0;
-- h->ldscript_def = 0;
-
- /* If we have been asked to, we act like collect2 and
- identify all functions that might be global
-@@ -1600,7 +1594,6 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info,
- else
- h->u.c.p->section = section;
- h->linker_def = 0;
-- h->ldscript_def = 0;
- break;
-
- case REF:
-diff --git a/ld/ldexp.c b/ld/ldexp.c
-index 6fa251e..d46a06f 100644
---- a/ld/ldexp.c
-+++ b/ld/ldexp.c
-@@ -60,12 +60,15 @@ struct definedness_hash_entry
- section statement, the section we'd like it relative to. */
- asection *final_sec;
-
-- /* Low bits of iteration count. Symbols with matching iteration have
-- been defined in this pass over the script. */
-- unsigned int iteration : 8;
--
- /* Symbol was defined by an object file. */
- unsigned int by_object : 1;
-+
-+ /* Symbols was defined by a script. */
-+ unsigned int by_script : 1;
-+
-+ /* Low bit of iteration count. Symbols with matching iteration have
-+ been defined in this pass over the script. */
-+ unsigned int iteration : 1;
- };
-
- static struct bfd_hash_table definedness_table;
-@@ -283,6 +286,7 @@ definedness_newfunc (struct bfd_hash_entry *entry,
- einfo (_("%F%P: bfd_hash_allocate failed creating symbol %s\n"), name);
-
- ret->by_object = 0;
-+ ret->by_script = 0;
- ret->iteration = 0;
- return &ret->root;
- }
-@@ -316,7 +320,7 @@ update_definedness (const char *name, struct bfd_link_hash_entry *h)
- /* If the symbol was already defined, and not by a script, then it
- must be defined by an object file or by the linker target code. */
- ret = TRUE;
-- if (!h->ldscript_def
-+ if (!defentry->by_script
- && (h->type == bfd_link_hash_defined
- || h->type == bfd_link_hash_defweak
- || h->type == bfd_link_hash_common))
-@@ -328,6 +332,7 @@ update_definedness (const char *name, struct bfd_link_hash_entry *h)
- ret = FALSE;
- }
-
-+ defentry->by_script = 1;
- defentry->iteration = lang_statement_iteration;
- defentry->final_sec = bfd_abs_section_ptr;
- if (expld.phase == lang_final_phase_enum
-@@ -681,9 +686,6 @@ fold_trinary (etree_type *tree)
- static void
- fold_name (etree_type *tree)
- {
-- struct bfd_link_hash_entry *h;
-- struct definedness_hash_entry *def;
--
- memset (&expld.result, 0, sizeof (expld.result));
-
- switch (tree->type.node_code)
-@@ -701,18 +703,23 @@ fold_name (etree_type *tree)
- break;
-
- case DEFINED:
-- h = bfd_wrapped_link_hash_lookup (link_info.output_bfd,
-- &link_info,
-- tree->name.name,
-- FALSE, FALSE, TRUE);
-- new_number (h != NULL
-- && (h->type == bfd_link_hash_defined
-- || h->type == bfd_link_hash_defweak
-- || h->type == bfd_link_hash_common)
-- && (!h->ldscript_def
-- || (def = symbol_defined (tree->name.name)) == NULL
-- || def->by_object
-- || def->iteration == (lang_statement_iteration & 255)));
-+ if (expld.phase != lang_first_phase_enum)
-+ {
-+ struct bfd_link_hash_entry *h;
-+ struct definedness_hash_entry *def;
-+
-+ h = bfd_wrapped_link_hash_lookup (link_info.output_bfd,
-+ &link_info,
-+ tree->name.name,
-+ FALSE, FALSE, TRUE);
-+ new_number (h != NULL
-+ && (h->type == bfd_link_hash_defined
-+ || h->type == bfd_link_hash_defweak
-+ || h->type == bfd_link_hash_common)
-+ && ((def = symbol_defined (tree->name.name)) == NULL
-+ || def->by_object
-+ || def->iteration == (lang_statement_iteration & 1)));
-+ }
- break;
-
- case NAME:
-@@ -721,6 +728,9 @@ fold_name (etree_type *tree)
- {
- /* Self-assignment is only allowed for absolute symbols
- defined in a linker script. */
-+ struct bfd_link_hash_entry *h;
-+ struct definedness_hash_entry *def;
-+
- h = bfd_wrapped_link_hash_lookup (link_info.output_bfd,
- &link_info,
- tree->name.name,
-@@ -730,13 +740,17 @@ fold_name (etree_type *tree)
- || h->type == bfd_link_hash_defweak)
- && h->u.def.section == bfd_abs_section_ptr
- && (def = symbol_defined (tree->name.name)) != NULL
-- && def->iteration == (lang_statement_iteration & 255)))
-+ && def->iteration == (lang_statement_iteration & 1)))
- expld.assign_name = NULL;
- }
-- if (tree->name.name[0] == '.' && tree->name.name[1] == 0)
-+ if (expld.phase == lang_first_phase_enum)
-+ ;
-+ else if (tree->name.name[0] == '.' && tree->name.name[1] == 0)
- new_rel_from_abs (expld.dot);
- else
- {
-+ struct bfd_link_hash_entry *h;
-+
- h = bfd_wrapped_link_hash_lookup (link_info.output_bfd,
- &link_info,
- tree->name.name,
-@@ -751,7 +765,7 @@ fold_name (etree_type *tree)
- output_section = h->u.def.section->output_section;
- if (output_section == NULL)
- {
-- if (expld.phase <= lang_mark_phase_enum)
-+ if (expld.phase == lang_mark_phase_enum)
- new_rel (h->u.def.value, h->u.def.section);
- else
- einfo (_("%X%P:%pS: unresolvable symbol `%s'"
-@@ -943,12 +957,12 @@ is_sym_value (const etree_type *tree, bfd_vma val)
- return (tree->type.node_class == etree_name
- && tree->type.node_code == NAME
- && (def = symbol_defined (tree->name.name)) != NULL
-- && def->iteration == (lang_statement_iteration & 255)
-+ && def->by_script
-+ && def->iteration == (lang_statement_iteration & 1)
- && (h = bfd_wrapped_link_hash_lookup (link_info.output_bfd,
- &link_info,
- tree->name.name,
- FALSE, FALSE, TRUE)) != NULL
-- && h->ldscript_def
- && h->type == bfd_link_hash_defined
- && h->u.def.section == bfd_abs_section_ptr
- && h->u.def.value == val);
-diff --git a/ld/ldlang.c b/ld/ldlang.c
-index 350baf2..7e12480 100644
---- a/ld/ldlang.c
-+++ b/ld/ldlang.c
-@@ -3360,7 +3360,9 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode)
- #endif
- break;
- case lang_assignment_statement_enum:
-- if (s->assignment_statement.exp->type.node_class != etree_assert)
-+ if (s->assignment_statement.exp->type.node_class != etree_assert
-+ && s->assignment_statement.exp->assign.defsym)
-+ /* This is from a --defsym on the command line. */
- exp_fold_tree_no_dot (s->assignment_statement.exp);
- break;
- default:
-@@ -7176,7 +7178,6 @@ lang_process (void)
-
- /* Create a bfd for each input file. */
- current_target = default_target;
-- lang_statement_iteration++;
- open_input_bfds (statement_list.head, OPEN_BFD_NORMAL);
-
- #ifdef ENABLE_PLUGINS
-@@ -7232,7 +7233,6 @@ lang_process (void)
-
- /* Rescan archives in case new undefined symbols have appeared. */
- files = file_chain;
-- lang_statement_iteration++;
- open_input_bfds (statement_list.head, OPEN_BFD_RESCAN);
- lang_list_remove_tail (&file_chain, &files);
- while (files.head != NULL)
-diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d
-index 17e42d0..011df6c 100644
---- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d
-+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d
-@@ -5,7 +5,7 @@ Disassembly of section .text:
-
- .* <__start>:
- .*: 3c1c0fc0 lui gp,0xfc0
-- .*: 279c7b80 addiu gp,gp,31616
-+ .*: 279c7c30 addiu gp,gp,31792
- .*: 0399e021 addu gp,gp,t9
- .*: 27bdfff0 addiu sp,sp,-16
- .*: afbe0008 sw s8,8\(sp\)
-@@ -55,7 +55,7 @@ Disassembly of section .text:
-
- .* <other>:
- .*: 3c1c0fc0 lui gp,0xfc0
-- .*: 279c7ac0 addiu gp,gp,31424
-+ .*: 279c7b70 addiu gp,gp,31600
- .*: 0399e021 addu gp,gp,t9
- .*: 27bdfff0 addiu sp,sp,-16
- .*: afbe0008 sw s8,8\(sp\)
-diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got
-index 508fed2..1dbcab4 100644
---- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got
-+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got
-@@ -13,6 +13,6 @@ OFFSET TYPE VALUE
-
-
- Contents of section .got:
-- 10000020 00000000 80000000 0040053c 00000000 .........@......
-+ 10000020 00000000 80000000 0040048c 00000000 .........@......
- 10000030 00000000 00000000 00000000 00000000 ................
- 10000040 00000000 00000001 00000000 ............
-diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d
-index 17e42d0..011df6c 100644
---- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d
-+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d
-@@ -5,7 +5,7 @@ Disassembly of section .text:
-
- .* <__start>:
- .*: 3c1c0fc0 lui gp,0xfc0
-- .*: 279c7b80 addiu gp,gp,31616
-+ .*: 279c7c30 addiu gp,gp,31792
- .*: 0399e021 addu gp,gp,t9
- .*: 27bdfff0 addiu sp,sp,-16
- .*: afbe0008 sw s8,8\(sp\)
-@@ -55,7 +55,7 @@ Disassembly of section .text:
-
- .* <other>:
- .*: 3c1c0fc0 lui gp,0xfc0
-- .*: 279c7ac0 addiu gp,gp,31424
-+ .*: 279c7b70 addiu gp,gp,31600
- .*: 0399e021 addu gp,gp,t9
- .*: 27bdfff0 addiu sp,sp,-16
- .*: afbe0008 sw s8,8\(sp\)
-diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got
-index 4a97099..fb50635 100644
---- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got
-+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got
-@@ -13,6 +13,6 @@ OFFSET TYPE VALUE
-
-
- Contents of section .got:
-- 10000020 00000000 80000000 0040053c 00000000 .*
-+ 10000020 00000000 80000000 0040048c 00000000 .*
- 10000030 00000000 00000000 00000000 00000000 .*
- 10000040 00000000 00000001 00000000 .*
-diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d
-index fb3750a..3828aca 100644
---- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d
-+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d
-@@ -5,7 +5,7 @@ Disassembly of section .text:
-
- .* <other>:
- .*: 3c1c0fc0 lui gp,0xfc0
-- .*: 279c7b80 addiu gp,gp,31616
-+ .*: 279c7c30 addiu gp,gp,31792
- .*: 0399e021 addu gp,gp,t9
- .*: 27bdfff0 addiu sp,sp,-16
- .*: afbe0008 sw s8,8\(sp\)
-@@ -51,7 +51,7 @@ Disassembly of section .text:
-
- .* <__start>:
- .*: 3c1c0fc0 lui gp,0xfc0
-- .*: 279c7ad0 addiu gp,gp,31440
-+ .*: 279c7b80 addiu gp,gp,31616
- .*: 0399e021 addu gp,gp,t9
- .*: 27bdfff0 addiu sp,sp,-16
- .*: afbe0008 sw s8,8\(sp\)
-diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got
-index d96375c..4a97099 100644
---- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got
-+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got
-@@ -13,6 +13,6 @@ OFFSET TYPE VALUE
-
-
- Contents of section .got:
-- 10000020 00000000 80000000 004005ec 00000000 .*
-+ 10000020 00000000 80000000 0040053c 00000000 .*
- 10000030 00000000 00000000 00000000 00000000 .*
- 10000040 00000000 00000001 00000000 .*
---
-2.7.4
-
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 @@
-From a9bcbddf77662f8c12e83360809a697196a55281 Mon Sep 17 00:00:00 2001
-From: Mahesh Bodapati <mbodapat@xilinx.com>
-Date: Wed, 27 Feb 2019 15:12:32 +0530
-Subject: [PATCH 28/31] Revert "ld: Remove unused expression state"
-
-This reverts commit 65f14869fd3fbee8ed4c4ca49de8aaa86dbc66cb.
-
-Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
-Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
----
- ld/ChangeLog | 9 ---------
- ld/ldexp.c | 8 +++++---
- ld/ldexp.h | 1 +
- 3 files changed, 6 insertions(+), 12 deletions(-)
-
-diff --git a/ld/ChangeLog b/ld/ChangeLog
-index 4827678..ce3d2d5 100644
---- a/ld/ChangeLog
-+++ b/ld/ChangeLog
-@@ -2972,15 +2972,6 @@
-
- 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
-
-- * ldexp.h (union etree_union): Remove defsym field.
-- * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
-- parameter.
-- (exp_assign): Remove passing of defsym parameter.
-- (exp_defsym): Likewise.
-- (exp_provide): Likewise.
--
--2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
--
- * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
- nodes are ignored in the tree walk, and move the location at which
- we change provide nodes into provided nodes.
-diff --git a/ld/ldexp.c b/ld/ldexp.c
-index d46a06f..a84bf63 100644
---- a/ld/ldexp.c
-+++ b/ld/ldexp.c
-@@ -1355,6 +1355,7 @@ static etree_type *
- exp_assop (const char *dst,
- etree_type *src,
- enum node_tree_enum class,
-+ bfd_boolean defsym,
- bfd_boolean hidden)
- {
- etree_type *n;
-@@ -1366,6 +1367,7 @@ exp_assop (const char *dst,
- n->assign.type.node_class = class;
- n->assign.src = src;
- n->assign.dst = dst;
-+ n->assign.defsym = defsym;
- n->assign.hidden = hidden;
- return n;
- }
-@@ -1375,7 +1377,7 @@ exp_assop (const char *dst,
- etree_type *
- exp_assign (const char *dst, etree_type *src, bfd_boolean hidden)
- {
-- return exp_assop (dst, src, etree_assign, hidden);
-+ return exp_assop (dst, src, etree_assign, FALSE, hidden);
- }
-
- /* Handle --defsym command-line option. */
-@@ -1383,7 +1385,7 @@ exp_assign (const char *dst, etree_type *src, bfd_boolean hidden)
- etree_type *
- exp_defsym (const char *dst, etree_type *src)
- {
-- return exp_assop (dst, src, etree_assign, FALSE);
-+ return exp_assop (dst, src, etree_assign, TRUE, FALSE);
- }
-
- /* Handle PROVIDE. */
-@@ -1391,7 +1393,7 @@ exp_defsym (const char *dst, etree_type *src)
- etree_type *
- exp_provide (const char *dst, etree_type *src, bfd_boolean hidden)
- {
-- return exp_assop (dst, src, etree_provide, hidden);
-+ return exp_assop (dst, src, etree_provide, FALSE, hidden);
- }
-
- /* Handle ASSERT. */
-diff --git a/ld/ldexp.h b/ld/ldexp.h
-index d58cacb..572b703 100644
---- a/ld/ldexp.h
-+++ b/ld/ldexp.h
-@@ -66,6 +66,7 @@ typedef union etree_union {
- node_type type;
- const char *dst;
- union etree_union *src;
-+ bfd_boolean defsym;
- bfd_boolean hidden;
- } assign;
- struct {
---
-2.7.4
-
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 @@
-From 6958c0c056b1597992d72d4b75e763e65862e1ad Mon Sep 17 00:00:00 2001
+From ad671256112cfee47871e91c6d390daea1b8fa2f Mon Sep 17 00:00:00 2001
From: David Holsgrove <david.holsgrove@xilinx.com>
Date: Wed, 8 May 2013 11:03:36 +1000
-Subject: [PATCH 01/31] Add wdc.ext.clear and wdc.ext.flush insns
+Subject: [PATCH] Add wdc.ext.clear and wdc.ext.flush insns
Added two new instructions, wdc.ext.clear and wdc.ext.flush,
to enable MicroBlaze to flush an external cache, which is
@@ -9,13 +9,14 @@ used with the new coherency support for multiprocessing.
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
+
---
opcodes/microblaze-opc.h | 5 ++++-
opcodes/microblaze-opcm.h | 4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h
-index ede8af8..773dc81 100644
+index 62ee3c9..865151f 100644
--- a/opcodes/microblaze-opc.h
+++ b/opcodes/microblaze-opc.h
@@ -91,6 +91,7 @@
@@ -46,7 +47,7 @@ index ede8af8..773dc81 100644
{"mfs", INST_TYPE_RD_SPECIAL, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_MFS, 0x94008000, OPCODE_MASK_H23S, mfs, special_inst },
{"br", INST_TYPE_R2, INST_PC_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x98000000, OPCODE_MASK_H124, br, branch_inst },
diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h
-index 92f3f19..7338f6a 100644
+index 5a2d3b0..42f3dd3 100644
--- a/opcodes/microblaze-opcm.h
+++ b/opcodes/microblaze-opcm.h
@@ -33,8 +33,8 @@ enum microblaze_instr
@@ -60,6 +61,3 @@ index 92f3f19..7338f6a 100644
bltd, ble, bled, bgt, bgtd, bge, bged, ori, andi, xori, andni,
imm, rtsd, rtid, rtbd, rted, bri, brid, brlid, brai, braid, bralid,
brki, beqi, beqid, bnei, bneid, blti, bltid, blei, bleid, bgti,
---
-2.7.4
-
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 @@
-From a570d7ef1fce2a1e4d4fde5f3ac36a741a01587b Mon Sep 17 00:00:00 2001
+From cd4e233a38df5eee833c77f4393e710ad5383ac0 Mon Sep 17 00:00:00 2001
From: nagaraju <nmekala@xilix.com>
Date: Tue, 19 Mar 2013 17:18:23 +0530
-Subject: [PATCH 02/31] Add mlittle-endian and mbig-endian flags
+Subject: [PATCH] Add mlittle-endian and mbig-endian flags
Added support in gas for mlittle-endian and mbig-endian flags
as options.
@@ -11,12 +11,13 @@ to include new entries.
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
+
---
gas/config/tc-microblaze.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index ba6eabb..360ccba 100644
+index ab90c6b..c92e9ce 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -37,6 +37,8 @@
@@ -59,6 +60,3 @@ index ba6eabb..360ccba 100644
}
---
-2.7.4
-
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 @@
-From 311a3a3dc3f5b2ab1ee276cb5626a85d0fd1027a Mon Sep 17 00:00:00 2001
+From a8cbf5f3e93150132f194cfa3008fe896457171f Mon Sep 17 00:00:00 2001
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Date: Fri, 22 Jun 2012 01:20:20 +0200
-Subject: [PATCH 03/31] Disable the warning message for eh_frame_hdr
+Subject: [PATCH] Disable the warning message for eh_frame_hdr
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf-eh-frame.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
-index 12f06ef..e144922 100644
+index a13e81e..1824ba6 100644
--- a/bfd/elf-eh-frame.c
+++ b/bfd/elf-eh-frame.c
-@@ -1042,10 +1042,13 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
+@@ -1044,10 +1044,13 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
goto success;
free_no_table:
@@ -27,6 +28,3 @@ index 12f06ef..e144922 100644
hdr_info->u.dwarf.table = FALSE;
if (sec_info)
free (sec_info);
---
-2.7.4
-
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 @@
-From cafd454afbd2722b9249024332182e3e96b1bcc7 Mon Sep 17 00:00:00 2001
+From 2b87c5c4ec4a7d6285c0991c202aae3cf8401d99 Mon Sep 17 00:00:00 2001
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Date: Tue, 14 Feb 2012 01:00:22 +0100
-Subject: [PATCH 04/31] Fix relaxation of assembler resolved references
+Subject: [PATCH] Fix relaxation of assembler resolved references
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf32-microblaze.c | 38 ++++++++++++++++++++++++++++++++++++++
gas/config/tc-microblaze.c | 1 +
2 files changed, 39 insertions(+)
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
-index 3d131bc..56c82ae 100644
+index e3c8027..359484d 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -1973,6 +1973,44 @@ microblaze_elf_relax_section (bfd *abfd,
@@ -60,7 +61,7 @@ index 3d131bc..56c82ae 100644
{
isym = isymbuf + ELF32_R_SYM (irelscan->r_info);
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index 360ccba..e3dd1e0 100644
+index c92e9ce..3e72840 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -2205,6 +2205,7 @@ md_apply_fix (fixS * fixP,
@@ -71,6 +72,3 @@ index 360ccba..e3dd1e0 100644
}
return;
}
---
-2.7.4
-
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 @@
-From 9c0639469318b3a88aa7cb5e776eed85b586c5d0 Mon Sep 17 00:00:00 2001
+From 68a91eb7ac94f0e0c6e9ebd7ad148c80cbc227df Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Mon, 6 Feb 2017 15:53:08 +0530
-Subject: [PATCH 05/31] [LOCAL]: Fixup debug_loc sections after linker
- relaxation Adds a new reloctype R_MICROBLAZE_32_NONE, used for passing reloc
- info from the assembler to the linker when the linker manages to fully
- resolve a local symbol reference.
+Subject: [PATCH] Fixup debug_loc sections after linker relaxation Adds a new
+ reloctype R_MICROBLAZE_32_NONE, used for passing reloc info from the
+ assembler to the linker when the linker manages to fully resolve a local
+ symbol reference.
This is a workaround for design flaws in the assembler to
linker interface with regards to linker relaxation.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/bfd-in2.h | 9 ++++++--
bfd/elf32-microblaze.c | 53 ++++++++++++++++++++++++++++++++++------------
@@ -22,10 +23,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
7 files changed, 64 insertions(+), 16 deletions(-)
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
-index f53dbb5..5807f70 100644
+index e251d7e..fe6933a 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
-@@ -5790,10 +5790,15 @@ value relative to the read-write small data area anchor */
+@@ -5867,10 +5867,15 @@ value relative to the read-write small data area anchor */
expressions of the form "Symbol Op Symbol" */
BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM,
@@ -44,7 +45,7 @@ index f53dbb5..5807f70 100644
/* This is a 64 bit reloc that stores the 32 bit pc relative
value in two words (with an imm instruction). The relocation is
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
-index 56c82ae..a377790 100644
+index 359484d..1c69c26 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -176,7 +176,21 @@ static reloc_howto_type microblaze_elf_howto_raw[] =
@@ -163,10 +164,10 @@ index 56c82ae..a377790 100644
0,
sec);
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
-index 85f61b2..261086c 100644
+index 36284d7..feb9fad 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
-@@ -2862,6 +2862,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
+@@ -2901,6 +2901,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_MICROBLAZE_32_ROSDA",
"BFD_RELOC_MICROBLAZE_32_RWSDA",
"BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM",
@@ -175,10 +176,10 @@ index 85f61b2..261086c 100644
"BFD_RELOC_MICROBLAZE_64_GOTPC",
"BFD_RELOC_MICROBLAZE_64_GOT",
diff --git a/bfd/reloc.c b/bfd/reloc.c
-index 68bc8a8..d89bc5d 100644
+index e6446a7..87753ae 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
-@@ -6865,6 +6865,12 @@ ENUMDOC
+@@ -6796,6 +6796,12 @@ ENUMDOC
This is a 32 bit reloc for the microblaze to handle
expressions of the form "Symbol Op Symbol"
ENUM
@@ -192,10 +193,10 @@ index 68bc8a8..d89bc5d 100644
ENUMDOC
This is a 64 bit reloc that stores the 32 bit pc relative
diff --git a/binutils/readelf.c b/binutils/readelf.c
-index 1b50ba7..13e794d 100644
+index 9df3742..1bbc2d1 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
-@@ -12907,6 +12907,10 @@ is_none_reloc (Filedata * filedata, unsigned int reloc_type)
+@@ -13020,6 +13020,10 @@ is_none_reloc (Filedata * filedata, unsigned int reloc_type)
|| reloc_type == 32 /* R_AVR_DIFF32. */);
case EM_METAG:
return reloc_type == 3; /* R_METAG_NONE. */
@@ -207,7 +208,7 @@ index 1b50ba7..13e794d 100644
return (reloc_type == 0 /* R_XTENSA_NONE. */
|| reloc_type == 204 /* R_NDS32_DIFF8. */
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index e3dd1e0..b34796c 100644
+index 3e72840..fa665b4 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -2201,7 +2201,9 @@ md_apply_fix (fixS * fixP,
@@ -230,7 +231,7 @@ index e3dd1e0..b34796c 100644
case BFD_RELOC_32:
case BFD_RELOC_MICROBLAZE_32_LO:
diff --git a/include/elf/microblaze.h b/include/elf/microblaze.h
-index dbaa16c..7bdba67 100644
+index 830b5ad..6ee0966 100644
--- a/include/elf/microblaze.h
+++ b/include/elf/microblaze.h
@@ -61,6 +61,8 @@ START_RELOC_NUMBERS (elf_microblaze_reloc_type)
@@ -242,6 +243,3 @@ index dbaa16c..7bdba67 100644
END_RELOC_NUMBERS (R_MICROBLAZE_max)
/* Global base address names. */
---
-2.7.4
-
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 @@
-From 1bb6a80a2ae3cff3a3cc8526ec09e60f66b7cb96 Mon Sep 17 00:00:00 2001
+From 0ee164f7e50d88e1cda4fdebd6f7bd182d0f27b3 Mon Sep 17 00:00:00 2001
From: David Holsgrove <david.holsgrove@xilinx.com>
Date: Wed, 27 Feb 2013 13:56:11 +1000
-Subject: [PATCH 06/31] upstream change to garbage collection sweep causes mb
+Subject: [PATCH] upstream change to garbage collection sweep causes mb
regression
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
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elflink.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/bfd/elflink.c b/bfd/elflink.c
-index b24fb95..b316149 100644
+index e50c0e4..09d43e3 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
-@@ -6172,7 +6172,6 @@ elf_gc_sweep_symbol (struct elf_link_hash_entry *h, void *data)
+@@ -6187,7 +6187,6 @@ elf_gc_sweep_symbol (struct elf_link_hash_entry *h, void *data)
inf = (struct elf_gc_sweep_symbol_info *) data;
(*inf->hide_symbol) (inf->info, h, TRUE);
@@ -35,6 +36,3 @@ index b24fb95..b316149 100644
h->ref_regular = 0;
h->ref_regular_nonweak = 0;
}
---
-2.7.4
-
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 @@
-From 7bfa31fb09557bc33f4965cd08c865df9c67fbc4 Mon Sep 17 00:00:00 2001
+From 1367d2933de24720fa24032947f784b72b54e974 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Mon, 15 Jun 2015 16:50:30 +0530
-Subject: [PATCH 07/31] Fix bug in TLSTPREL Relocation
+Subject: [PATCH] Fix bug in TLSTPREL Relocation
Fixed the problem related to the fixup/relocations TLSTPREL.
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
big & little-endian compilers
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf32-microblaze.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
-index a377790..474bd0e 100644
+index 1c69c26..d19a6dc 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -1451,9 +1451,9 @@ microblaze_elf_relocate_section (bfd *output_bfd,
@@ -30,6 +31,3 @@ index a377790..474bd0e 100644
break;
case (int) R_MICROBLAZE_TEXTREL_64:
case (int) R_MICROBLAZE_TEXTREL_32_LO:
---
-2.7.4
-
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 @@
-From 693a9f95f2fd78b334ed9bb7265ad2f95b536a2d Mon Sep 17 00:00:00 2001
+From 57675e049d815f6fce100bd5effaea187abacf04 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Mon, 18 Jan 2016 12:28:21 +0530
-Subject: [PATCH 08/31] Added Address extension instructions
+Subject: [PATCH] Added Address extension instructions
This patch adds the support of new instructions which are required
for supporting Address extension feature.
@@ -15,13 +15,14 @@ ChangeLog:
Added new instructions
*microblaze-opcm.h (microblaze_instr): Update
Added new instructions
+
---
opcodes/microblaze-opc.h | 11 +++++++++++
opcodes/microblaze-opcm.h | 10 +++++-----
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h
-index 773dc81..292e3a4 100644
+index 865151f..330f104 100644
--- a/opcodes/microblaze-opc.h
+++ b/opcodes/microblaze-opc.h
@@ -178,8 +178,11 @@ struct op_code_struct
@@ -71,7 +72,7 @@ index 773dc81..292e3a4 100644
{"swaph", INST_TYPE_RD_R1, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x900001E2, OPCODE_MASK_H4, swaph, arithmetic_inst },
{"", 0, 0, 0, 0, 0, 0, 0, 0},
diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h
-index 7338f6a..c75f10a 100644
+index 42f3dd3..1c39dbf 100644
--- a/opcodes/microblaze-opcm.h
+++ b/opcodes/microblaze-opcm.h
@@ -33,13 +33,13 @@ enum microblaze_instr
@@ -93,6 +94,3 @@ index 7338f6a..c75f10a 100644
sbi, shi, swi, msrset, msrclr, tuqula, fadd, frsub, fmul, fdiv,
fcmp_lt, fcmp_eq, fcmp_le, fcmp_gt, fcmp_ne, fcmp_ge, fcmp_un, flt,
fint, fsqrt,
---
-2.7.4
-
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 @@
-From c96e1cac59722005484ff5051b03fcc43efd246f Mon Sep 17 00:00:00 2001
+From 98b1a76e13ad32c979208a22e5b6b7cb260426b0 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Thu, 28 Jan 2016 14:07:34 +0530
-Subject: [PATCH 09/31] fixing the MAX_OPCODES to correct value
+Subject: [PATCH] fixing the MAX_OPCODES to correct value
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
opcodes/microblaze-opc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h
-index 292e3a4..4e69f76 100644
+index 330f104..2a6b841 100644
--- a/opcodes/microblaze-opc.h
+++ b/opcodes/microblaze-opc.h
@@ -102,7 +102,7 @@
@@ -21,6 +22,3 @@ index 292e3a4..4e69f76 100644
struct op_code_struct
{
---
-2.7.4
-
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 @@
-From bcb1dcdb9349fb2f6863daf9206552916bd4149b Mon Sep 17 00:00:00 2001
+From 200359b776fbb19a1423ff4d0c46f5301af197c6 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Mon, 18 Jul 2016 12:24:28 +0530
-Subject: [PATCH 10/31] Add new bit-field instructions
+Subject: [PATCH] Add new bit-field instructions
This patches adds new bsefi and bsifi instructions.
BSEFI- The instruction shall extract a bit field from a
@@ -12,6 +12,7 @@ from a register at another position in the destination register.
The rest of the bits in the destination register shall be unchanged
Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
+
---
gas/config/tc-microblaze.c | 71 +++++++++++++++++++++++++++++++++++++++++++++-
opcodes/microblaze-dis.c | 16 +++++++++++
@@ -20,7 +21,7 @@ Signed-off-by :Nagaraju Mekala <nmekala@xilix.com>
4 files changed, 102 insertions(+), 3 deletions(-)
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index b34796c..7b42c99 100644
+index fa665b4..71bb888 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -917,7 +917,7 @@ md_assemble (char * str)
@@ -110,7 +111,7 @@ index b34796c..7b42c99 100644
if (strcmp (op_end, ""))
op_end = parse_reg (op_end + 1, &reg1); /* Get r1. */
diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c
-index 3b676d8..5101ceb 100644
+index f691740..f8aaf27 100644
--- a/opcodes/microblaze-dis.c
+++ b/opcodes/microblaze-dis.c
@@ -74,6 +74,18 @@ get_field_imm5_mbar (long instr)
@@ -144,7 +145,7 @@ index 3b676d8..5101ceb 100644
case INST_TYPE_RD:
print_func (stream, "\t%s", get_field_rd (inst));
diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h
-index 4e69f76..4bc400a 100644
+index 2a6b841..ce8ac35 100644
--- a/opcodes/microblaze-opc.h
+++ b/opcodes/microblaze-opc.h
@@ -59,6 +59,9 @@
@@ -195,7 +196,7 @@ index 4e69f76..4bc400a 100644
#endif /* MICROBLAZE_OPC */
diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h
-index c75f10a..b69e6a4 100644
+index 1c39dbf..2866269 100644
--- a/opcodes/microblaze-opcm.h
+++ b/opcodes/microblaze-opcm.h
@@ -29,7 +29,7 @@ enum microblaze_instr
@@ -225,6 +226,3 @@ index c75f10a..b69e6a4 100644
/* FSL imm mask for get, put instructions. */
#define RFSL_MASK 0x000000F
---
-2.7.4
-
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 @@
-From f61fb7af045c67c8c1c48cabecf568205d6f9637 Mon Sep 17 00:00:00 2001
+From cb65478b8ec240b372a9da7fe33875a59e89a1fe Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Mon, 10 Jul 2017 16:07:28 +0530
-Subject: [PATCH 11/31] fixing the imm bug. with relax option imm -1 is also
- getting removed this is corrected now.
+Subject: [PATCH] fixing the imm bug. with relax option imm -1 is also getting
+ removed this is corrected now.
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf32-microblaze.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
-index 474bd0e..94fa3cf 100644
+index d19a6dc..d001437 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -1869,8 +1869,7 @@ microblaze_elf_relax_section (bfd *abfd,
@@ -23,6 +24,3 @@ index 474bd0e..94fa3cf 100644
{
/* We can delete this instruction. */
sec->relax[sec->relax_count].addr = irel->r_offset;
---
-2.7.4
-
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 @@
-From ff25d91969293aeddfffc8ae6d87f3f910a69d7b Mon Sep 17 00:00:00 2001
+From 58271555959fcc3eadb1f23c8d31d793c979984b Mon Sep 17 00:00:00 2001
From: Mahesh Bodapati <mbodapat@xilinx.com>
Date: Fri, 29 Sep 2017 18:00:23 +0530
-Subject: [PATCH 12/31] [Patch,Microblaze]: fixed bug in GCC so that It will
- support .long 0U and .long 0u
+Subject: [PATCH] fixed bug in GCC so that It will support .long 0U and .long
+ 0u
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
gas/expr.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gas/expr.c b/gas/expr.c
-index 074e0b3..993aaca 100644
+index ee85bda..b502418 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -810,6 +810,15 @@ operand (expressionS *expressionP, enum expr_mode mode)
@@ -30,6 +31,3 @@ index 074e0b3..993aaca 100644
c = *input_line_pointer;
switch (c)
{
---
-2.7.4
-
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 @@
-From 85e4d02730d657ddc9ce25f3e7eccf4818bc25eb Mon Sep 17 00:00:00 2001
+From 70ba2154c2261d5a9d35a765c29acc5fdcdeea38 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Mon, 16 Oct 2017 15:44:23 +0530
-Subject: [PATCH 13/31] fixing the constant range check issue sample error: not
- in range ffffffff80000000..7fffffff, not ffffffff70000000
+Subject: [PATCH] fixing the constant range check issue sample error: not in
+ range ffffffff80000000..7fffffff, not ffffffff70000000
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
gas/config/tc-microblaze.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index 7b42c99..f1d97b9 100644
+index 71bb888..16b10d0 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -757,7 +757,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max)
@@ -22,6 +23,3 @@ index 7b42c99..f1d97b9 100644
{
as_fatal (_("operand must be absolute in range %lx..%lx, not %lx"),
(long) min, (long) max, (long) e->X_add_number);
---
-2.7.4
-
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 @@
-From 3d1e635a4223f6c0a0b938b94911740b4aa0db8f Mon Sep 17 00:00:00 2001
+From 1b8f6099c5f85d77ef666becff1c4edd0aa724ab Mon Sep 17 00:00:00 2001
From: Mahesh Bodapati <mbodapat@xilinx.com>
Date: Wed, 21 Feb 2018 12:32:02 +0530
-Subject: [PATCH 14/31] [Patch,Microblaze]: Compiler will give error messages
- in more detail for mxl-gp-opt flag..
+Subject: [PATCH] Compiler will give error messages in more detail for
+ mxl-gp-opt flag..
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
ld/ldmain.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/ld/ldmain.c b/ld/ldmain.c
-index f31eeb2..04e96ca 100644
+index 725512f..2ed413a 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
-@@ -1434,6 +1434,18 @@ reloc_overflow (struct bfd_link_info *info,
+@@ -1448,6 +1448,18 @@ reloc_overflow (struct bfd_link_info *info,
break;
case bfd_link_hash_defined:
case bfd_link_hash_defweak:
@@ -33,6 +34,3 @@ index f31eeb2..04e96ca 100644
einfo (_(" relocation truncated to fit: "
"%s against symbol `%pT' defined in %pA section in %pB"),
reloc_name, entry->root.string,
---
-2.7.4
-
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 @@
-From f548b7a7d92d8f06afee253a7faf71f5bb1cb163 Mon Sep 17 00:00:00 2001
+From e0a7cf883ed02a73fda5f7d3e131afc8f1ebe416 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Sun, 30 Sep 2018 16:28:28 +0530
-Subject: [PATCH 15/31] intial commit of MB 64-bit
+Subject: [PATCH] intial commit of MB 64-bit
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/Makefile.am | 2 +
bfd/Makefile.in | 3 +
@@ -31,10 +32,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
create mode 100644 ld/emulparams/elf64microblazeel.sh
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
-index 3f3487f..ae6bf3e 100644
+index a919155..c5fd250 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
-@@ -568,6 +568,7 @@ BFD64_BACKENDS = \
+@@ -570,6 +570,7 @@ BFD64_BACKENDS = \
elf64-riscv.lo \
elfxx-riscv.lo \
elf64-s390.lo \
@@ -42,7 +43,7 @@ index 3f3487f..ae6bf3e 100644
elf64-sparc.lo \
elf64-tilegx.lo \
elf64-x86-64.lo \
-@@ -601,6 +602,7 @@ BFD64_BACKENDS_CFILES = \
+@@ -603,6 +604,7 @@ BFD64_BACKENDS_CFILES = \
elf64-nfp.c \
elf64-ppc.c \
elf64-s390.c \
@@ -51,10 +52,10 @@ index 3f3487f..ae6bf3e 100644
elf64-tilegx.c \
elf64-x86-64.c \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
-index cc27ef0..3ba6eee 100644
+index 896df52..fd457cb 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
-@@ -992,6 +992,7 @@ BFD64_BACKENDS = \
+@@ -995,6 +995,7 @@ BFD64_BACKENDS = \
elf64-riscv.lo \
elfxx-riscv.lo \
elf64-s390.lo \
@@ -62,7 +63,7 @@ index cc27ef0..3ba6eee 100644
elf64-sparc.lo \
elf64-tilegx.lo \
elf64-x86-64.lo \
-@@ -1025,6 +1026,7 @@ BFD64_BACKENDS_CFILES = \
+@@ -1028,6 +1029,7 @@ BFD64_BACKENDS_CFILES = \
elf64-nfp.c \
elf64-ppc.c \
elf64-s390.c \
@@ -70,7 +71,7 @@ index cc27ef0..3ba6eee 100644
elf64-sparc.c \
elf64-tilegx.c \
elf64-x86-64.c \
-@@ -1489,6 +1491,7 @@ distclean-compile:
+@@ -1494,6 +1496,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-ppc.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-riscv.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-s390.Plo@am__quote@
@@ -79,10 +80,10 @@ index cc27ef0..3ba6eee 100644
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-tilegx.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64-x86-64.Plo@am__quote@
diff --git a/bfd/config.bfd b/bfd/config.bfd
-index 6391f35..cde27b4 100644
+index aef1448..8072c8a 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
-@@ -844,11 +844,15 @@ case "${targ}" in
+@@ -850,11 +850,15 @@ case "${targ}" in
microblazeel*-*)
targ_defvec=microblaze_elf32_le_vec
targ_selvecs=microblaze_elf32_vec
@@ -99,11 +100,11 @@ index 6391f35..cde27b4 100644
#ifdef BFD64
diff --git a/bfd/configure b/bfd/configure
-index 3c32a83..5934afd 100755
+index e5bde48..5bf94d5 100755
--- a/bfd/configure
+++ b/bfd/configure
-@@ -14844,6 +14844,8 @@ do
- rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
+@@ -15502,6 +15502,8 @@ do
+ rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
+ microblaze_elf64_vec) tb="$tb elf64-microblaze.lo elf64.lo $elf"; target_size=64 ;;
@@ -112,11 +113,11 @@ index 3c32a83..5934afd 100755
score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
diff --git a/bfd/configure.ac b/bfd/configure.ac
-index c6193cd..901977d 100644
+index 7cdf9c8..998a651 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
-@@ -612,6 +612,8 @@ do
- rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
+@@ -615,6 +615,8 @@ do
+ rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
+ microblaze_elf64_vec) tb="$tb elf64-microblaze.lo elf64.lo $elf"; target_size=64 ;;
@@ -125,7 +126,7 @@ index c6193cd..901977d 100644
score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
diff --git a/bfd/cpu-microblaze.c b/bfd/cpu-microblaze.c
-index 2ccf724..dd2d6ab 100644
+index 9bc2eb3..c91ba46 100644
--- a/bfd/cpu-microblaze.c
+++ b/bfd/cpu-microblaze.c
@@ -23,7 +23,24 @@
@@ -3783,10 +3784,10 @@ index 0000000..0f43ae6
+
+#include "elf64-target.h"
diff --git a/bfd/targets.c b/bfd/targets.c
-index 531703d..8ddbd39 100644
+index 158168c..ef567a3 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
-@@ -704,6 +704,8 @@ extern const bfd_target mep_elf32_le_vec;
+@@ -706,6 +706,8 @@ extern const bfd_target mep_elf32_le_vec;
extern const bfd_target metag_elf32_vec;
extern const bfd_target microblaze_elf32_vec;
extern const bfd_target microblaze_elf32_le_vec;
@@ -3795,7 +3796,7 @@ index 531703d..8ddbd39 100644
extern const bfd_target mips_ecoff_be_vec;
extern const bfd_target mips_ecoff_le_vec;
extern const bfd_target mips_ecoff_bele_vec;
-@@ -1067,6 +1069,10 @@ static const bfd_target * const _bfd_target_vector[] =
+@@ -1073,6 +1075,10 @@ static const bfd_target * const _bfd_target_vector[] =
&metag_elf32_vec,
@@ -3807,7 +3808,7 @@ index 531703d..8ddbd39 100644
&mips_ecoff_be_vec,
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index f1d97b9..eb7998f 100644
+index 16b10d0..c794347 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -35,10 +35,13 @@
@@ -4202,7 +4203,7 @@ index f1d97b9..eb7998f 100644
diff --git a/gas/config/tc-microblaze.h b/gas/config/tc-microblaze.h
-index 1263f57..7a991ae 100644
+index ca9dbb8..9d38d2c 100644
--- a/gas/config/tc-microblaze.h
+++ b/gas/config/tc-microblaze.h
@@ -78,7 +78,9 @@ extern const struct relax_type md_relax_table[];
@@ -4217,7 +4218,7 @@ index 1263f57..7a991ae 100644
#define ELF_TC_SPECIAL_SECTIONS \
{ ".sdata", SHT_PROGBITS, SHF_ALLOC + SHF_WRITE }, \
diff --git a/include/elf/common.h b/include/elf/common.h
-index 773f378..cd2114e 100644
+index 996acf9..2f1e5be 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -339,6 +339,7 @@
@@ -4226,13 +4227,13 @@ index 773f378..cd2114e 100644
#define EM_BPF 247 /* Linux BPF – in-kernel virtual machine. */
+#define EM_MB_64 248 /* Xilinx MicroBlaze 32-bit RISC soft processor core */
#define EM_NFP 250 /* Netronome Flow Processor. */
+ #define EM_CSKY 252 /* C-SKY processor family. */
- /* If it is necessary to assign new unofficial EM_* values, please pick large
diff --git a/ld/Makefile.am b/ld/Makefile.am
-index d86ad09..f531471 100644
+index d7faf19..f7b3b97 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
-@@ -420,6 +420,8 @@ ALL_64_EMULATION_SOURCES = \
+@@ -422,6 +422,8 @@ ALL_64_EMULATION_SOURCES = \
eelf32ltsmipn32.c \
eelf32ltsmipn32_fbsd.c \
eelf32mipswindiss.c \
@@ -4241,7 +4242,7 @@ index d86ad09..f531471 100644
eelf64_aix.c \
eelf64_ia64.c \
eelf64_ia64_fbsd.c \
-@@ -1688,6 +1690,12 @@ eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \
+@@ -1702,6 +1704,12 @@ eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \
$(srcdir)/emulparams/elf_nacl.sh \
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
@@ -4255,10 +4256,10 @@ index d86ad09..f531471 100644
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
diff --git a/ld/Makefile.in b/ld/Makefile.in
-index 4792b2b..1f75a81 100644
+index 8b14f52..ffc9a3e 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
-@@ -905,6 +905,8 @@ ALL_64_EMULATION_SOURCES = \
+@@ -907,6 +907,8 @@ ALL_64_EMULATION_SOURCES = \
eelf32ltsmipn32.c \
eelf32ltsmipn32_fbsd.c \
eelf32mipswindiss.c \
@@ -4267,7 +4268,7 @@ index 4792b2b..1f75a81 100644
eelf64_aix.c \
eelf64_ia64.c \
eelf64_ia64_fbsd.c \
-@@ -1350,6 +1352,8 @@ distclean-compile:
+@@ -1355,6 +1357,8 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32xc16xs.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32xstormy16.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32xtensa.Po@am__quote@
@@ -4276,7 +4277,7 @@ index 4792b2b..1f75a81 100644
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64_aix.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64_ia64.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64_ia64_fbsd.Po@am__quote@
-@@ -3289,6 +3293,12 @@ eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \
+@@ -3306,6 +3310,12 @@ eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \
$(srcdir)/emulparams/elf_nacl.sh \
$(ELF_X86_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
@@ -4290,10 +4291,10 @@ index 4792b2b..1f75a81 100644
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
diff --git a/ld/configure.tgt b/ld/configure.tgt
-index fad8b2e..25615ea 100644
+index 1e37d74..42f106d 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
-@@ -419,6 +419,9 @@ microblaze*-linux*) targ_emul="elf32mb_linux"
+@@ -424,6 +424,9 @@ microblaze*-linux*) targ_emul="elf32mb_linux"
microblazeel*) targ_emul=elf32microblazeel
targ_extra_emuls=elf32microblaze
;;
@@ -4362,7 +4363,7 @@ index 0000000..9c7b0eb
+TEMPLATE_NAME=elf32
+#GENERATE_SHLIB_SCRIPT=yes
diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c
-index 5101ceb..09757d1 100644
+index f8aaf27..20ea6a8 100644
--- a/opcodes/microblaze-dis.c
+++ b/opcodes/microblaze-dis.c
@@ -33,6 +33,7 @@
@@ -4456,7 +4457,7 @@ index 5101ceb..09757d1 100644
case INST_TYPE_RD:
print_func (stream, "\t%s", get_field_rd (inst));
diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h
-index 4bc400a..c88092d 100644
+index ce8ac35..985834b 100644
--- a/opcodes/microblaze-opc.h
+++ b/opcodes/microblaze-opc.h
@@ -40,7 +40,7 @@
@@ -4684,7 +4685,7 @@ index 4bc400a..c88092d 100644
#endif /* MICROBLAZE_OPC */
diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h
-index b69e6a4..265cea8 100644
+index 2866269..076dbcd 100644
--- a/opcodes/microblaze-opcm.h
+++ b/opcodes/microblaze-opcm.h
@@ -25,6 +25,7 @@
@@ -4735,6 +4736,3 @@ index b69e6a4..265cea8 100644
/* FSL imm mask for get, put instructions. */
#define RFSL_MASK 0x000000F
---
-2.7.4
-
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 @@
-From 05240f6bdb5e3789efdc03b90c073b78785268e4 Mon Sep 17 00:00:00 2001
+From 549bf1fafb7dfa2718e172a94ff68acb14320ed8 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Sun, 30 Sep 2018 16:31:26 +0530
-Subject: [PATCH 16/31] MB-X initial commit code cleanup is needed.
+Subject: [PATCH] MB-X initial commit code cleanup is needed.
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/bfd-in2.h | 10 +++
bfd/elf32-microblaze.c | 65 +++++++++++++++++--
@@ -18,10 +19,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
9 files changed, 277 insertions(+), 35 deletions(-)
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
-index 5807f70..44cddc2 100644
+index fe6933a..90645d1 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
-@@ -5801,11 +5801,21 @@ done here - only used for relaxing */
+@@ -5878,11 +5878,21 @@ done here - only used for relaxing */
BFD_RELOC_MICROBLAZE_64_NONE,
/* This is a 64 bit reloc that stores the 32 bit pc relative
@@ -44,7 +45,7 @@ index 5807f70..44cddc2 100644
GOT offset */
BFD_RELOC_MICROBLAZE_64_GOT,
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
-index 94fa3cf..b632dd1 100644
+index d001437..035e71f 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -116,6 +116,20 @@ static reloc_howto_type microblaze_elf_howto_raw[] =
@@ -268,10 +269,10 @@ index 0f43ae6..56a45f2 100644
case R_MICROBLAZE_32_NONE:
{
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
-index 261086c..d7892a6 100644
+index feb9fad..450653f 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
-@@ -2864,7 +2864,9 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
+@@ -2903,7 +2903,9 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM",
"BFD_RELOC_MICROBLAZE_32_NONE",
"BFD_RELOC_MICROBLAZE_64_NONE",
@@ -282,10 +283,10 @@ index 261086c..d7892a6 100644
"BFD_RELOC_MICROBLAZE_64_PLT",
"BFD_RELOC_MICROBLAZE_64_GOTOFF",
diff --git a/bfd/reloc.c b/bfd/reloc.c
-index d89bc5d..60eac77 100644
+index 87753ae..ccf29f5 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
-@@ -6873,6 +6873,12 @@ ENUMDOC
+@@ -6804,6 +6804,12 @@ ENUMDOC
ENUM
BFD_RELOC_MICROBLAZE_64_NONE
ENUMDOC
@@ -298,7 +299,7 @@ index d89bc5d..60eac77 100644
This is a 64 bit reloc that stores the 32 bit pc relative
value in two words (with an imm instruction). No relocation is
done here - only used for relaxing
-@@ -6880,6 +6886,12 @@ ENUM
+@@ -6811,6 +6817,12 @@ ENUM
BFD_RELOC_MICROBLAZE_64_GOTPC
ENUMDOC
This is a 64 bit reloc that stores the 32 bit pc relative
@@ -312,7 +313,7 @@ index d89bc5d..60eac77 100644
PC-relative GOT offset
ENUM
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index eb7998f..680a794 100644
+index c794347..3f90b7c 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -94,6 +94,7 @@ const char FLT_CHARS[] = "rRsSfFdDxXpP";
@@ -647,7 +648,7 @@ index eb7998f..680a794 100644
default:
as_bad (_("unsupported BFD relocation size %u"), size);
diff --git a/include/elf/microblaze.h b/include/elf/microblaze.h
-index 7bdba67..454e2b4 100644
+index 6ee0966..16b2736 100644
--- a/include/elf/microblaze.h
+++ b/include/elf/microblaze.h
@@ -62,6 +62,8 @@ START_RELOC_NUMBERS (elf_microblaze_reloc_type)
@@ -660,7 +661,7 @@ index 7bdba67..454e2b4 100644
END_RELOC_NUMBERS (R_MICROBLAZE_max)
diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h
-index c88092d..8d43af0 100644
+index 985834b..9b6264b 100644
--- a/opcodes/microblaze-opc.h
+++ b/opcodes/microblaze-opc.h
@@ -538,8 +538,8 @@ struct op_code_struct
@@ -675,7 +676,7 @@ index c88092d..8d43af0 100644
{"dadd", INST_TYPE_RD_R1_R2, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x58000400, OPCODE_MASK_H4, dadd, arithmetic_inst },
{"drsub", INST_TYPE_RD_R1_R2, INST_NO_OFFSET, NO_DELAY_SLOT, IMMVAL_MASK_NON_SPECIAL, 0x58000480, OPCODE_MASK_H4, drsub, arithmetic_inst },
diff --git a/opcodes/microblaze-opcm.h b/opcodes/microblaze-opcm.h
-index 265cea8..abb5c9f 100644
+index 076dbcd..5f2e190 100644
--- a/opcodes/microblaze-opcm.h
+++ b/opcodes/microblaze-opcm.h
@@ -40,8 +40,8 @@ enum microblaze_instr
@@ -689,6 +690,3 @@ index 265cea8..abb5c9f 100644
fcmp_lt, fcmp_eq, fcmp_le, fcmp_gt, fcmp_ne, fcmp_ge, fcmp_un, flt,
fint, fsqrt,
tget, tcget, tnget, tncget, tput, tcput, tnput, tncput,
---
-2.7.4
-
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 @@
-From 7df271f0025a39dc7b9f21e122d69a6f81a44af2 Mon Sep 17 00:00:00 2001
+From 3735a1bb6174f15bde23dd2767675b49c9e8712f Mon Sep 17 00:00:00 2001
From: Mahesh Bodapati <mbodapat@xilinx.com>
Date: Tue, 11 Sep 2018 13:48:33 +0530
-Subject: [PATCH 17/31] [Patch,Microblaze] : negl instruction is overriding
- rsubl,fixed it by changing the instruction order...
+Subject: [PATCH] negl instruction is overriding rsubl,fixed it by changing the
+ instruction order...
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
opcodes/microblaze-opc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h
-index 8d43af0..2096269 100644
+index 9b6264b..824afc0 100644
--- a/opcodes/microblaze-opc.h
+++ b/opcodes/microblaze-opc.h
@@ -275,9 +275,7 @@ struct op_code_struct
@@ -33,6 +34,3 @@ index 8d43af0..2096269 100644
{"", 0, 0, 0, 0, 0, 0, 0, 0},
};
---
-2.7.4
-
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 @@
-From a1961dbfa4324335116f84494396ce9801688f18 Mon Sep 17 00:00:00 2001
+From 6b6c4a67212ced3fe1593fb173cfc4bce8d7f922 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Tue, 11 Sep 2018 17:30:17 +0530
-Subject: [PATCH 18/31] Added relocations for MB-X
+Subject: [PATCH] Added relocations for MB-X
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/bfd-in2.h | 11 ++++--
bfd/libbfd.h | 4 +--
@@ -13,10 +14,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
4 files changed, 62 insertions(+), 69 deletions(-)
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
-index 44cddc2..44e719b 100644
+index 90645d1..f74aac1 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
-@@ -5796,16 +5796,21 @@ done here - only used for relaxing */
+@@ -5873,16 +5873,21 @@ done here - only used for relaxing */
BFD_RELOC_MICROBLAZE_32_NONE,
/* This is a 64 bit reloc that stores the 32 bit pc relative
@@ -42,10 +43,10 @@ index 44cddc2..44e719b 100644
PC-relative GOT offset */
BFD_RELOC_MICROBLAZE_64_GOTPC,
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
-index d7892a6..bb8fb42 100644
+index 450653f..d87a183 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
-@@ -2864,14 +2864,14 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
+@@ -2903,14 +2903,14 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_MICROBLAZE_32_SYM_OP_SYM",
"BFD_RELOC_MICROBLAZE_32_NONE",
"BFD_RELOC_MICROBLAZE_64_NONE",
@@ -63,10 +64,10 @@ index d7892a6..bb8fb42 100644
"BFD_RELOC_MICROBLAZE_64_TLSGD",
"BFD_RELOC_MICROBLAZE_64_TLSLD",
diff --git a/bfd/reloc.c b/bfd/reloc.c
-index 60eac77..2d73154 100644
+index ccf29f5..861f2d4 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
-@@ -6873,12 +6873,6 @@ ENUMDOC
+@@ -6804,12 +6804,6 @@ ENUMDOC
ENUM
BFD_RELOC_MICROBLAZE_64_NONE
ENUMDOC
@@ -79,7 +80,7 @@ index 60eac77..2d73154 100644
This is a 64 bit reloc that stores the 32 bit pc relative
value in two words (with an imm instruction). No relocation is
done here - only used for relaxing
-@@ -6886,12 +6880,6 @@ ENUM
+@@ -6817,12 +6811,6 @@ ENUM
BFD_RELOC_MICROBLAZE_64_GOTPC
ENUMDOC
This is a 64 bit reloc that stores the 32 bit pc relative
@@ -92,7 +93,7 @@ index 60eac77..2d73154 100644
value in two words (with an imm instruction). The relocation is
PC-relative GOT offset
ENUM
-@@ -6975,6 +6963,20 @@ ENUMDOC
+@@ -6906,6 +6894,20 @@ ENUMDOC
value in two words (with an imm instruction). The relocation is
relative offset from start of TEXT.
@@ -114,7 +115,7 @@ index 60eac77..2d73154 100644
BFD_RELOC_AARCH64_RELOC_START
ENUMDOC
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index 680a794..663e1a6 100644
+index 3f90b7c..587a4d5 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -95,6 +95,7 @@ const char FLT_CHARS[] = "rRsSfFdDxXpP";
@@ -345,6 +346,3 @@ index 680a794..663e1a6 100644
case BFD_RELOC_MICROBLAZE_64_GOT:
case BFD_RELOC_MICROBLAZE_64_PLT:
case BFD_RELOC_MICROBLAZE_64_GOTOFF:
---
-2.7.4
-
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 @@
-From b63b8ae83cc538808e06d84143df6b7150fb4037 Mon Sep 17 00:00:00 2001
+From 616031595c692c2181c3b1ce8c08678b68b2fe4e Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Fri, 28 Sep 2018 12:04:55 +0530
-Subject: [PATCH 19/31] -Fixed MB-x relocation issues -Added imml for required
- MB-x instructions
+Subject: [PATCH] -Fixed MB-x relocation issues -Added imml for required MB-x
+ instructions
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf64-microblaze.c | 68 ++++++++++++++++----
gas/config/tc-microblaze.c | 152 ++++++++++++++++++++++++++++++++-------------
@@ -115,7 +116,7 @@ index 56a45f2..54a2461 100644
instr_lo &= ~0x0000ffff;
instr_lo |= (val & 0x0000ffff);
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index 663e1a6..8d2980a 100644
+index 587a4d5..fa437b6 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -392,7 +392,7 @@ microblaze_s_weakext (int ignore ATTRIBUTE_UNUSED)
@@ -358,7 +359,7 @@ index 663e1a6..8d2980a 100644
default:
return 0;
diff --git a/gas/tc.h b/gas/tc.h
-index beddb48..96c7559 100644
+index 0a50a69..529a73b 100644
--- a/gas/tc.h
+++ b/gas/tc.h
@@ -22,7 +22,7 @@
@@ -370,6 +371,3 @@ index beddb48..96c7559 100644
const char * md_atof (int, char *, int *);
int md_parse_option (int, const char *);
---
-2.7.4
-
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 @@
-From fc9704bdb0c74f34a77346c0283f2e05440d68ec Mon Sep 17 00:00:00 2001
+From 05cac23e0cdb94705c87cf9d94ffe00e7cba53f6 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Sun, 30 Sep 2018 17:06:58 +0530
-Subject: [PATCH 20/31] Fixing the branch related issues
+Subject: [PATCH] Fixing the branch related issues
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf64-microblaze.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -22,6 +23,3 @@ index 54a2461..e9b3cf3 100644
}
switch (r_type)
---
-2.7.4
-
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 @@
-From 380ad65a2bdb42749c22783f53f4b2263721a2ca Mon Sep 17 00:00:00 2001
+From 8b98898add56667d28b7d6242c86603bb2f5946e Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Tue, 9 Oct 2018 10:14:22 +0530
-Subject: [PATCH 21/31] - Fixed address computation issues with 64bit address -
- Fixed imml dissassamble issue
+Subject: [PATCH] - Fixed address computation issues with 64bit address - Fixed
+ imml dissassamble issue
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/bfd-in2.h | 5 ++++
bfd/elf64-microblaze.c | 14 ++++-----
@@ -14,10 +15,10 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
4 files changed, 79 insertions(+), 16 deletions(-)
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
-index 44e719b..a35e51d 100644
+index f74aac1..434b41c 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
-@@ -5805,6 +5805,11 @@ done here - only used for relaxing */
+@@ -5882,6 +5882,11 @@ done here - only used for relaxing */
* +done here - only used for relaxing */
BFD_RELOC_MICROBLAZE_64,
@@ -83,7 +84,7 @@ index e9b3cf3..40f10aa 100644
fprintf(stderr, "%d: CORRUPT relax reloc %x %lx\n", __LINE__, val, irel->r_addend);
}
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index 8d2980a..7ff93a1 100644
+index fa437b6..46df32e 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -402,7 +402,6 @@ pseudo_typeS md_pseudo_table[] =
@@ -202,7 +203,7 @@ index 8d2980a..7ff93a1 100644
default:
as_bad (_("unsupported BFD relocation size %u"), size);
diff --git a/opcodes/microblaze-dis.c b/opcodes/microblaze-dis.c
-index 09757d1..69e11e6 100644
+index 20ea6a8..f679a43 100644
--- a/opcodes/microblaze-dis.c
+++ b/opcodes/microblaze-dis.c
@@ -61,7 +61,7 @@ get_field_imml (long instr)
@@ -214,6 +215,3 @@ index 09757d1..69e11e6 100644
return (strdup (tmpstr));
}
---
-2.7.4
-
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 @@
-From e2c399e62b6b0f1940e73024a8076c8787602b9c Mon Sep 17 00:00:00 2001
+From 3eb0c068ad5a698007341b32c82d9e7ac6cabc49 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Sat, 13 Oct 2018 21:17:01 +0530
-Subject: [PATCH 22/31] Adding new relocation to support 64bit rodata
+Subject: [PATCH] Adding new relocation to support 64bit rodata
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf64-microblaze.c | 11 +++++++++--
gas/config/tc-microblaze.c | 49 ++++++++++++++++++++++++++++++++++++++++++----
@@ -68,7 +69,7 @@ index 40f10aa..4d9b906 100644
if (h != NULL && !bfd_link_pic (info))
{
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index 7ff93a1..442f72c 100644
+index 46df32e..c6d2e4c 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -1119,6 +1119,13 @@ md_assemble (char * str)
@@ -163,6 +164,3 @@ index 7ff93a1..442f72c 100644
break;
default:
as_bad (_("unsupported BFD relocation size %u"), size);
---
-2.7.4
-
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 @@
-From 2a2298c9f32e96a71d6295e7ef52b37d834e5224 Mon Sep 17 00:00:00 2001
+From 52f6c56353aad424dfdaf713e0192f8fc9c874f4 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Wed, 24 Oct 2018 12:34:37 +0530
-Subject: [PATCH 23/31] fixing the .bss relocation issue
+Subject: [PATCH] fixing the .bss relocation issue
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf64-microblaze.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
@@ -73,6 +74,3 @@ index 4d9b906..184b7d5 100644
immediate |= (instr_lo & 0x0000ffff);
target_address = immediate;
offset = calc_fixup (target_address, 0, sec);
---
-2.7.4
-
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 @@
-From 198f2ccd054613f39bbad49b3f0dbad23036b4fc Mon Sep 17 00:00:00 2001
+From ed3e6fad3e2a626fc987e9c7477f51d03d2b4512 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Wed, 28 Nov 2018 14:00:29 +0530
-Subject: [PATCH 24/31] Fixed the bug in the R_MICROBLAZE_64_NONE relocation.
- It was adjusting only lower 16bits.
+Subject: [PATCH] Fixed the bug in the R_MICROBLAZE_64_NONE relocation. It was
+ adjusting only lower 16bits.
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf32-microblaze.c | 4 ++--
bfd/elf64-microblaze.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
-index b632dd1..ffb23d8 100644
+index 035e71f..2d8c062 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -2022,8 +2022,8 @@ microblaze_elf_relax_section (bfd *abfd,
@@ -41,6 +42,3 @@ index 184b7d5..ef6a870 100644
}
break;
}
---
-2.7.4
-
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 @@
-From 597ab75895c106c673db0e7a2adfac2f2350c2ec Mon Sep 17 00:00:00 2001
+From b8bd638f71649980e114548d8eeecba34683af42 Mon Sep 17 00:00:00 2001
From: Mahesh Bodapati <mbodapat@xilinx.com>
Date: Sun, 2 Dec 2018 14:49:14 +0530
-Subject: [PATCH 25/31] [Patch,MicroBlaze]: fixed Build issue which are due to
- conflicts in patches.
+Subject: [PATCH] fixed Build issue which are due to conflicts in patches.
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf32-microblaze.c | 1 +
bfd/elf64-microblaze.c | 12 ++++++------
@@ -13,7 +13,7 @@ Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
3 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
-index ffb23d8..53924f6 100644
+index 2d8c062..6a795c5 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -1996,6 +1996,7 @@ microblaze_elf_relax_section (bfd *abfd,
@@ -50,7 +50,7 @@ index ef6a870..bed534e 100644
/* This is a reference to a symbol defined by a dynamic object which
is not a function. */
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index 442f72c..edc7985 100644
+index c6d2e4c..b3e49f0 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -118,9 +118,9 @@ const relax_typeS md_relax_table[] =
@@ -65,6 +65,3 @@ index 442f72c..edc7985 100644
{ 0x7fffffffffffffff, 0x8000000000000000, INST_WORD_SIZE*2, 0 } /* 20: DEFINED_64_PC_OFFSET. */
};
---
-2.7.4
-
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 @@
-From c0be3d2a8f0ac0c1a2ba82253c9eea99071da0a9 Mon Sep 17 00:00:00 2001
+From cbe98e5a0cbc2337bf25d6b3f9dabcae38b95952 Mon Sep 17 00:00:00 2001
From: Mahesh Bodapati <mbodapat@xilinx.com>
Date: Tue, 26 Feb 2019 17:31:41 +0530
-Subject: [PATCH 26/31] [Patch,Microblaze] : changes of "PR22458, failure to
- choose a matching ELF target" is causing "Multiple Prevailing definition
- errors",added check for best_match elf.
+Subject: [PATCH] changes of "PR22458, failure to choose a matching ELF target"
+ is causing "Multiple Prevailing definition errors",added check for best_match
+ elf.
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/format.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bfd/format.c b/bfd/format.c
-index c4afd97..4f7367d 100644
+index 97a9229..3a74cc4 100644
--- a/bfd/format.c
+++ b/bfd/format.c
@@ -292,7 +292,12 @@ bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching)
@@ -28,6 +29,3 @@ index c4afd97..4f7367d 100644
continue;
/* If we already tried a match, the bfd is modified and may
---
-2.7.4
-
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 @@
-From e267384901f94566300114b91fa251de43f7ec34 Mon Sep 17 00:00:00 2001
+From b1e425aed65150d7ce9ddb119f4b94969fe4043e Mon Sep 17 00:00:00 2001
From: Mahesh Bodapati <mbodapat@xilinx.com>
Date: Mon, 11 Mar 2019 14:23:58 +0530
-Subject: [PATCH 29/31] [Patch,Microblaze] : Binutils security check is causing
- build error for windows builds.commenting for now.
+Subject: [PATCH] Binutils security check is causing build error for windows
+ builds.commenting for now.
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
bfd/elf-attrs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c
-index 5c1b960..5285db2 100644
+index bfe135e..feb5cb3 100644
--- a/bfd/elf-attrs.c
+++ b/bfd/elf-attrs.c
@@ -440,6 +440,7 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr)
@@ -30,6 +31,3 @@ index 5c1b960..5285db2 100644
contents = (bfd_byte *) bfd_malloc (hdr->sh_size + 1);
if (!contents)
---
-2.7.4
-
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 @@
-From 0e918ef176cf14073abca83c61d3978f3fa2551e Mon Sep 17 00:00:00 2001
+From 1eec84c155aeaeead673310f83293853f01b578d Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Thu, 29 Nov 2018 17:59:25 +0530
-Subject: [PATCH 30/31] fixing the long & long long mingw toolchain issue
+Subject: [PATCH] fixing the long & long long mingw toolchain issue
Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
gas/config/tc-microblaze.c | 10 +++++-----
opcodes/microblaze-opc.h | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
-index edc7985..9db9a7f 100644
+index b3e49f0..5b506d3 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -783,7 +783,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max)
@@ -40,7 +41,7 @@ index edc7985..9db9a7f 100644
if (atp)
diff --git a/opcodes/microblaze-opc.h b/opcodes/microblaze-opc.h
-index 2096269..7df80d4 100644
+index 824afc0..d59ee0a 100644
--- a/opcodes/microblaze-opc.h
+++ b/opcodes/microblaze-opc.h
@@ -585,8 +585,8 @@ char pvr_register_prefix[] = "rpvr";
@@ -54,6 +55,3 @@ index 2096269..7df80d4 100644
#endif /* MICROBLAZE_OPC */
---
-2.7.4
-
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 @@
-From 8c08e0dfcfcb6c56576b68f235b0006c4c67fafb Mon Sep 17 00:00:00 2001
+From e28b33db95e6b71afe2eaca9d7090b3bfc20f08e Mon Sep 17 00:00:00 2001
From: Nagaraju <nmekala@xilinx.com>
Date: Wed, 20 Mar 2019 11:42:07 +0530
-Subject: [PATCH 31/31] fixing the _STACK_SIZE issue with the flto flag
+Subject: [PATCH] fixing the _STACK_SIZE issue with the flto flag
Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
+
---
ld/scripttempl/elfmicroblaze.sc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ld/scripttempl/elfmicroblaze.sc b/ld/scripttempl/elfmicroblaze.sc
-index d8f7569..1316901 100644
+index 30b9c28..6be0f4e 100644
--- a/ld/scripttempl/elfmicroblaze.sc
+++ b/ld/scripttempl/elfmicroblaze.sc
@@ -63,9 +63,9 @@ ${RELOCATING+${LIB_SEARCH_DIRS}}
${RELOCATING+ENTRY (${ENTRY})}
--_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50;
+-${RELOCATING+_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50;
-_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0;
--_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;
-+_DEF_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50;
+-_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;}
++${RELOCATING+_DEF_TEXT_START_ADDR = DEFINED(_TEXT_START_ADDR) ? _TEXT_START_ADDR : 0x50;
+_DEF_HEAP_SIZE = DEFINED(_HEAP_SIZE) ? _HEAP_SIZE : 0x0;
-+_DEF_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;
++_DEF_STACK_SIZE = DEFINED(_STACK_SIZE) ? _STACK_SIZE : 0x400;}
SECTIONS
{
@@ -34,7 +35,7 @@ index d8f7569..1316901 100644
${RELOCATING+ _ftext = .;}
.text : {
-@@ -208,7 +208,7 @@ SECTIONS
+@@ -207,7 +207,7 @@ SECTIONS
.heap : {
${RELOCATING+ _heap = .;}
${RELOCATING+ _heap_start = .;}
@@ -43,7 +44,7 @@ index d8f7569..1316901 100644
${RELOCATING+ _heap_end = .;}
}
-@@ -216,7 +216,7 @@ SECTIONS
+@@ -215,7 +215,7 @@ SECTIONS
.stack : {
${RELOCATING+ _stack_end = .;}
@@ -52,6 +53,3 @@ index d8f7569..1316901 100644
${RELOCATING+ . = ALIGN(. != 0 ? 8 : 1);}
${RELOCATING+ _stack = .;}
${RELOCATING+ _end = .;}
---
-2.7.4
-