blob: dd7bf088a9f99e26a016bc81afc7e1e944175652 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
From e267384901f94566300114b91fa251de43f7ec34 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.
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
--- a/bfd/elf-attrs.c
+++ b/bfd/elf-attrs.c
@@ -440,6 +440,7 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr)
/* PR 17512: file: 2844a11d. */
if (hdr->sh_size == 0)
return;
+ #if 0
if (hdr->sh_size > bfd_get_file_size (abfd))
{
/* xgettext:c-format */
@@ -448,6 +449,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.7.4
|