blob: f5bf917a6cc369425e04e972f0fa7ac7efb65049 [file] [log] [blame]
Andrew Geisslera9ff2b32020-10-16 10:11:54 -05001From 25a67af22ad040f87b3c14185c338828d4e26908 Mon Sep 17 00:00:00 2001
Brad Bishop26bdd442019-08-16 17:08:17 -04002From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Mon, 11 Mar 2019 14:23:58 +0530
Andrew Geisslera9ff2b32020-10-16 10:11:54 -05004Subject: [PATCH 25/40] [Patch,Microblaze] : Binutils security check is causing
Andrew Geissler84ad7c52020-06-27 00:00:16 -05005 build error for windows builds.commenting for now.
Brad Bishop26bdd442019-08-16 17:08:17 -04006
7---
Andrew Geisslera9ff2b32020-10-16 10:11:54 -05008 bfd/elf-attrs.c | 3 +++
9 1 file changed, 3 insertions(+)
Brad Bishop26bdd442019-08-16 17:08:17 -040010
11diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c
Andrew Geisslera9ff2b32020-10-16 10:11:54 -050012index bfe135e7fbb..abf267ad42e 100644
Brad Bishop26bdd442019-08-16 17:08:17 -040013--- a/bfd/elf-attrs.c
14+++ b/bfd/elf-attrs.c
Andrew Geisslera9ff2b32020-10-16 10:11:54 -050015@@ -440,6 +440,8 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr)
Brad Bishop26bdd442019-08-16 17:08:17 -040016 /* PR 17512: file: 2844a11d. */
17 if (hdr->sh_size == 0)
18 return;
Andrew Geisslera9ff2b32020-10-16 10:11:54 -050019+
Brad Bishop26bdd442019-08-16 17:08:17 -040020+ #if 0
21 if (hdr->sh_size > bfd_get_file_size (abfd))
22 {
23 /* xgettext:c-format */
Andrew Geisslera9ff2b32020-10-16 10:11:54 -050024@@ -448,6 +450,7 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr)
Brad Bishop26bdd442019-08-16 17:08:17 -040025 bfd_set_error (bfd_error_invalid_operation);
26 return;
27 }
28+ #endif
29
30 contents = (bfd_byte *) bfd_malloc (hdr->sh_size + 1);
31 if (!contents)
Andrew Geissler84ad7c52020-06-27 00:00:16 -050032--
332.17.1
34