Skip to content

Add the ability to create PE import libraries - #15

Merged
bjorn3 merged 1 commit into
rust-lang:masterfrom
dpaoliello:importlib
Jul 25, 2024
Merged

Add the ability to create PE import libraries#15
bjorn3 merged 1 commit into
rust-lang:masterfrom
dpaoliello:importlib

Conversation

@dpaoliello

Copy link
Copy Markdown
Contributor

Now that we can generate COFF archives, we can also generate import libraries by setting up an archive with the correct members.

This can then be used in the Rust compiler to implement the raw-dylib feature.

  • Ports the code from COFFImportFile.cpp to generate import libraries.
  • Adds tests to compare the import libraries to llvm-lib and llvm-dlltool.

Comment thread src/coff.rs Outdated
Comment thread src/coff_import_file.rs Outdated
Comment thread reference/COFFImportFile.h
Comment thread src/coff_import_file.rs Outdated
Comment thread src/coff_import_file.rs Outdated
Comment thread src/coff_import_file.rs Outdated
Comment thread src/coff_import_file.rs
Comment thread src/coff_import_file.rs Outdated
Comment thread src/coff_import_file.rs Outdated
Comment thread src/coff_import_file.rs Outdated
@dpaoliello
dpaoliello requested a review from bjorn3 July 24, 2024 22:20
@bjorn3
bjorn3 merged commit e2103f2 into rust-lang:master Jul 25, 2024
@bjorn3

bjorn3 commented Jul 25, 2024

Copy link
Copy Markdown
Member

Thanks a lot for working on this!

@bjorn3
bjorn3 removed their request for review July 25, 2024 16:50
@bjorn3

bjorn3 commented Jul 25, 2024

Copy link
Copy Markdown
Member

Published as 0.3.1.

@bjorn3

bjorn3 commented Jul 25, 2024

Copy link
Copy Markdown
Member

I've opened rust-lang/rust#128206 as first step towards wiring this up in cg_clif.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants