Skip to content

xboxkrnl: Build import library from def-file#776

Merged
mborgerson merged 1 commit into
XboxDev:masterfrom
thrimbor:xboxkrnl_lib_recreate
Jun 4, 2026
Merged

xboxkrnl: Build import library from def-file#776
mborgerson merged 1 commit into
XboxDev:masterfrom
thrimbor:xboxkrnl_lib_recreate

Conversation

@thrimbor

@thrimbor thrimbor commented Jun 4, 2026

Copy link
Copy Markdown
Member

This removes the prebuilt libxboxkrnl.lib import library, and instead uses llvm-dlltool to generate it from xboxkrnl.exe.def.

The more ideal approach would be to use llvm-lib, which has gained the ability to create import libraries from .def-files since last we experimented with this, but it generates incorrect symbol names (it doesn't add the underscore prefix to names that have an stdcall decoration suffix, which lib.exe does).
While that could and should get fixed upstream, we'd need to wait until a fixed LLVM version is sufficiently widespread, so I prefer to use llvm-dlltool for now instead, which seems to work just fine.

Fixes #119

@mborgerson
mborgerson merged commit 45b6805 into XboxDev:master Jun 4, 2026
7 checks passed
@thrimbor
thrimbor deleted the xboxkrnl_lib_recreate branch June 5, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Recreate import libs locally

2 participants