On Linux 32 bit, I use IDA Pro + IDC script to dump all the functions. Here is part of the script:
addr = 0;
for (addr = NextFunction(addr); addr != BADADDR; addr = NextFunction(addr)) {
name = Name(addr);
end = GetFunctionAttr(addr, FUNCATTR_END);
Message("%s:\n", name);
dumpFunction(name, addr, end);
}
Certain functions, like close_stdin
defined in GNU coreutils static library, can not be found in this script but I can find those functions in File->Produce File->Create ASM File...
Is there something wrong with my script? Can I use it to find out all the functions?