Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

program killed!"reloc outside program.... "

when I run my serial and network app programme on the DE2 with uclinux,I can cross-compile the programme successfully,but when it runs on the board ,it got some error as below:

[QUOT]

/> ./ntest_serial3

BINFMT_FLAT: reloc outside program 0x1700004 (0 - 0x8318/0x50bc), killing ntest_serial3!

/>

[/QUOT]

I write my programme with standard C,the standard head file <include> is as :

//#include <io.h> # include <stdio.h> # include <stdlib.h> # include <unistd.h> # include <sys/types.h># include <sys/stat.h> # include <fcntl.h> # include <termios.h> # include <errno.h> # include <string.h> //serial

# include <netdb.h># include <netinet/in.h># include <sys/socket.h># include <sys/wait.h> //network,the same head file was omitted..

I write my programme with standard c,but neither of them could run ,both got the error information above,I really don&#39;t understand what the message means?The programme can run under linux PC,and could port to Linux embbed system,also in the programme there&#39;s no fork and other function call that was not supported under uclinux.

I search the forum ,and I don&#39;t think my programme contains any c++&#39; things,I am so puzzled .Is it mem ?too small or other reasons,There are some pointers and arrays and read write in my programme ,is it maybe too many and something about "stack"?I change -elf2flt "-s 64000",still don&#39;t work.

Or the system lib link problem?my config in the use/app is NONE,the others are uc-libc and uClibc,but I add them(one each time),compile error"no version.h in the path",but I think maybe it is not quit about the lib link staff.

Any suggestions will be appreciated,thanks for your help.
No RepliesBe the first to reply