On Thu, 2009-12-31 at 17:46 +0000, Pedro Alves wrote:
> and forgot to define the __my_image_base__ symbol.  I got this ld crash:
> 
> >gdb-head --args arm-mingw32ce-ld --shared -Bdynamic -e DllMainCRTStartup -o 
> >lib7.dll lib7.o -lcoredll

I've not been able to reproduce with the attached source and this
command :
pavilion: {2346} arm-mingw32ce-ld --shared -Bdynamic -e
DllMainCRTStartup -o lib7.dll lib7.o -lcoredll
lib7.o:lib7.c:(.text+0x74): undefined reference to `_fake'

Do you still see it ?

        Danny

-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
#include <windows.h>

BOOL WINAPI
DllMainCRTStartup (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
{
	return TRUE;
}

static char	big_buf[0x010000] = { '1' };

extern DWORD __U(__RUNTIME_PSEUDO_RELOC_LIST__);
extern DWORD __U(__RUNTIME_PSEUDO_RELOC_LIST_END__);
extern DWORD __U(_image_base__);
extern DWORD __U(_ImageBase);
extern DWORD __U(_text_start__);
extern DWORD __U(fake);

__declspec (dllexport)
int doit (void)
{
	void *p;

//	p = &__U(_image_base__);
//	p = &__U(_ImageBase);
//	p = &__U(__RUNTIME_PSEUDO_RELOC_LIST__);
	p = DllMainCRTStartup - __text_start__ - _fake;

	return (int)p;
}
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to