This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Adjust test for PR ld/22269
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: Binutils <binutils at sourceware dot org>, Nick Clifton <nickc at redhat dot com>
- Date: Mon, 29 Jan 2018 15:32:21 -0800
- 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> <5297707.83mYOaAhix@polaris>
On Mon, Jan 29, 2018 at 3:28 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> 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...
GCC can be hardcoded to only use the installed assembler/linker. It makes
-B.../ ineffective.
--
H.J.