This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: darwin LTO broken under Xcode 3.2.6/4.0
- From: Chris Lattner <clattner at apple dot com>
- To: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 12 Mar 2011 21:34:01 -0800
- Subject: Re: darwin LTO broken under Xcode 3.2.6/4.0
- References: <20110313041719.GA17752@bromo.med.uc.edu>
On Mar 12, 2011, at 8:17 PM, Jack Howarth wrote:
> With release of Xcode 3.2.6/4.0 this week, an unfortunate change was made to
> the darwin assembler which effectively breaks LTO support for darwin. The design
> of LTO on darwin was based on the fact that mach-o object files tolerated additional
> sections as long as they didin't contain symbols. With Xcode 3.2.6/4.0, the assembler
> appears to be strictly counting sections and objecting when these exceed 255. This
> breaks huge sections of the lto testsuite and prevents larger projects like xplor-nih
> to compile if Xcode 3.2.6/4.0 is installed. I am afraid that unless Apple reverts this
> change, our only recourse would be to resort to an elf object container for the lto
> sections within the mach-o files (introducing an undesired dependency on libelf for
> FSF gcc on darwin). My understanding was that the lto design did not allow the number
> of sections required in the lto files to be reduced.
Hi Jack,
Please file a bug against the apple bug tracker explaining exactly what you need to work with some example .o files.
-Chris