X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com X-Authenticated: #27081556 X-Provags-ID: V01U2FsdGVkX194olAMap148sBGIFeI95/fFl0iXa+6s6b0CYYg+S H68JwkIyEQL93P From: Juan Manuel Guerrero To: djgpp-workers AT delorie DOT com Subject: Re: dxe and gcc 4.6.1 difficulties. Date: Mon, 19 Dec 2011 11:22:05 +0100 User-Agent: KMail/1.9.10 References: <201108141841 DOT 15711 DOT juan DOT guerrero AT gmx DOT de> <4ED85600 DOT 8080400 AT iki DOT fi> In-Reply-To: <4ED85600.8080400@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201112191122.05808.juan.guerrero@gmx.de> X-Y-GMX-Trusted: 0 Reply-To: djgpp-workers AT delorie DOT com Am Freitag, 2. Dezember 2011 schrieb Andris Pavenis: > On 12/02/2011 12:28 AM, Rugxulo wrote: > > Hi, > > > > On Sun, Aug 14, 2011 at 11:41 AM, Juan Manuel Guerrero > > wrote: > >> > >> I have tried to compile the beta version of Lua using gcc 4.6.1 > >> and using DXE3 support to allow the loading of modules at runtime. > >> I get the error message below when Lua tries to load a module at runtime: > >> > >> [snip] > >> Computes the sin and cos values 0, 30, 60 and 90 degrees. > >> src/lua.exe: djgpp/libtest1.lua:13: attempt to call global 'sin_function' (a nil value) > >> stack traceback: > >> djgpp/libtest1.lua:13: in main chunk > >> [C]: in ? > >> ___register_frame_info: unresolved symbol in DXE module. > >> ___deregister_frame_info: unresolved symbol in DXE module. > >> ___register_frame_info: unresolved symbol in DXE module. > >> ___deregister_frame_info: unresolved symbol in DXE module. > >> make.exe: *** [test_djgpp] Error 1 > > It means that GCC generates some additional symbols which are later > not found. May be it is possible to avoid them by specifying > some additional GCC command line parameters. > > One can try using nm.exe and assembler output of GCC to see where > these symbols appear and can something be improved by using > different GCC command line options. > > Additionally these symbols should perhaps be searched from > the executable which loads DXE. Could something like that > possible? __register_frame_info is an empty function defined in src/libc/crt0/rfinfo.c What is the purpose of this function? I will try to let DXE to search for these symbols. Regards, Juan M. Guerrero