Bug 14258 - dlltool syntax error
Summary: dlltool syntax error
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-17 09:32 UTC by vanboxem.ruben
Modified: 2022-07-29 02:58 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
def file that produces a syntax error (786 bytes, application/octet-stream)
2012-06-17 09:32 UTC, vanboxem.ruben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vanboxem.ruben 2012-06-17 09:32:02 UTC
Created attachment 6451 [details]
def file that produces a syntax error

The attached file produces a dlltool syntax error:
$ dlltool -l libusbx.a -v --def libusb-1.0.def
dlltool: Processing def file: libusb-1.0.def
dlltool: Syntax error in def file libusb-1.0.def:0
dlltool: Processed def file
dlltool: Processing definitions
dlltool: Processed definitions
dlltool: Creating library file: libusbx.a
dlltool: run: as   -o dmuhh.o dmuhh.s
dlltool: run: as   -o dmuht.o dmuht.s
dlltool: Created lib file

The resulting lib file is missing exports and therefore leads to undefined references when using it.

This is with dlltool 2.22.52.20120429

Other versions of dlltool:
2.21.53-20110731
2.22 (release)

do not have this behavior and work fine.
Comment 1 Kai Tietz 2012-06-17 10:17:01 UTC
Hmm,

this syntax error is serious.  Either remove the bogus LIBRARY line from .def file, or spent to it a library-name.  One or the other way, the issue can be solved.
So IMHO this bug-report is invalid.  It shows a behavior change that a syntax-error is now detected proper.
Comment 2 Alan Modra 2022-07-29 02:58:08 UTC
Closing as per comment #1