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
On Mar 13, 2011, at 12:07 PM, Jan Hubicka wrote:
>>
>> Yes, I agree that this is a better solution. This error was put into the linker to detect some overflow conditions for part of the code that expected the section number to only be a byte. It is likely that "things worked" only out of luck before.
>
> Interesting, so there is no -ffunction-section type tricks at darwin?
Correct, darwin doesn't support that flag in a useful way. Instead, macho has a (poorly defined and understood) concept of "atoms" that the linker uses to slice things up.
-Chris
>
> Pickling everything into single section seems indeed like easiest approach here.
> The question is who will volunteer to implement it ;)
>
> Honza