here is a little IDC script, that will try to convert anything that starts with "LINK" statement to a sub in IDA.
saves hours of stupid sub creation ...
///////////////////////////////////
// Blackfin LINK finder
// (c) cybernet, 2013
///////////////////////////////////
#include <idc.idc>
static main()
{
auto addr,start,code;
start=0x1;
addr=FindBinary(start, SEARCH_DOWN, "00 E8");
Message("checking for function header at %x\n", addr);
while (addr > -1)
{
if (strlen(Name(addr))==0) // not yet a known location ? (sub_)
{
if (MakeCode(addr)) // try to make code out of it
{
code=GetDisasm(addr);
if (strstr(code, "LINK")>-1) // mnemonic is a LINK ?
{
MakeFunction(addr,-1);
Message("created function at %x\n", addr);
}
}
}
addr=addr+4;
addr=FindBinary(addr, SEARCH_DOWN, "00 E8");
Message("checking for function header at %x\n", addr);
}
}