Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problem running program compiled with the toolchain
@ 2010-09-16 20:07 Marc Leclerc
  2010-09-17 17:29 ` Marcus Osdoba
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Leclerc @ 2010-09-16 20:07 UTC (permalink / raw)
  To: buildroot



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-17 17:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16 20:07 [Buildroot] Problem running program compiled with the toolchain Marc Leclerc
2010-09-17 17:29 ` Marcus Osdoba
2010-09-17 17:44   ` Marc Leclerc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox