Determining IS_64_SEPERATE_SYMBOL
For context, open
/open64
as well as mmap
/mmap64
are sometimes seperate pairs of functions but sometimes are just aliased with the preprocessor. A given build of panwrap needs to know this correctly, or otherwise it will either:
- Not compile at all, due to duplicate symbols
- Compile but not trace anything, since it binds the wrong function
The current test in meson is broken. At some point (i.e. before Bifrost), this will need to be fixed.
I suspect a simple check for a 64-bit host may be enough, at least for glibc builds. No idea what bionic does at this point.