[Bug 1142709] New: -flto breaks function wrapping
http://bugzilla.suse.com/show_bug.cgi?id=1142709 Bug ID: 1142709 Summary: -flto breaks function wrapping Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: mardnh@gmx.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Function wrapping is broken with -flto e.g. package osmo-sgsn https://build.opensuse.org/package/show/openSUSE:Factory/osmo-sgsn ---snip--- [ 20s] make[3]: Entering directory '/home/abuild/rpmbuild/BUILD/osmo-sgsn-1.4.0.29/tests/gbproxy' [ 20s] CC gbproxy_test.o [ 20s] CCLD gbproxy_test [ 22s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /tmp/gbproxy_test.Vzl0RE.ltrans0.ltrans.o: in function `gbproxy_make_sgsn_tlli': [ 22s] /home/abuild/rpmbuild/BUILD/osmo-sgsn-1.4.0.29/tests/gbproxy/gb_proxy.c:278: undefined reference to `__wrap_osmo_get_rand_id' [ 22s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /tmp/gbproxy_test.Vzl0RE.ltrans0.ltrans.o: in function `gbprox_process_bssgp_dl.constprop.0': [ 22s] /home/abuild/rpmbuild/BUILD/osmo-sgsn-1.4.0.29/tests/gbproxy/gb_proxy.c:240: undefined reference to `__wrap_osmo_get_rand_id' [ 22s] collect2: error: ld returned 1 exit status [ 22s] make[3]: *** [Makefile:437: gbproxy_test] Error 1 ---snip--- Also see: https://osmocom.org/issues/4116 It also seems to be a known issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88643 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1142709
Martin Hauke
http://bugzilla.suse.com/show_bug.cgi?id=1142709
Alynx Zhou
http://bugzilla.suse.com/show_bug.cgi?id=1142709
http://bugzilla.suse.com/show_bug.cgi?id=1142709#c1
Richard Biener
participants (1)
-
bugzilla_noreply@novell.com