Re: mprotect, SIGBUS, and SIGSEGV
There is no way, signal is determined by eglibc compiled for.
Lets assume that your binary is compiled under squeeze.
Under squeeze eglibc, it will receive SIGBUS,
under sid eglibc it will receive SIGSEGV.
I don't understand this part. Your first sentence seems to say the
signal is determined by the build environment, but the next part seems
to contradict that. Is this just a wording problem (the first sentence
missing a not?) or something more subtle?
Build environment of used eglibc (MIN_KERNEL_SUPPORTED),
but not build environment of your binary.
See for squeeze: