gimli-rs / unwind-rs

Apache License 2.0
26 stars 10 forks source link

Macos support #32

Closed bjorn3 closed 3 years ago

bjorn3 commented 5 years ago

Based on #29, #30 and #31.

Fixes #2

I did something wrong causing it to not find the FDE for an address, but I dont know what.

philipc commented 5 years ago

While it should be possible to get it to work without, I think you should try to use eh_frame_hdr on macos. Some work on that was started here.

bjorn3 commented 5 years ago

.eh_frame_hdr doesnt seem to exist on macOS.

Some work on that was started here.

It would be nice to have that commit on master, as it allows getting .eh_frame on macOS without having to copy and leak it and without having to deal with fat libraries.

philipc commented 5 years ago

That commit is lacking linux support, so merging it to master is non-trivial. Any work on it is appreciated. Be aware that the EhFrame trait will be hard to implement for linux since the section headers aren't available AFAIK.

bjorn3 commented 3 years ago

I won't work any further on this.