I'm trying to build a version of paxctl (or chpax) that will let me change PaX ELF flags for any ABI's binaries, without success.
I've tried a variety of "cross compilation" and different embedded "hosting" solutions, but at the end of the day, I can't get an x86 version that accepts MIPS 32bit ELF files as "valid".
I am building MIPS binaries under x64, and for a variety of reasons a "native" (MIPS) version of paxctl/chpax won't work for me - paxctl's reliance upon mmap() and friends precludes its use on filesystems like jffs, etc.
Do you have any suggestions as to where I might start to build a "cross-hosted" tool whereby I could alter MIPS ELF binaries on an x64 host?