[PATCH] ld: Compile 2 CTF tests with -O2
Nick Alcock
nick.alcock@oracle.com
Mon Jul 25 16:16:28 GMT 2022
On 22 Jul 2022, H. J. Lu via Binutils stated:
> When GCC 12 is used to build binutils with -O0, the following 2 tests
> failed:
>
> FAIL: Conflicted data syms, partially indexed, stripped, with variables
> FAIL: Conflicted data syms, partially indexed, stripped
>
> Compile 2 tests with -O2 to avoid test failures.
Ack, that works fine. I honestly didn't think that anyone would have
tried a -O0 compilation. I'm a bit surprised it depends on optimization
levels, though -- maybe the result has *too many* types and the
comparisons fail as a result?
Still, -O2 is a valid fix and doesn't stop the test checking what it's
supposed to, so go for it.
More information about the Binutils
mailing list