public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* LTO lto_priv duplicate symbol and the reason for it
@ 2022-03-08 21:44 Navid Rahimi
  0 siblings, 0 replies; only message in thread
From: Navid Rahimi @ 2022-03-08 21:44 UTC (permalink / raw)
  To: gcc

Hi GCC community,

I have a few questions that I am struggling to find an answer for:

a. Why does LTO generates a new symbol?
b. Why it does not replace the existing symbol, instead of creating a new one with "lto_priv.%d"  at the end of it [1]?
c. Can we assume the original symbol always will be removed? Or it is possible to have cases where we have _x_ and _x_.lto_priv.0 together in the final binary?


1. https://github.com/gcc-mirror/gcc/blob/master/gcc/lto/lto-partition.cc#L937 

Best wishes,
Navid.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-08 21:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-08 21:44 LTO lto_priv duplicate symbol and the reason for it Navid Rahimi

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).