blob: 2b30c467041d47ada610392d526c9b0b606a8e03 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001From dac72d809be9faf9380b181df0c19a2c6d744c54 Mon Sep 17 00:00:00 2001
2From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
3Date: Mon, 28 Aug 2017 19:53:54 -0700
4Subject: [PATCH] Disable the warning message for eh_frame_hdr
5
6Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
7Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
8Upstream-Status: Inappropriate [workaround]
9
10---
11 bfd/elf-eh-frame.c | 9 ++++++---
12 1 file changed, 6 insertions(+), 3 deletions(-)
13
14diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
15index 95697c4..704121d 100644
16--- a/bfd/elf-eh-frame.c
17+++ b/bfd/elf-eh-frame.c
18@@ -1042,10 +1042,13 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info,
19 goto success;
20
21 free_no_table:
22- (*info->callbacks->einfo)
23+ /* FIXME: Remove the microblaze specifics when relaxing gets fixed. */
24+ if (bfd_get_arch(abfd) != bfd_arch_microblaze) {
25 /* xgettext:c-format */
26- (_("%P: error in %B(%A); no .eh_frame_hdr table will be created.\n"),
27- abfd, sec);
28+ (*info->callbacks->einfo)
29+ (_("%P: error in %B(%A); no .eh_frame_hdr table will be created.\n"),
30+ abfd, sec);
31+ }
32 hdr_info->u.dwarf.table = FALSE;
33 if (sec_info)
34 free (sec_info);