aboutsummaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-devtools/binutils/binutils/0043-Binutils-security-check-is-causing-build-error-for-w.patch
blob: 969ac2c07c3b88664d6b516e67e729fa968dc957 (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
36
37
38
39
40
41
From 27c8f7f202ea66cd0f4745ca3a77b4f33b6f5990 Mon Sep 17 00:00:00 2001
From: Mahesh Bodapati <mbodapat@xilinx.com>
Date: Mon, 11 Mar 2019 13:57:42 +0530
Subject: [PATCH 43/52] Binutils security check is causing build error for
 windows builds.commenting for now.

---
 bfd/elf-attrs.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c
index 070104c273..b135ac8f11 100644
--- a/bfd/elf-attrs.c
+++ b/bfd/elf-attrs.c
@@ -436,12 +436,15 @@ _bfd_elf_parse_attributes (bfd *abfd, Elf_Internal_Shdr * hdr)
   bfd_byte *p_end;
   bfd_vma len;
   const char *std_sec;
+#if 0
   ufile_ptr filesize;
+#endif
 
   /* PR 17512: file: 2844a11d.  */
   if (hdr->sh_size == 0)
     return;
 
+#if 0
   filesize = bfd_get_file_size (abfd);
   if (filesize != 0 && hdr->sh_size > filesize)
     {
@@ -451,6 +454,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