This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: /usr/ia64-suse-linux/bin/ld: Dwarf Error: Line offset (0) bigger than line size (0).


On Mon, May 21, 2001 at 01:19:40PM +0200, Andreas Jaeger wrote:
> 
> ============================================================
> Index: bfd/dwarf2.c
> --- bfd/dwarf2.c	2001/03/08 21:03:58	1.19
> +++ bfd/dwarf2.c	2001/05/21 11:19:03
> @@ -439,7 +439,7 @@
>  
>    if (offset > stash->dwarf_abbrev_size)

I think this ought to be >= as for the line offset check.

>      {
> -      (*_bfd_error_handler) (_("Dwarf Error: Abbrev offset (%u) bigger than abbrev size (%u)."),
> +      (*_bfd_error_handler) (_("Dwarf Error: Abbrev offset (%u) greater than abbrev size (%u)."),

Which means the message needs fixing too.

>  			     offset, stash->dwarf_abbrev_size );
>        bfd_set_error (bfd_error_bad_value);
>        return 0;
> @@ -804,7 +804,7 @@
>       below.  */
>    if (unit->line_offset >= stash->dwarf_line_size)
>      {
> -      (*_bfd_error_handler) (_("Dwarf Error: Line offset (%u) bigger than line size (%u)."),
> +      (*_bfd_error_handler) (_("Dwarf Error: Line offset (%u) greater or equal than line size (%u)."),
>  			     unit->line_offset, stash->dwarf_line_size);
>        bfd_set_error (bfd_error_bad_value);
>        return 0;

"greater than or equal to", or if you like just use ">=".

OK to install with these changes.

Alan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]