From: Marc Leclerc <marc-leclerc@signaturealpha.com>
To: buildroot@busybox.net
Subject: [Buildroot] Problem running program compiled with the toolchain
Date: Thu, 16 Sep 2010 16:07:26 -0400 [thread overview]
Message-ID: <4C9278FE.2010504@signaturealpha.com> (raw)
Hi,
I have built an x86 embedded system using buildroot 2010.08. I have been
trying a few lib& compiler version trying to find the problem without
success then I added gdb to the target to see if I could get more info
First I tried my application which was developped in the past year
compiled with the buildroot toolchain and it wont start (either illegal
instruction or segfault (seems to change if I use static linking). weird
thing is that the library examples do run and I am using those same
libraries and makefile based on theirs.
I then tried a simple app
int main (int argc, char **argv)
{
return 0;
}
and I get a segfault at 1 ip 00000001 ...
adding a printf I get Illegal instruction
running under gdb amazingly tells me that the file is not in executable
format: File format not recognized
This app starts on my host and is recognized
The demos do start as well
Oviously I am missing something here, could anyone ring my bell
Regards
next reply other threads:[~2010-09-16 20:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-16 20:07 Marc Leclerc [this message]
2010-09-17 17:29 ` [Buildroot] Problem running program compiled with the toolchain Marcus Osdoba
2010-09-17 17:44 ` Marc Leclerc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C9278FE.2010504@signaturealpha.com \
--to=marc-leclerc@signaturealpha.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox