Ross Burton <ross(at)burtonini(dot)com> writes:
> That's a good point. This is GCC 16.2 and binutils 2.47...
Hm. The newest Linux installation I have at hand is Fedora 44
with gcc 16.2 + binutils 2.46, and it doesn't show this behavior.
Can you check on whether gcc is invoking /usr/bin/ld? If it's
calling some other linker maybe that's the cause.
I'm suspicious in any case that there's something odd about either
your installation or your environment. I don't recall ever hearing
a similar complaint, so this linking behavior can't be common.
regards, tom lane