>> ELF binary type "0" not known
>> ./program: Exec format error. Binary file not executable.
>
>
>
> Sounds like you did everything fine, you just need brandelf(1) to
>
> indicate the correct ABI.
>
>
I did try this and for each of the supported brands, only the FreeBSD brand didn't produce the error mentioned earlier. However, all did not work. In fact, they dumped their cores. This program works just fine on linux. It's been in production now for some time. After rebranding, and the subsequent core dump, I looked at it with gdb. The core shows an recursive loop in the stack, but no function is being called recursively.
The thing I don't understand is, about 6 years ago, I was doing this very same thing with a different linux binary built in SuSE linux. I'd installed linux compatibility on my FreeBSD machine and that was it, there was no branding required. I guess stated a different way, why would I need to brand these? I built them in Fedora Core 10. I installed emulators/linux_base-f10. Why should these need to be rebranded?
Thanks for the pointer. I didn't know of the branding utility.
Andy