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, 13 Mar 2011 12:13:08 +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 #4 from Iain Sandoe <iains at gcc dot gnu.org> 2011-03-13 12:13:05 UTC ---
(In reply to comment #2)
> (a) the first is because LTO has produced two image_info instances with
> different mangled names ...
>
> e.g. L_OBJC_ImageInfo.2044 / L_OBJC_ImageInfo.2048
>
> this is visible on darwin 9 (although it does not produce an error).
This only applies when -flto is given together with the partitioning algorithm
= none.
For 1to1 or default, the instances of L_OBJC_ImageInfo are correctly combined
into a single var.
I'm not sure whether this is expected behavior (c.f. PR43038) ?