Messages in this thread |  | | | Date | Fri, 23 Oct 2009 17:32:09 +0400 | | From | "Anton D. Kachalov" <> | | Subject | Re: [PATCH 1/2] binfmt_elf: FatELF support in the binary loader. |
| |
Anton D. Kachalov wrote: > 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. $ uname -m x86_64 $ ./truearch hello32 hello64 hellos $ ./hellos hello x86_64 $ setarch i386 ./hellos Hello x86 $ setarch x86_64 ./hellos hello x86_64 $ file hello32 hello: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.15, not stripped $ file hello64 hello64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.15, not stripped
While I didn't finish glibc hacks, I could use only statically linked binaries.
Rgds, Anton
|  |