public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Defining something as constant for linking purposes only
@ 2022-03-01 11:19 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2022-03-01 11:19 UTC (permalink / raw)
  To: gcc-help

Is there a recommended way to define a data object as constant, while
preventing GCC from making any assumptions regarding the value of the
constant?

Separate compilation breaks under LTO.

This is interesting for data objects whose final value is patched into
the binary after the build has completed and the final link took place.

Thanks,
Florian


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

only message in thread, other threads:[~2022-03-01 11:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 11:19 Defining something as constant for linking purposes only Florian Weimer

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