Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | From b1e425aed65150d7ce9ddb119f4b94969fe4043e Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Mon, 11 Mar 2019 14:23:58 +0530 |
| 4 | Subject: [PATCH] Binutils security check is causing build error for windows |
| 5 | builds.commenting for now. |
| 6 | |
| 7 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
| 8 | Signed-off-by: Nagaraju Mekala <nagaraju.mekala@xilinx.com> |
| 9 | |
| 10 | --- |
| 11 | bfd/elf-attrs.c | 2 ++ |
| 12 | 1 file changed, 2 insertions(+) |
| 13 | |
| 14 | diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c |
| 15 | index 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) |