blob: f293f5cf6f20f11d3407d6a581b6c46804ed6efb [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From b1e425aed65150d7ce9ddb119f4b94969fe4043e Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Mon, 11 Mar 2019 14:23:58 +0530
4Subject: [PATCH] Binutils security check is causing build error for windows
5 builds.commenting for now.
6
7Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
8Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com>
9
10---
11 bfd/elf-attrs.c | 2 ++
12 1 file changed, 2 insertions(+)
13
14diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c
15index bfe135e..feb5cb3 100644
16--- a/bfd/elf-attrs.c
17+++ b/bfd/elf-attrs.c
18@@ -440,6 +440,7 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr)
19 /* PR 17512: file: 2844a11d. */
20 if (hdr->sh_size == 0)
21 return;
22+ #if 0
23 if (hdr->sh_size > bfd_get_file_size (abfd))
24 {
25 /* xgettext:c-format */
26@@ -448,6 +449,7 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr)
27 bfd_set_error (bfd_error_invalid_operation);
28 return;
29 }
30+ #endif
31
32 contents = (bfd_byte *) bfd_malloc (hdr->sh_size + 1);
33 if (!contents)