nasm aout file format

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Ozguxxx

nasm aout file format

Post 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.
Post Reply