rust icon indicating copy to clipboard operation
rust copied to clipboard

The structure definition of dllimport seems to lack information and is not enough to generate an undecorated lib.

Open han1548772930 opened this issue 1 year ago • 3 comments

Where rust calls llvm, the symbolname is left blank, which makes the structure definition of dllimport seem to lack information and is not enough to generate an undecorated lib. FBCB13F97186228859BF21CB085FD4BA

{D68F8C74-9B96-A55C-E70C-ECE8D5F008CB}

712E7975E74D9587542E2CE1F801611A 9704252B8B4EA78E8088CAA9F83B871F

han1548772930 avatar May 10 '24 02:05 han1548772930

Can you post a rust code snippet on which you are experiencing the issue and show the exact issue (linker error, other kind of compilation failure, ...)

bjorn3 avatar May 11 '24 19:05 bjorn3

#124958

han1548772930 avatar May 13 '24 07:05 han1548772930

I addressed this in https://github.com/rust-lang/rust/issues/124958#issuecomment-2108222471

To summarize for this specific part of the issue:

  • Not setting SymbolName is a fair criticism, but I wouldn't want to change it now without an MCP and a motivating example where Rust has incorrect behavior.
  • You've demonstrated that Rust produces a different import library than MSVC or Clang but have not explained why this is an issue.

dpaoliello avatar May 13 '24 16:05 dpaoliello