Re: binutils: s390x: fails to link systemd binaries using LTO
Aurelien Jarno <[email protected]>
| Newsgroups | gmane.linux.debian.ports.s390 |
|---|---|
| Message-ID | <[email protected]> |
On 2017-06-21 00:21, Michael Biebl wrote: > Hi Aurelien > > Am 20.06.2017 um 23:56 schrieb Aurelien Jarno: > > Could you please Cc the s390x porters next time? That would make us > > notice the issue faster. > > Hm, when filing the bug report I used X-Debbugs-CC and got this > confirmation: > > As you requested using X-Debbugs-CC, your message was also forwarded to > [email protected] > > Did this not reach the correct mailing list? The mailing list is correct. That said, I don't see any track of the original email in my mbox nor on the web archive. It might also be a problem with the BTS. > > The problem is related to the fact that gold is not available on s390x. > > It seems gold is less strict than ld in having to link with each used > > library. The problem can be fully reproduced on amd64 by using ld instead > > of gold: > > > > --- a/meson.build > > +++ b/meson.build > > @@ -312,7 +312,7 @@ link_test_c = files('tools/meson-link-test.c') > > foreach arg : ['-Wl,-z,relro', > > '-Wl,-z,now', > > '-pie', > > - '-Wl,-fuse-ld=gold', > > + '-Wl,-fuse-ld=ld', > > ] > > > > have = run_command(check_compilation_sh, > > > > > > Now to come back to the problem, the test is linked against > > src/libsystemd/libsystemd.a which uses pthread_sigmask. It looks > > therefore normal to add -lpthread to link it. > > Thanks for having a look. Will forward this issue to systemd upstream > after verifying that adding -lpthread fixes the issue. Thanks. Regards, Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B [email protected] http://www.aurel32.net
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEd0YmQqnvlP0Pdxltupx4Bh3djJsFAllKAA0ACgkQupx4Bh3d jJvHxA/+N/xiftcD7IWKcf5UbBkoOw5AakSsy0Q6nkm3FqhGwPG1fUszKhwY/At1 Fdu2TbCutkT4jDIM/yn6aMooT/ZA4PUcpbBVSQ3BCc0vAdZAhtdqfs04f5JT7Q4N 77UZM6qGfHHa8PKAk2bjIUPsZWJmErRfg1emFxJpTmctnd7djq80oDj8twr3xWq9 +uyARinPlmx6eeZ2+NxEnxyY1NKvgSlgqZUrqbvZVP5m8SrC9hzti1M20S2FGA7E 9otwcfrcLQawpkY1l20JEmNl7U3IG7cUna1pAwwtDpXnqurmwcXoNuh9TdoO9xNc wxewZ/i5VsfGT9H6gdVdtfUGzUZxBOSRTn2+22JAl2zDSKtsEXb8u1/TwphgwzW7 zNeB3wuUSpE3cbK/dsFab+1x3qMOV5llybK6Iu/52ShcXUfaPMR5SJIm1K2lBaUr vGenGlFwkM+YJaz4mX7VMRGCiwSnsO7IUjsWJKNIdx0fieQrXLE0p4U+F3wEluhF GoNsdbXEKv3/V2fU3noI8SvMntrCw2pftVsNK08shB4yvU4S/2NanHKLTMEp3lvZ /fEFI/TyEMcyrjw50eSRpsRW+xiDuFDGuE62ID/n00EVqc1qlDLOeUJxgeSUOzEA 9H19L5Aw4MNCowEnyrN4d5D8gIzB+18h7YUJaejzN+bstzkpcDU= =L6Um -----END PGP SIGNATURE-----