This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Adjust test for PR ld/22269
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: binutils at sourceware dot org
- Cc: Nick Clifton <nickc at redhat dot com>
- Date: Tue, 30 Jan 2018 00:28:47 +0100
- Subject: Re: Adjust test for PR ld/22269
- Authentication-results: sourceware.org; auth=none
- References: <6332818.MG2PPkXIsp@polaris> <642c25f8-30de-6ce0-769c-b452ab6698da@redhat.com>
> Approved - please apply.
Thanks, done.
> > NB: it's rather confusing that run_ld_link_tests needs this tweak, but
> > neither run_ld_link_exec_tests nor run_cc_link_tests does.
>
> Is this because they use gcc to create the assembler command line ?
Yes, the 3 procedures can compile C files, but the last 2 pass -c to GCC while
the first 1 passes -S and then invoke GAS manually. The rationale for the
discrepancy is rather unclear to me...
> No. None of those three functions has any target specific code in them, and
> I would like to keep it that way.
I was rather thinking of making run_ld_link_tests behave like the other 2: if
you compile a C file, invoked gcc -c , if you assemble a S file, invoke as -c.
--
Eric Botcazou