aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-04-24 04:28:38 +0000
committerAlan Modra <amodra@gmail.com>2007-04-24 04:28:38 +0000
commit64be15537dc7a4e427588885f7427eee894e529d (patch)
tree6492d903f97543200ba23a7949621e8e88fcaef0
parent4c2739571c9f6cae85bd2424db11d152f8827476 (diff)
downloadgdb-64be15537dc7a4e427588885f7427eee894e529d.zip
gdb-64be15537dc7a4e427588885f7427eee894e529d.tar.gz
gdb-64be15537dc7a4e427588885f7427eee894e529d.tar.bz2
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
eh_frame_hdr table won't be created.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf-eh-frame.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 167276e..9fc72ca 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2007-04-24 Alan Modra <amodra@bigpond.net.au>
+ * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
+ eh_frame_hdr table won't be created.
+
+2007-04-24 Alan Modra <amodra@bigpond.net.au>
+
* acinclude.m4: Include config/stdint.m4.
* configure.in: Invoke GCC_HEADER_STDINT.
* sysdep.h: Don't include ansidecl.h here.
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index acc75a8..f75e778 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)