Browse Source

Detect and issue a warning message if the line number table could not be read.

ezannoni_pie-20030916-branch
Nick Clifton 23 years ago
parent
commit
14abcef98a
  1. 5
      bfd/ChangeLog
  2. 7
      bfd/coffcode.h

5
bfd/ChangeLog

@ -1,3 +1,8 @@
2003-08-03 Jeff Muizelaar <muizelaar@rogers.com>
* coffcode.h: (coff_slurp_line_table) Return with a warning
message if the line number table could not be read.
2003-08-04 Nick Clifton <nickc@redhat.com>
* elflink.h (elf_link_add_object_symbols): Prepend "warning: "

7
bfd/coffcode.h

@ -4407,6 +4407,13 @@ coff_slurp_line_table (abfd, asect)
amt = (bfd_size_type) bfd_coff_linesz (abfd) * asect->lineno_count;
native_lineno = (LINENO *) buy_and_read (abfd, asect->line_filepos, amt);
if (native_lineno == NULL)
{
(*_bfd_error_handler)
(_("%s: warning: line number table read failed"),
bfd_archive_filename (abfd));
return FALSE;
}
amt = ((bfd_size_type) asect->lineno_count + 1) * sizeof (alent);
lineno_cache = (alent *) bfd_alloc (abfd, amt);
if (lineno_cache == NULL)

Loading…
Cancel
Save