diff options
Diffstat (limited to 'meta-xilinx/meta-microblaze/recipes-devtools/binutils/binutils/0047-bfd-elf64-microblaze.c-Fix-build-failures.patch')
-rw-r--r-- | meta-xilinx/meta-microblaze/recipes-devtools/binutils/binutils/0047-bfd-elf64-microblaze.c-Fix-build-failures.patch | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/meta-xilinx/meta-microblaze/recipes-devtools/binutils/binutils/0047-bfd-elf64-microblaze.c-Fix-build-failures.patch b/meta-xilinx/meta-microblaze/recipes-devtools/binutils/binutils/0047-bfd-elf64-microblaze.c-Fix-build-failures.patch deleted file mode 100644 index 3bc5f04d9..000000000 --- a/meta-xilinx/meta-microblaze/recipes-devtools/binutils/binutils/0047-bfd-elf64-microblaze.c-Fix-build-failures.patch +++ /dev/null @@ -1,87 +0,0 @@ -From 4500a281317093e78b7029e3dcb0037e7c628347 Mon Sep 17 00:00:00 2001 -From: Mark Hatle <mark.hatle@xilinx.com> -Date: Thu, 3 Dec 2020 11:02:11 -0800 -Subject: [PATCH 47/52] bfd/elf64-microblaze.c: Fix build failures - -Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> ---- - bfd/elf64-microblaze.c | 16 ++++++++-------- - 1 file changed, 8 insertions(+), 8 deletions(-) - -diff --git a/bfd/elf64-microblaze.c b/bfd/elf64-microblaze.c -index 338f16eeee..cf84e0db4e 100644 ---- a/bfd/elf64-microblaze.c -+++ b/bfd/elf64-microblaze.c -@@ -1572,7 +1572,7 @@ microblaze_elf_relocate_section (bfd *output_bfd, - { - BFD_FAIL (); - (*_bfd_error_handler) -- (_("%B: probably compiled without -fPIC?"), -+ (_("%pB: probably compiled without -fPIC?"), - input_bfd); - bfd_set_error (bfd_error_bad_value); - return FALSE; -@@ -2691,7 +2691,7 @@ microblaze_elf_check_relocs (bfd * abfd, - /* If this is a global symbol, we count the number of - relocations we need for this symbol. */ - if (h != NULL) -- head = &h->dyn_relocs; -+ head = &((struct elf64_mb_link_hash_entry *) h)->dyn_relocs; - else - { - /* Track dynamic relocs needed for local syms too. -@@ -2911,7 +2911,7 @@ microblaze_elf_adjust_dynamic_symbol (struct bfd_link_info *info, - - /* If we didn't find any dynamic relocs in read-only sections, then - we'll be keeping the dynamic relocs and avoiding the copy reloc. */ -- if (!_bfd_elf_readonly_dynrelocs (h)) -+ if (p == NULL) - { - h->non_got_ref = 0; - return TRUE; -@@ -3096,7 +3096,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * dat) - else - h->got.offset = (bfd_vma) -1; - -- if (h->dyn_relocs == NULL) -+ if (eh->dyn_relocs == NULL) - return TRUE; - - /* In the shared -Bsymbolic case, discard space allocated for -@@ -3113,7 +3113,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * dat) - { - struct elf64_mb_dyn_relocs **pp; - -- for (pp = &h->dyn_relocs; (p = *pp) != NULL; ) -+ for (pp = &eh->dyn_relocs; (p = *pp) != NULL; ) - { - p->count -= p->pc_count; - p->pc_count = 0; -@@ -3124,7 +3124,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * dat) - } - } - else if (UNDEFWEAK_NO_DYNAMIC_RELOC (info, h)) -- h->dyn_relocs = NULL; -+ eh->dyn_relocs = NULL; - } - else - { -@@ -3154,13 +3154,13 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * dat) - goto keep; - } - -- h->dyn_relocs = NULL; -+ eh->dyn_relocs = NULL; - - keep: ; - } - - /* Finally, allocate space. */ -- for (p = h->dyn_relocs; p != NULL; p = p->next) -+ for (p = eh->dyn_relocs; p != NULL; p = p->next) - { - asection *sreloc = elf_section_data (p->sec)->sreloc; - sreloc->size += p->count * sizeof (Elf64_External_Rela); --- -2.17.1 - |