With the -sr
option rabin2 produces a radare2 script instead. It can later be passed to the core to automatically flag all symbols and to define corresponding byte ranges as functions and data blocks.
$ rabin2 -sr /bin/ls | head
fs symbols
f sym.stderr 8 0x0021f620
f sym.obstack_begin_1 21 0x00014f90
f sym.optarg 8 0x0021f5f8
f sym.stdout 8 0x0021f5e8