for this example we use the statically linked dump.static: [root@ultra1 foo]# elftoaout /sbin/dump.static PT 0 Entry: Loadable to 0x10000[0x66df0] from 0x0[0x66df0] align 0x10000 PT 1 Entry: Loadable to 0x86df0[0x6460] from 0x66df0[0x14c8] align 0x10000 PT 2 Entry: Note Several loadable segments [root@ultra1 foo]# ls -l total 0 -rw-r--r-- 1 root root 0 Feb 22 12:18 a.out [root@ultra1 foo]#
elftoaout is only intended to used on kernel images.