digitalmars.D.announce - coffimplib tool
- Walter Bright (6/6) Jan 02 2006 I've written a small utility that will convert import libraries in Micro...
- John C (5/11) Jan 02 2006 Thanks for this excellent tool. It converted all my Platform SDK libs,
- Walter Bright (4/17) Jan 02 2006 Yes, as there is no uuid.dll. coffimplib only recognizes import symbols ...
- J C Calvarese (9/22) Jan 02 2006 You might be able to use this to create a uuid.lib:
- Kevin (5/11) Jan 03 2006 If it's this easy to convert the format of the files why not add support...
- Walter Bright (3/20) Jan 03 2006 Because the linker is very difficult to modify (it's entirely in assembl...
- BCS (3/29) Jan 03 2006 How about a wrapper script that does that work? (Finds *.dll in the
- Martin M. Pedersen (5/7) Jan 05 2006 Why not writing a linker in D? :-)
- Todor Totev (11/14) Jan 03 2006 It worked like a charm on my small test programme.
- Walter Bright (5/13) Jan 03 2006 Great!
- Todor Totev (16/16) Jan 03 2006 It is a little offtopic but I'll ask here:
- Walter Bright (6/16) Jan 03 2006 It checks the obj files listed on the linker command line first.
- =?iso-8859-1?Q?Robert_M=2E_M=FCnch?= (8/12) Jan 30 2006 Does this tool work for non-MS files as well? I think so. So, it
- Walter Bright (4/12) Jan 31 2006 If they are import libraries in Microsoft's COFF format. Otherwise, no.
I've written a small utility that will convert import libraries in Microsoft COFF format to the OMF format used by the Digital Mars linker. This should make it much easier to keep import libraries updated with whatever the latest from Microsoft is. ftp://ftp.digitalmars.com/coffimplib.zip Consider it a beta. Let me know about any problems with it.
Jan 02 2006
"Walter Bright" <newshound digitalmars.com> wrote in message news:dpaolp$1oek$1 digitaldaemon.com...I've written a small utility that will convert import libraries in Microsoft COFF format to the OMF format used by the Digital Mars linker. This should make it much easier to keep import libraries updated with whatever the latest from Microsoft is. ftp://ftp.digitalmars.com/coffimplib.zip Consider it a beta. Let me know about any problems with it.Thanks for this excellent tool. It converted all my Platform SDK libs, except for uuid.lib, complaining "uuid.lib is not an import library". Perhaps uuid.lib is a static library?
Jan 02 2006
"John C" <johnch_atms hotmail.com> wrote in message news:dpb0oj$21fo$1 digitaldaemon.com..."Walter Bright" <newshound digitalmars.com> wrote in message news:dpaolp$1oek$1 digitaldaemon.com...Yes, as there is no uuid.dll. coffimplib only recognizes import symbols in the library, it's not a general coff object file format converter.I've written a small utility that will convert import libraries in Microsoft COFF format to the OMF format used by the Digital Mars linker. This should make it much easier to keep import libraries updated with whatever the latest from Microsoft is. ftp://ftp.digitalmars.com/coffimplib.zip Consider it a beta. Let me know about any problems with it.Thanks for this excellent tool. It converted all my Platform SDK libs, except for uuid.lib, complaining "uuid.lib is not an import library". Perhaps uuid.lib is a static library?
Jan 02 2006
In article <dpb0oj$21fo$1 digitaldaemon.com>, John C says..."Walter Bright" <newshound digitalmars.com> wrote in message news:dpaolp$1oek$1 digitaldaemon.com...You might be able to use this to create a uuid.lib: http://svn.dsource.org/projects/bindings/trunk/uuid_obj.d (binary: http://svn.dsource.org/projects/bindings/trunk/lib/uuid.lib) If you find something that I've left something out (I doubt the file is complete due to the way Microsoft is always making things more complicated), you can either let me know and I'll try to fix it or edit it in the SVN repository yourself. jcc7I've written a small utility that will convert import libraries in Microsoft COFF format to the OMF format used by the Digital Mars linker. This should make it much easier to keep import libraries updated with whatever the latest from Microsoft is. ftp://ftp.digitalmars.com/coffimplib.zip Consider it a beta. Let me know about any problems with it.Thanks for this excellent tool. It converted all my Platform SDK libs, except for uuid.lib, complaining "uuid.lib is not an import library". Perhaps uuid.lib is a static library?
Jan 02 2006
In article <dpaolp$1oek$1 digitaldaemon.com>, Walter Bright says...I've written a small utility that will convert import libraries in Microsoft COFF format to the OMF format used by the Digital Mars linker. This should make it much easier to keep import libraries updated with whatever the latest from Microsoft is. ftp://ftp.digitalmars.com/coffimplib.zip Consider it a beta. Let me know about any problems with it.If it's this easy to convert the format of the files why not add support for coff files to the linker directly and remove the need to generate the omf format files at all? This would be one less possible source of error during development.
Jan 03 2006
"Kevin" <Kevin_member pathlink.com> wrote in message news:dpdr8t$3pe$1 digitaldaemon.com...In article <dpaolp$1oek$1 digitaldaemon.com>, Walter Bright says...Because the linker is very difficult to modify (it's entirely in assembler).I've written a small utility that will convert import libraries in Microsoft COFF format to the OMF format used by the Digital Mars linker. This should make it much easier to keep import libraries updated with whatever the latest from Microsoft is. ftp://ftp.digitalmars.com/coffimplib.zip Consider it a beta. Let me know about any problems with it.If it's this easy to convert the format of the files why not add support for coff files to the linker directly and remove the need to generate the omf format files at all? This would be one less possible source of error during development.
Jan 03 2006
Walter Bright wrote:"Kevin" <Kevin_member pathlink.com> wrote in message news:dpdr8t$3pe$1 digitaldaemon.com...How about a wrapper script that does that work? (Finds *.dll in the command line, calls coffumplib, ...)In article <dpaolp$1oek$1 digitaldaemon.com>, Walter Bright says...Because the linker is very difficult to modify (it's entirely in assembler).I've written a small utility that will convert import libraries in Microsoft COFF format to the OMF format used by the Digital Mars linker. This should make it much easier to keep import libraries updated with whatever the latest from Microsoft is. ftp://ftp.digitalmars.com/coffimplib.zip Consider it a beta. Let me know about any problems with it.If it's this easy to convert the format of the files why not add support for coff files to the linker directly and remove the need to generate the omf format files at all? This would be one less possible source of error during development.
Jan 03 2006
"Walter Bright" <newshound digitalmars.com> skrev i en meddelelse news:dpei17$r05$1 digitaldaemon.com...Because the linker is very difficult to modify (it's entirely in assembler).Why not writing a linker in D? :-) Regards, Martin
Jan 05 2006
I've written a small utility that will convert import libraries in =Microsoft COFF format to the OMF format used by the Digital Mars linke=r.Consider it a beta. Let me know about any problems with it.It worked like a charm on my small test programme. I converted latest lib files from Windows Server 2003 SP1 PlatformSDK and replaced original ones from dmc. No issues and I'm using functions from kernel32/advapi32/ntdll. If someone find this valuable I can post the converted files in this = newsgroup - the archive is only 375KiB. But I'm sure that users of dmc will also = benefit from them. Thank you for the wonderful utility, Todor
Jan 03 2006
"Todor Totev" <umbra.tenebris list.ru> wrote in message news:op.s2tnq5utihwmk4 todor-1-xp.sanbolic.local...It worked like a charm on my small test programme. I converted latest lib files from Windows Server 2003 SP1 PlatformSDK and replaced original ones from dmc. No issues and I'm using functions from kernel32/advapi32/ntdll.Great!If someone find this valuable I can post the converted files in this newsgroup - the archive is only 375KiB. But I'm sure that users of dmc will also benefit from them.I'd rather you didn't, due to licensing issues. Microsoft may not allow redistribution without permission.
Jan 03 2006
It is a little offtopic but I'll ask here: It appears that functions belonging to C run-time library are implemente= d = in Windows kernel components. Particulary ntdll.dll exports symbols like = snprintf, memcpy etc which clashes with snn. I checked the documentation of optlink and it appears that it first chec= ks = for names given via command-line and than those mentioned in obj files. Am I right? Also I think that snn.lib is the CRT of Digital Mars, isn't = it? How dmd tells the linker to check for snn.lib? Regards, Todor
Jan 03 2006
"Todor Totev" <umbra.tenebris list.ru> wrote in message news:op.s2tnzsnbihwmk4 todor-1-xp.sanbolic.local...It appears that functions belonging to C run-time library are implemented in Windows kernel components. Particulary ntdll.dll exports symbols like snprintf, memcpy etc which clashes with snn. I checked the documentation of optlink and it appears that it first checks for names given via command-line and than those mentioned in obj files. Am I right?It checks the obj files listed on the linker command line first.Also I think that snn.lib is the CRT of Digital Mars, isn't it?Yes.How dmd tells the linker to check for snn.lib?See www.digitalmars.com/ctg/acrtused.html. A reference to snn.lib is embedded into the .obj file.
Jan 03 2006
On Mon, 02 Jan 2006 09:36:03 +0100, Walter Bright <newshound digitalmars.com> wrote:I've written a small utility that will convert import libraries in Microsoft COFF format to the OMF format used by the Digital Mars linker. This should make it much easier to keep import libraries updated with whatever the latest from Microsoft is.Does this tool work for non-MS files as well? I think so. So, it replaces the coff2omf tool? -- Robert M. Münch Management & IT Freelancer http://www.robertmuench.de
Jan 30 2006
"Robert M. Münch" <robert.muench robertmuench.de> wrote in message news:op.s3692dkj3b5602 news.digitalmars.com...On Mon, 02 Jan 2006 09:36:03 +0100, Walter Bright <newshound digitalmars.com> wrote:If they are import libraries in Microsoft's COFF format. Otherwise, no.I've written a small utility that will convert import libraries in Microsoft COFF format to the OMF format used by the Digital Mars linker. This should make it much easier to keep import libraries updated with whatever the latest from Microsoft is.Does this tool work for non-MS files as well?I think so. So, it replaces the coff2omf tool?For import libraries only.
Jan 31 2006