Hi,
I'm trying to write a tiny elf under *BSD by writing his own elf header with GNU Assembler. Concretely, I write his elf header, 3 program header (for interpreter,code,dynamic) and no section header. The code works under linux (with /lib/ld-linux.so) but it segfaults under freebsd. So I'm wondering if under *BSD an elf executable need to have an additional information to work?
Main code is here.
Kind regards.
I'm trying to write a tiny elf under *BSD by writing his own elf header with GNU Assembler. Concretely, I write his elf header, 3 program header (for interpreter,code,dynamic) and no section header. The code works under linux (with /lib/ld-linux.so) but it segfaults under freebsd. So I'm wondering if under *BSD an elf executable need to have an additional information to work?
Main code is here.
Kind regards.