Brad Bishop | f6355e4 | 2020-12-08 14:30:50 -0500 | [diff] [blame^] | 1 | From 187f46b3a0d31c5b1eac0ce9ddc7c136b2d53d70 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Mon, 11 Mar 2019 13:57:42 +0530 |
| 4 | Subject: [PATCH 43/52] Binutils security check is causing build error for |
| 5 | windows builds.commenting for now. |
| 6 | |
| 7 | --- |
| 8 | bfd/elf-attrs.c | 4 +++- |
| 9 | 1 file changed, 3 insertions(+), 1 deletion(-) |
| 10 | |
| 11 | Index: gdb-9.2/bfd/elf-attrs.c |
| 12 | =================================================================== |
| 13 | --- gdb-9.2.orig/bfd/elf-attrs.c |
| 14 | +++ gdb-9.2/bfd/elf-attrs.c |
| 15 | @@ -440,7 +440,8 @@ _bfd_elf_parse_attributes (bfd *abfd, El |
| 16 | /* PR 17512: file: 2844a11d. */ |
| 17 | if (hdr->sh_size == 0) |
| 18 | return; |
| 19 | - if (hdr->sh_size > bfd_get_file_size (abfd)) |
| 20 | +#if 0 |
| 21 | +if (hdr->sh_size > bfd_get_file_size (abfd)) |
| 22 | { |
| 23 | /* xgettext:c-format */ |
| 24 | _bfd_error_handler (_("%pB: error: attribute section '%pA' too big: %#llx"), |
| 25 | @@ -448,6 +449,7 @@ _bfd_elf_parse_attributes (bfd *abfd, El |
| 26 | bfd_set_error (bfd_error_invalid_operation); |
| 27 | return; |
| 28 | } |
| 29 | +#endif |
| 30 | |
| 31 | contents = (bfd_byte *) bfd_malloc (hdr->sh_size + 1); |
| 32 | if (!contents) |