This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: buggy entry point while making dll


DJ Delorie wrote:
> 
> The problem is this:
> 
>         gcc -shared --dll mydll.o --entry DllMain -o mydll.dll
> 
> Your entry point should be DllMain@12 or _DllMain@12 (I don't remember
> if gcc adds the underscore for you or not).

OK, this works:

gcc -shared --dll mydll.o --entry _DllMain@12 -o mydll-good.dll


BUT this doesn't work, the entry point will bad: 

gcc -shared --dll mydll.o --entry _DllMain@12 -Wl,--subsystem,windows -o
mydll-bad.dll

Example atached.

	NMarci

bug2.tgz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]