This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PR ld/3351 tests vs incomplete C compiler environment
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Roland McGrath <mcgrathr at google dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 3 Jul 2012 09:50:35 -0700
- Subject: Re: PR ld/3351 tests vs incomplete C compiler environment
- References: <x57jy5n0eqz2.fsf@frobland.mtv.corp.google.com>
On Tue, Jul 3, 2012 at 9:42 AM, Roland McGrath <mcgrathr@google.com> wrote:
> The new tests you added make the ld testsuite depend on being able to
> compile and link C programs. Heretofore I've been happily running the
> testsuite in my situation where there is a partly-working C compiler for
> the target, but not enough of an environment for it to link successfully
> (missing libraries and such).
>
> Is it possible to reformulate these tests so that they rely only on the
> tools in binutils itself, as is the case with most of the tests?
>
> If using the C compiler is really necessary, then that is not so bad by
> itself. But trying to use the compiler driver to link, and thus relying on
> target libraries being present (and complete) is a big burden.
>
indirect.exp has 2 parts: link-time tests and run-time tests.
run-time tests use the outputs from link-time tests. That is
why C compiler is used on link-time tests.
--
H.J.