public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/48200] linking shared library with LTO results in different exported symbols
Date: Tue, 22 Mar 2011 10:17:00 -0000 [thread overview]
Message-ID: <bug-48200-4-wT627hbneP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-48200-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
CC| |hubicka at gcc dot gnu.org
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-22 10:02:24 UTC ---
Confirmed.
I think what happens is that the symver global asms get partitioned away
from the function definitions. With -flto-partition=none it works for me.
> grep pci_fill_info libpci.so.3.1.7.ltrans?.s
libpci.so.3.1.7.ltrans0.s: .symver
pci_fill_info_v30,pci_fill_info@LIBPCI_3.0
libpci.so.3.1.7.ltrans0.s: .symver
pci_fill_info_v31,pci_fill_info@@LIBPCI_3.1
libpci.so.3.1.7.ltrans1.s: call pci_fill_info_v31@PLT
libpci.so.3.1.7.ltrans1.s: .globl pci_fill_info_v31
libpci.so.3.1.7.ltrans1.s: .type pci_fill_info_v31, @function
libpci.so.3.1.7.ltrans1.s:pci_fill_info_v31:
libpci.so.3.1.7.ltrans1.s: .size pci_fill_info_v31, .-pci_fill_info_v31
libpci.so.3.1.7.ltrans1.s: .globl pci_fill_info_v30
libpci.so.3.1.7.ltrans1.s: .set pci_fill_info_v30,pci_fill_info_v31
libpci.so.3.1.7.ltrans2.s: call pci_fill_info_v31@PLT
so indeed that is what happens (-save-temps appended to the link command
produces those intermediate files).
We can't really know better (we do not parse asm strings), -flto-partition=none
is a workaround. A fix would be to not use toplevel asms, but I'm not sure
a different way for the symvers exists (maybe it's possible to do entirely
in the linker script ...).
next prev parent reply other threads:[~2011-03-22 10:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-19 2:21 [Bug lto/48200] New: " zeev.tarantov at gmail dot com
2011-03-21 13:12 ` [Bug lto/48200] " rguenth at gcc dot gnu.org
2011-03-21 18:27 ` zeev.tarantov at gmail dot com
2011-03-21 19:24 ` zeev.tarantov at gmail dot com
2011-03-22 0:14 ` zeev.tarantov at gmail dot com
2011-03-22 10:17 ` rguenth at gcc dot gnu.org [this message]
2011-03-22 10:19 ` rguenth at gcc dot gnu.org
2011-03-23 0:21 ` hubicka at ucw dot cz
2011-03-23 10:17 ` rguenth at gcc dot gnu.org
2011-03-23 13:25 ` hubicka at ucw dot cz
2014-06-16 14:28 ` khimov at altell dot ru
2014-08-05 7:19 ` amodra at gmail dot com
2020-04-15 12:46 ` [Bug lto/48200] Implement function attribute for symbol versioning (.symver) mark at gcc dot gnu.org
2020-05-06 13:45 ` hubicka at gcc dot gnu.org
2021-01-04 9:41 ` mark at gcc dot gnu.org
2021-08-30 4:35 ` pinskia at gcc dot gnu.org
2021-08-30 4:37 ` pinskia at gcc dot gnu.org
2022-01-09 0:37 ` pinskia at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-48200-4-wT627hbneP@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).