This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Empty SONAME
- From: Ulrich Drepper <drepper at gmail dot com>
- To: Ulrich Drepper <drepper at gmail dot com>, binutils at sourceware dot org
- Date: Tue, 24 Jun 2014 07:46:35 -0400
- Subject: Re: Empty SONAME
- Authentication-results: sourceware.org; auth=none
- References: <8761jrvo5z dot fsf at x240 dot local dot i-did-not-set--mail-host-address--so-tickle-me> <20140624114001 dot GS3462 at bubble dot grove dot modra dot org>
On Tue, Jun 24, 2014 at 7:40 AM, Alan Modra <amodra@gmail.com> wrote:
> I think it would be better to check for and warn about an empty string
> at "case OPTION_SONAME:", as is done for most other errors. If you do
> it that way you can actually do as your warning message says,
> ie. ignore the option, without changing comand_line.soname.
I deliberately added the check late since there might be bad wrapper
scripts which generate -soname parameters with empty strings.
Programmers might not be able to change those scripts but might
provide additional -soname parameter to compensate. Unless the empty
string is actually used a warning looks like unnecessary noise.
But this brings up one point: if a valid -soname use is followed by
one with an empty string it might be useful to not use the latter one
and just emit a warning? Opinions?