PR ld/3351 tests vs incomplete C compiler environment

H.J. Lu hjl.tools@gmail.com
Tue Jul 3 16:50:00 GMT 2012


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.



More information about the Binutils mailing list