Forum Discussion

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

A problem when cross compile?

I write a simple “hello world” c program,and in linux using the following command

code:# nios2-linux-uclibc-gcc -elf2flt -o hello hello.c# file hello

hello : data

why the format of \"hello\" isn\'t flat ? I download it to uclinux,and run ./hello ,it outputs \"permission dennied\",so what\'s my problem ? the excutable format on uclinux is flat,isn\'t it?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    the wiki is updated,

    "file" doesn't know about nios2 flat format.

    check on uclinux, ls -l /bin/hello
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have tried as you told me ,however I can\'t see its format,and also \"./bin/hello\" is refused,\"permission denied\".Is the steps I follow right?

    --- Quote Start ---

    originally posted by hippo@Jul 30 2006, 12:41 PM

    the wiki is updated,

    \"file\" doesn\'t know about nios2 flat format.

    check on uclinux, ls -l /bin/hello

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=17256)

    --- quote end ---

    --- Quote End ---