Page 1 of 1

nasm aout file format

Posted: Wed Jun 30, 2004 2:15 pm
by Ozguxxx
Hi Im searching for nasm's aout file format, in nasm manual it is said that it is very similar to linux a.out with exception of magic number, but I could not really see any similarity. I have used following header to read but could not get meaningful results.


struct exec {
u_int32_t a_midmag;
u_int32_t a_text;
u_int32_t a_data;
u_int32_t a_bss;
u_int32_t a_syms;
u_int32_t a_entry;
u_int32_t a_trsize;
u_int32_t a_drsize;
};

(from OSRC's) Im creating object file in nasm with -f aout... Thanx in advance.