This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Empty SONAME


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]