Eli Zaretskii <[email protected]> writes:
> Did you try declaring the prototype of that function with
> '__attribute__((dllexport))' when compiling the DLL, and with
> '__attribute__((dllimport)' when linking against the DLL?
No. But I think I've found a solution. I need to do like gcc and add
.def _nettle_arcfour_crypt; .scl 2; .type 32; .endef
in the assembly file. 32 is DT_FCN (see
http://www.delorie.com/djgpp/doc/coff/symtab.html). Without this, I get
T_NULL instead, and that somehow works with thatic linking but not wth
dynamic linking. Now I only have to get configure to set this up
correctly.
Some questions remain. Why didn't the other tests of functions with
assembly implementation, in particular md5-test and sha1-test, fail in
the same way?
Regards,
/Niels
--
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs