llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.91k stars 11.52k forks source link

error: broken object file: ddraw.lib #34057

Open CyberShadow opened 6 years ago

CyberShadow commented 6 years ago
Bugzilla Link 34709
Version unspecified
OS Linux

Extended Description

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.

CyberShadow 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.