Modify romfs link error in main.ld.
Modify tool/gdbscript to auto run test function.