[PATCH] Fix LD test FAIL: export table in executable on Cygwin

Nick Clifton nickc@redhat.com
Wed Apr 1 15:16:00 GMT 2009


Hi Dave,

> binutils/ChangeLog
> 
> 	* dlltool.c (set_dll_name_from_def):  Accept new second arg that
> 	indicates if we are building DLL or EXE, and use it to add a
> 	default suffix to the output filename when none is already present.
> 	(def_name):  Indicate we are building an EXE when calling it.
> 	(def_library):  Indicate we are building a DLL when calling it.
> 
> ld/testsuite/ChangeLog
> 
> 	* ld-cygwin/exe-export.exp:  Add "-lkernel32" when linking test exe.
> 	* ld-cygwin/testexe.c (testexe_main):  Indicate whether global_a
> 	was set to correct final value using error return status.
> 	(testexe_dummy):  Dummy function calls an import from kernel32.dll
> 	to ensure it is mapped into the process space at runtime.

Approved - please apply.

Cheers
   Nick



More information about the Binutils mailing list