Re: [PATCH] ld-version: fix it on Fedora

From: Maciej W. Rozycki
Date: Thu Feb 11 2016 - 08:00:42 EST


On Thu, 7 Jan 2016, Ralf Baechle wrote:

> > GNU ld version 2.25-15.fc23
> >
> > But ld-version.sh fails to parse this, so e.g. mips build fails to
> > enable VDSO, printing a warning that binutils >= 2.24 is required.
> >
> > To fix, teach ld-version to parse this format.
> >
> > Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
> > ---
> >
> > Which tree should this be merged through? Mine? MIPS?
>
> MIPS is the sole user of ld-ifversion at this time and taking this through
> the MIPS tree will avoid possible merge conflicts with James Hogan's
> pending d5ece1cb074b2c7082c9a2948ac598dd0ad40657 fix ("Fix ld-version.sh to
> handle large 3rd version part"). So I think I should take this through
> the MIPS tree.

FYI, I'm still getting a failure here, with:

$ mips64el-linux-ld --version
GNU ld (GNU Binutils) 2.20.1.20100303
[...]
$

-- so this is a plain upstream development snapshot as these have their
date appended. Can we just get rid of the subversion components beyond
the third, as I already suggested? I.e. stop on the third point and in
any case on a non-point-non-digit.

I'll post a minimal fix shortly, feel free to enhance it if needed.

Maciej