I have made very similar patch but it's quite small and do not require deep hacks. It should works with "setarch" too to force selection of binary. There is a tool to merge binaries. Glibc / binutils patch work in progress. Rgds, Anton