[PATCH v1] LoongArch: Fix ld FAIL test cases

Alan Modra amodra@gmail.com
Thu Jul 18 23:08:01 GMT 2024


On Thu, Jul 18, 2024 at 08:12:58PM +0800, Xi Ruoyao wrote:
> On Thu, 2024-07-18 at 20:04 +0800, Lulu Cai wrote:
> 
> > > IMO we shouldn't try to support random changes performed by downstream
> > > distros.  If they must do some random changes they should patch the test
> > > suite on their own too.
> > 
> > I think so too. But I think we can try to avoid these problems. For the c library search
> > path problem, we can run the test case with gcc instead of ld. For the other problem,
> > adding --no-as-needed to the test can be consistent on all systems.
> 
> But isn't the test suite intended to test *our* ld copy?

If you are linking using the compiler, the ld testsuite machinery adds
a -B option to pick up the new ld.  See gcc_B_opt in lib/ld-lib.exp
and config/default.exp.

-- 
Alan Modra


More information about the Binutils mailing list