arm-linux-gnueabi-gcc 컴파일 관련

lovejr97의 이미지

안녕하세요~

Embedded Linux 라이브러리 개발 프로젝트를 진행중인데요...

간단한 Hello World 소스를 크로스 컴파일 하여 타켓 보드에서 테스트 해볼려고 하는데

$>arm-linux-gnueabi-gcc hello.c 또는 arm-linux-gnueabi-gcc -o hello.out hello.c

out 파일로 컴파일 된 건 타켓 보드에서 잘 작동합니다.

그런데, arm-linux-gnueabi-gcc -o hello hello.c 처럼 하면 타켓 보드에서 에러가 발생합니다.

dynamic libaray로 컴파일 하면 segmentation fault
static library로 컴파일 하면 illegal instruction

제가 잘 몰라서 그런건지 다른 이유가 있는건지 궁금하네요...