bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/13657] New: dlltool syntax error on LIBRARY line when usin


From: bulk88 at hotmail dot com
Subject: [Bug binutils/13657] New: dlltool syntax error on LIBRARY line when using pexports with version.dll
Date: Thu, 02 Feb 2012 22:53:05 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13657

             Bug #: 13657
           Summary: dlltool syntax error on LIBRARY line when using
                    pexports with version.dll
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


Created attachment 6194
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6194
def file that causes syntax error

I am trying to make a lib for version.dll, a MS DLL. Dlltool reports syntax
error on version.def. If I remove the library line (the first line) from
version.def and export is the first line, dlltool doesn't complain. pexports
crashes but does produce a normal to me def file. I haven't tested the
resulting lib file in both scenarios (with library line and without), but in
the syntax error scenario, the lib file is definitely broken. Using a debugger,
I traced the syntax error to inside yyparse().

C:\sources\MinGW\include>pexports -h winver.h C:/WINDOWS/system32/version.dll >
version.def

C:\sources\MinGW\include>dlltool -l libversion.a -v --def version.def
dlltool: Processing def file: version.def
dlltool: LIBRARY:  base: ffffffff
dlltool: Syntax error in def file version.def:0
dlltool: Processed def file
dlltool: Processing definitions
dlltool: Processed definitions
dlltool: Creating library file: libversion.a
dlltool: run: as   -o diajh.o diajh.s
dlltool: run: as   -o diajt.o diajt.s
dlltool: Created lib file


C:\sources\MinGW\include>dumpbin /all libversion.a | more
Microsoft (R) COFF/PE Dumper Version 7.10.6030
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file libversion.a

File Type: LIBRARY

Archive member name at 8: /
4F2B118C time/date Thu Feb 02 17:43:24 2012
       0 uid
       0 gid
       0 mode
      36 size
correct header end

    2 public symbols

       7A __libversion_a_iname
      2F2 __head_libversion_a

Archive member name at 7A: diajt.o/
4F2B118C time/date Thu Feb 02 17:43:24 2012
       0 uid
-- More  --

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]