Stream: cranelift

Topic: coff support


view this post on Zulip Carlo Kok (Apr 29 2020 at 10:13):

COFF isn't supported properly yet?

view this post on Zulip bjorn3 (Apr 29 2020 at 10:48):

cranelift-object should support COFF/PE

view this post on Zulip Carlo Kok (Apr 29 2020 at 12:37):

I got an error when using module::finish.

view this post on Zulip Carlo Kok (Apr 29 2020 at 12:37):

"Coff not supported" or something along those lines.

view this post on Zulip bjorn3 (Apr 29 2020 at 14:54):

Is there a backtrace? Or is it just a plain error and not a panic?

view this post on Zulip Philip Craig (Apr 30 2020 at 00:56):

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.

view this post on Zulip Carlo Kok (Apr 30 2020 at 05:05):

thanks! yes I was. Whats the difference between the two?

view this post on Zulip Carlo Kok (Apr 30 2020 at 05:21):

(Object works fine, at least it emits coff just fine)

view this post on Zulip Philip Craig (Apr 30 2020 at 06:19):

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: Dec 23 2024 at 12:05 UTC