前几天将一个程序在完全相同环境编译完后,放到目标环境运行,出现了如下错误:
exec(): 0509-036 Cannot load program XXX because of the following errors:
0509-119 The l_nimpid field in the .loader section header
is not positive.
0509-193 Examine the .loader section header with the
'dump -Hv' command.
还有一个程序报:
exec(): 0509-036 Cannot load program XXX because of the following errors:
0509-120 An offset in the .loader section header is too large.
0509-193 Examine the .loader section header with the
'dump -Hv' command.
但是这两个程序在编译环境下是能够正常运行的。到网上查了一下,有的说是动了硬件,有的说是服务器要重启。
求助勇哥,勇哥说他编译的程序没有问题啊!
郁闷了好几天,昨天重新试了一下,才发现原来是ftp的时候忘记bi了,用文本模式传了可执行文件,所以程序文件被破坏,无法运行!这真是低级失误,以后ftp的时候要多注意。很奇怪ftp为什么默认是文本模式呢?
评论