Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

error: broken object file: ddraw.lib #33681

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR34709
Status NEW
Importance P normal
Reported by Vladimir Panteleev (llvm@thecybershadow.net)
Reported on 2017-09-22 20:57:48 -0700
Last modified on 2019-06-08 06:56:13 -0700
Version unspecified
Hardware PC Linux
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
lld-link can't seem to be able to link some Microsoft .lib files. One example
of this is ddraw.lib from the DirectX 7 SDK.

Upon attempting to read the file, lld prints:

error: broken object file: ddraw.lib(ddraw.dll)

and exits.

Since the ddraw.lib file is publicly available, I've mirrored it here:
https://dump.thecybershadow.net/cf12728e199866ddb654463cd555f7c7/ddraw.lib

Other examples of files that cause lld-link to fail with the same error are
dsound.dll (from the same SDK), and ltkrn_n.lib from the LeadTools SDK.
Quuxplusone commented 5 years ago

LLD 8.0.0 now prints:

lld-link: error: ddraw.lib(DDRAW.dll): .idata$4 should not refer to special section 0

Linking still fails.