discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objc compiler not detected


From: Riccardo Mottola
Subject: Re: objc compiler not detected
Date: Wed, 09 Oct 2013 15:14:25 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21

Hi,

Wolfgang Lux wrote:
So there is a problem here. On NetBSD 6.1.2, the compiler implicitly generates a function __objc_gnu_init in the object file for config.objc.m that calls __objc_exec for all classes defined in the source file (i.e., Test in this test program). This function is recorded in the constructor section of the object file and hence should be executed before the main function. If this doesn't happen in current, then either the compiler does not generate the __objc_gnu_init function or does not mark it as a constructor, or the runtime linker on NetBSD does not execute constructor sections before the main function (which it should). For reference, I have attached the assembler file produced for config.objc on NetBSD 6.1.2. So might want to compare this with the file generated on current or just use this file instead of the one produced on current to link the config.objc executable and see if that works. Wolfgang
It was a binutils, not a compiler problem. C++ was broken too.

Gcc in NetBSD-current is 4.5.4

Riccardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]