This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
--version output: part of the "ABI" ?
- From: Mike Frysinger <vapier at gentoo dot org>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 11 May 2009 21:32:49 -0400
- Subject: --version output: part of the "ABI" ?
it isnt uncommon for packages to parse the version output of GNU packages.
typically they take the format:
<program name> (<project name>) <project version>
<copyright/license notices>
so here is `head -n1` of ls, makeinfo, ld, and gcc:
ls (GNU coreutils) 7.4
makeinfo (GNU texinfo) 4.13
GNU ld (Linux/GNU Binutils) 2.19.51.0.4.20090418
gcc (Gentoo 4.3.3-r2) 4.3.3
binutils, gcc, and glibc expect this kind of thing when detecting GNU tool
versions. gold however uses a different format:
GNU gold (GNU Binutils 2.19.51.20090510) 1.9
which causes things like glibc to fall over because it finds "1.9" instead of
"2.19.xxx". as such, i think the gold version output should be changed to
something like:
GNU gold (GNU Binutils 1.9) 2.19.51.20090510
or omit the 1.9 completely ...
-mike