Adjust test for PR ld/22269
Mon Jan 29 23:32:00 GMT 2018
> Approved - please apply.
> > 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.
More information about the Binutils