darfink / region-rs

A cross-platform virtual memory API written in Rust
https://darfink.github.io/region-rs/
MIT License
119 stars 23 forks source link

Add support for FreeBSD #4

Closed valpackett closed 5 years ago

valpackett commented 5 years ago

For some reason function pointers are something like 0x103106f, not in the executable region..

0x1021000 0x104e000 45 854 0xfffff802d5b22a00 r-- 3 1 0x1000 COW NC vnode …/target/debug/deps/region-d4b611cfd5dce967 NCH -1
0x104e000 0x10be000 112 854 0xfffff802d5b22a00 r-x 3 1 0x1000 COW NC vnode …/target/debug/deps/region-d4b611cfd5dce967 NCH -1
darfink commented 5 years ago

Thanks a ton for the PR!

Intriguing, Windows exhibits the same behavior so the test is limited to Unix.