This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/48094] ld: warning: section has unexpectedly large size errors in objc/obj-c++ lto
- From: "iains at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 12 Feb 2012 14:43:49 +0000
- Subject: [Bug lto/48094] ld: warning: section has unexpectedly large size errors in objc/obj-c++ lto
- Auto-submitted: auto-generated
- References: <bug-48094-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48094
--- Comment #15 from Iain Sandoe <iains at gcc dot gnu.org> 2012-02-12 14:43:49 UTC ---
this var is a two element array consisting of two integer constants.
the var is marked 'preserve' (because it is read by the OBJC runtime, but not
referenced from the code).
we get one instance of the var per input object file to LTO.
we would like one instance in the output (assuming that the values are really
identical).
so, if we:
mark the section as SECTION_MERGE
mark the decl as TREE_READONLY
would we reasonably expect lto to merge them?
if that is not enough, what additional constraints could be specified?