Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
> Tom> Hence we need to make sure that version-script filtering happens
> Tom> on every ELF-based platform, not just the most popular ones. I see
> Tom> that the FreeBSD and NetBSD stanzas in Makefile.shlib also have
> Tom> "ifdef ELF_SYSTEM" portions, so probably we need to put the
> Tom> version-script stuff into those too.
> I tested adding your patch into the FreeBSD stanza and it worked for me,
> FWIW. That was on a system which still has GNU ld, but I also tried a
> test program using ld.lld and the same option and version script file
> works.
Hm. So I can reproduce the crash on NetBSD as well as OpenBSD, using
the test method I showed before ... but *not* on FreeBSD 11.0 x86_64,
even though that's certainly an ELF system. So now I'm confused again.
regards, tom lane