binutils 2.9.5.0.46: IEEE support is broken in binutils because of `slashpatch'

Eli Zaretskii eliz@delorie.com
Tue Jun 20 22:28:00 GMT 2000


> From: "Alexander Aganichev" <AAganichev@hypercom.com>
> Date: Tue, 20 Jun 2000 10:03:05 +0100
> 
> I've made the changes you suggested and attach the patch to this message.
> (See attached file: dosslash.fix.diff)
[snip]
> -	filename = file + 1;
> +	filename = file + 2;
> -	    temp = program_name + 1;
> +	    temp = program_name + 2;

I think the above two changes in ar.c (and a similar change in
bucomm.c) are wrong: this code is handling the case of "d:foo", where
there's no slash or backslash in the file name, but there is a drive
letter.  In this case, the basename begins right after the colon.
However, the code later on increments `filename' and `temp', like
this:

  if (filename != (char *) NULL)
    filename++;
  else
    filename = file;

Therefore, we should set `filename' to point to the colon, not to the
character after it.


More information about the Binutils mailing list