ar breaking with "No error"
Ian Lance Taylor
iant@google.com
Tue Apr 14 14:28:00 GMT 2009
Arnd-Hendrik Mathias <arnd-hendrik.mathias@nefkom.net> writes:
> could anyone explain me what the code section below, cited from
> binutils-2.19.1/binutils/ar.c line 713 (in function open_inarch) is
> about?
Don't get confused by the test on __GO32__ and the comment. What the
code is really doing is this:
if (stat (archive_filename, &sbuf) != 0)
{
if (errno != ENOENT)
bfd_fatal (archive_filename);
}
That looks reasonable and correct to me.
> I encounter the problem, that using my newly built binutils ar
> like this
>
> .../x86_64-temp-linux-gnu-ar rc my.a my.o
>
> generates this output.
> .../x86_64-temp-linux-gnu-ar: my.a: No error
>
> while aborting.
Why is stat returning a non-zero value with errno set to zero?
Ian
More information about the Binutils
mailing list