1# compile this with: 2# as a.s -o a.o --32 && ld a.o -m elf_i386 3# generate core file with: 4# ulimit -s 12 && ./a.out 5 6.text 7 8.globl func2 9.type func2, @function 10func2: 11 pushl %ebp 12 movl %esp, %ebp 13 movl 0, %eax 14 popl %ebp 15 ret 16.size func2, .-func2 17 18.globl _start 19.type _start, @function 20_start: 21 pushl %ebp 22 movl %esp, %ebp 23 call func1 24 popl %ebp 25 ret 26.size _start, .-_start 27 28.globl func1 29.type func1, @function 30func1: 31 pushl %ebp 32 movl %esp, %ebp 33 call func2 34.size func1, .-func1 35 36