From: H.J. Lu Date: Sat, 11 Mar 2006 15:01:18 +0000 (+0000) Subject: 2006-03-11 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75a657ba49ae3a3b74b9216ba54d01538e2a0c90;p=binutils-gdb.git 2006-03-11 H.J. Lu PR ld/2443 * dwarf2.c (concat_filename): Don't issue an error if file is 0. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ac78ad60046..444a14ea0b8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2006-03-11 H.J. Lu + + PR ld/2443 + * dwarf2.c (concat_filename): Don't issue an error if file is + 0. + 2006-03-10 Paul Brook * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5. diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 5bc587183ea..ae68d188681 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -865,8 +865,10 @@ concat_filename (struct line_info_table *table, unsigned int file) if (file - 1 >= table->num_files) { - (*_bfd_error_handler) - (_("Dwarf Error: mangled line number section (bad file number).")); + /* FILE == 0 means unknown. */ + if (file) + (*_bfd_error_handler) + (_("Dwarf Error: mangled line number section (bad file number).")); return strdup (""); }