Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | From f54d5334afe799e15ca21c5d83097a4c81bbab7e Mon Sep 17 00:00:00 2001 |
| 2 | From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com> |
| 3 | Date: Fri, 22 Jun 2012 01:20:20 +0200 |
| 4 | Subject: [PATCH 12/16] [LOCAL]: Disable the warning message for eh_frame_hdr |
| 5 | |
| 6 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> |
| 7 | Upstream-Status: Pending |
| 8 | --- |
| 9 | bfd/elf-eh-frame.c | 9 ++++++--- |
| 10 | 1 file changed, 6 insertions(+), 3 deletions(-) |
| 11 | |
| 12 | diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c |
| 13 | index 0f0a563..7d8e047 100644 |
| 14 | --- a/bfd/elf-eh-frame.c |
| 15 | +++ b/bfd/elf-eh-frame.c |
| 16 | @@ -919,9 +919,12 @@ _bfd_elf_parse_eh_frame (bfd *abfd, struct bfd_link_info *info, |
| 17 | goto success; |
| 18 | |
| 19 | free_no_table: |
| 20 | - (*info->callbacks->einfo) |
| 21 | - (_("%P: error in %B(%A); no .eh_frame_hdr table will be created.\n"), |
| 22 | - abfd, sec); |
| 23 | + /* FIXME: Remove the microblaze specifics when relaxing gets fixed. */ |
| 24 | + if (bfd_get_arch(abfd) != bfd_arch_microblaze) { |
| 25 | + (*info->callbacks->einfo) |
| 26 | + (_("%P: error in %B(%A); no .eh_frame_hdr table will be created.\n"), |
| 27 | + abfd, sec); |
| 28 | + } |
| 29 | hdr_info->table = FALSE; |
| 30 | if (sec_info) |
| 31 | free (sec_info); |
| 32 | -- |
| 33 | 1.9.0 |
| 34 | |