Altera_Forum
Honored Contributor
19 years agoprogram 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'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's no fork and other function call that was not supported under uclinux. I search the forum ,and I don't think my programme contains any c++' 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'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.