blob: aee0c01ef9ef468415a3b49f1718afdd77a2b460 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 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
6Upstream-Status: Inappropriate [workaround]
7
8Rebased to 2.31
9 - Error hanlder changed
10
11Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
12Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
13Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
14
15---
16 bfd/elf-eh-frame.c | 9 ++++++---
17 1 file changed, 6 insertions(+), 3 deletions(-)
18
19Index: git/bfd/elf-eh-frame.c
20===================================================================
21--- git.orig/bfd/elf-eh-frame.c
22+++ git/bfd/elf-eh-frame.c
23@@ -1042,10 +1042,13 @@ _bfd_elf_parse_eh_frame (bfd *abfd, stru
24 goto success;
25
26 free_no_table:
27- _bfd_error_handler
28+ /* FIXME: Remove the microblaze specifics when relaxing gets fixed. */
29+ if (bfd_get_arch(abfd) != bfd_arch_microblaze) {
30 /* xgettext:c-format */
31- (_("error in %pB(%pA); no .eh_frame_hdr table will be created"),
32- abfd, sec);
33+ _bfd_error_handler
34+ (_("error in %pB(%pA); no .eh_frame_hdr table will be created"),
35+ abfd, sec);
36+ }
37 hdr_info->u.dwarf.table = FALSE;
38 if (sec_info)
39 free (sec_info);