[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/6643] New: cygwin LD ignores DLL extension from import def file
From: |
jafa at silicondust dot com |
Subject: |
[Bug ld/6643] New: cygwin LD ignores DLL extension from import def file |
Date: |
13 Jun 2008 03:49:59 -0000 |
Hi,
Cygwin LD seems to ignore the file extension given in a imports def file. The
resulting executable attempts to load <name>.dll even if the extension of the
DLL file is not ".dll".
For example, windows includes a DLL file called "WINSPOOL.DRV". This is a normal
DLL file that ships with windows for use by applications.
Import def file:
LIBRARY WINSPOOL.DRV
IMPORTS
ClosePrinter = WINSPOOL.ClosePrinter
DocumentPropertiesA = WINSPOOL.DocumentPropertiesA
OpenPrinterA = WINSPOOL.OpenPrinterA
This links ok but the resulting executable fails when it attempts to load
"WINSPOOL.DLL".
LD version "GNU ld (GNU Binutils) 2.18.50.20080523"
Nick
--
Summary: cygwin LD ignores DLL extension from import def file
Product: binutils
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: jafa at silicondust dot com
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=6643
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/6643] New: cygwin LD ignores DLL extension from import def file,
jafa at silicondust dot com <=