| From 8293b0cf15d4411402a2b0b50e4c532093c5d952 Mon Sep 17 00:00:00 2001 |
| From: Mahesh Bodapati <mbodapat@xilinx.com> |
| Date: Mon, 11 Mar 2019 14:23:58 +0530 |
| Subject: [PATCH 25/40] [Patch,Microblaze] : Binutils security check is causing |
| build error for windows builds.commenting for now. |
| |
| --- |
| bfd/elf-attrs.c | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c |
| index 070104c2734..8331c8759d5 100644 |
| --- a/bfd/elf-attrs.c |
| +++ b/bfd/elf-attrs.c |
| @@ -442,6 +442,7 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr) |
| if (hdr->sh_size == 0) |
| return; |
| |
| + #if 0 |
| filesize = bfd_get_file_size (abfd); |
| if (filesize != 0 && hdr->sh_size > filesize) |
| { |
| @@ -451,6 +452,7 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr) |
| bfd_set_error (bfd_error_invalid_operation); |
| return; |
| } |
| + #endif |
| |
| contents = (bfd_byte *) bfd_malloc (hdr->sh_size + 1); |
| if (!contents) |
| -- |
| 2.17.1 |
| |