COFF isn't supported properly yet?
cranelift-object
should support COFF/PE
I got an error when using module::finish.
"Coff not supported" or something along those lines.
Is there a backtrace? Or is it just a plain error and not a panic?
Sounds like you are using cranelift-faerie
, which doesn't support COFF. Use cranelift-object
instead, its COFF support hasn't been used much yet so it may have bugs (please report if you find any), but it should at least succeed at module::finish.
thanks! yes I was. Whats the difference between the two?
(Object works fine, at least it emits coff just fine)
For cranelift users, the main difference is the COFF support. If you want to interact directly with the faerie or object APIs then the difference is that they operate at different abstraction levels (object tends to be lower level).
Last updated: Nov 22 2024 at 16:03 UTC