Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame^] | 1 | From dac72d809be9faf9380b181df0c19a2c6d744c54 Mon Sep 17 00:00:00 2001 |
| 2 | From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> |
| 3 | Date: Mon, 28 Aug 2017 19:53:54 -0700 |
| 4 | Subject: [PATCH] Disable the warning message for eh_frame_hdr |
| 5 | |
| 6 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> |
| 7 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> |
| 8 | Upstream-Status: Inappropriate [workaround] |
| 9 | |
| 10 | --- |
| 11 | bfd/elf-eh-frame.c | 9 ++++++--- |
| 12 | 1 file changed, 6 insertions(+), 3 deletions(-) |
| 13 | |
| 14 | diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c |
| 15 | index 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); |