This is the mail archive of the
mailing list for the binutils project.
Re: Skip ld/lto tests if plugins is disabled for binutils?
- From: "Bin.Cheng" <amker dot cheng at gmail dot com>
- To: "Bin.Cheng" <amker dot cheng at gmail dot com>, binutils at sourceware dot org
- Date: Tue, 12 Aug 2014 10:51:56 +0800
- Subject: Re: Skip ld/lto tests if plugins is disabled for binutils?
- Authentication-results: sourceware.org; auth=none
- References: <CAHFci2_KGa344-+6LONhwukBjM7ndBNJyXz+RnLtjvMsnVWRow at mail dot gmail dot com> <20140811075538 dot GE7047 at bubble dot grove dot modra dot org> <CAHFci2_QfTSm23oWBZ0x5T1rHQSWHGvCRxT_5b1g-UpqBbgV9A at mail dot gmail dot com> <20140811125907 dot GF7047 at bubble dot grove dot modra dot org>
On Mon, Aug 11, 2014 at 8:59 PM, Alan Modra <email@example.com> wrote:
> On Mon, Aug 11, 2014 at 04:21:55PM +0800, Bin.Cheng wrote:
>> On Mon, Aug 11, 2014 at 3:55 PM, Alan Modra <firstname.lastname@example.org> wrote:
>> > On Mon, Aug 11, 2014 at 02:26:19PM +0800, Bin.Cheng wrote:
>> >> Hi,
>> >> I found there are some FAIL ld test cases with message like "sorry -
>> >> this program has been built without plugin support", and the program
>> >> in this case is ar. I think it's because I configured/built binutils
>> >> without "--enable-plugins", the question is:
>> >> should we skip these kind of tests if plugins isn't enabled?
>> > Actually the real question is why are we enabling plugins for ld
>> > but not ar?
>> Thanks Alan, is it possible for binutils to have different plugin
>> enabling for sub-programs?
> In ld/configure.ac we have:
> # Check for dlopen support and enable plugins if possible.
> AC_CHECK_FUNCS([dlopen dlsym dlclose],,[enable_plugins=no])
> # We also support plugins on Windows (MinGW).
> if test x$enable_plugins = xno ; then
> AM_CONDITIONAL([ENABLE_PLUGINS], [test x$enable_plugins = xyes])
> So ld plugin support is always enabled, even when you configure with
> --disable-plugins. That seems wrong to me.
Hi Alan, I searched around and found out that there was bug report on
this before at https://sourceware.org/bugzilla/show_bug.cgi?id=12402
It was resolved as invalid and said this is designed behavior, though
I am not convinced.
With this, the only choice is to enable-plugin for binutils?
> Alan Modra
> Australia Development Lab, IBM