diff options
author | Alan Modra <amodra@bigpond.net.au> | 2007-04-24 04:28:38 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2007-04-24 04:28:38 +0000 |
commit | e43b7ae94c6d7636cbcae32e652b8971383d05c7 (patch) | |
tree | 3848722c211adaf9f2441cd262d3e4b3da7c546f /bfd/elf-eh-frame.c | |
parent | a1779d744b9e4445b9bfba26000190f45561c5b1 (diff) | |
download | gdb-e43b7ae94c6d7636cbcae32e652b8971383d05c7.tar.gz |
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
eh_frame_hdr table won't be created.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r-- | bfd/elf-eh-frame.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index acc75a8569e..f75e7783016 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -1,5 +1,6 @@ /* .eh_frame section optimization. - Copyright 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Free Software Foundation, Inc. Written by Jakub Jelinek <jakub@redhat.com>. This file is part of BFD, the Binary File Descriptor library. @@ -786,6 +787,9 @@ _bfd_elf_discard_section_eh_frame don't create the binary search table, since it is affected by runtime relocations. */ hdr_info->table = FALSE; + (*info->callbacks->einfo) + (_("%P: fde encoding in %B(%A) prevents .eh_frame_hdr" + " table being created.\n"), abfd, sec); } ecie->usage_count++; hdr_info->fde_count++; @@ -934,6 +938,9 @@ _bfd_elf_discard_section_eh_frame return offset != sec->rawsize; free_no_table: + (*info->callbacks->einfo) + (_("%P: error in %B(%A); no .eh_frame_hdr table will be created.\n"), + abfd, sec); if (ehbuf) free (ehbuf); if (sec_info) |