This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Diagnostics for missing libraries in DSOs
- From: Andreas Schwab <schwab at suse dot de>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Binutils <binutils at sourceware dot org>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 22 Aug 2016 16:53:43 +0200
- Subject: Re: Diagnostics for missing libraries in DSOs
- Authentication-results: sourceware.org; auth=none
- References: <245e4630-8255-dddf-dfad-3071e4d78972@redhat.com>
On Aug 22 2016, Florian Weimer <fweimer@redhat.com> wrote:
> Currently, it is extremely easy to produce a DSO which links against
> compat symbols at run time: Just omit a required DSO when invoking the
> static linker. As a result, the symbol reference in the created DSO will
> lack a version, and will be bound to a compat symbol at run time:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=20489
>
> This is very difficult to diagnose properly. It can also lead to current
> binaries reintroducing historic bugs which we did not want to push on
> applications for backwards compatibility reasons.
>
> What can we do here? Can we provide a diagnostic at static link time?
ld --no-allow-shlib-undefined would turn them into errors.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."