LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2015, 11:31 AM   #1
wt_kurtz
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
buildroot-2015.11-rc2 - ARM Cross Compile Segfaulting On Target


When I cross compile a simple 'printf "hello world"' using buildroot and try to run the executable on the target I get a segfault.

I'm do not know how to troubleshoot this.
Here is some of what comprises my system. Please let me know if you can point me in the right direction and what other info I could provide.

I've attached the .config I used when I made Buildroot.

Probably a simple thing. I'm not too checked out on buildroot or cross compilation.

-------------------

uname -a host:
Linux engserver 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

uname -a target
Linux cme9210js 2.6.28.10 #3 Wed Jun 25 15:09:40 UTC 2014 armv5tejl GNU/Linux

/proc/cpuinfo on the target shows:
ARM926EJ-S rev 5 (v5l)

my compile command:
output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -mcpu=arm926ej-s -Wall -O3 -static -o testA test.c

readelf -h testA output:
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x8108
Start of program headers: 52 (bytes into file)
Start of section headers: 61328 (bytes into file)
Flags: 0x5000202, has entry point, Version5 EABI, soft-float ABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 5
Size of section headers: 40 (bytes)
Number of section headers: 28
Section header string table index: 25
 
  


Reply

Tags
arm9, buildroot



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to cross compile code when the target is for another kernel version ? schneidz Linux - Embedded & Single-board computer 2 11-27-2011 11:20 PM
Cross Compile GLib for ARM striker07 Programming 4 04-27-2011 07:49 AM
[SOLVED] cross compiling for arm with buildroot brooko Slackware 3 01-29-2011 11:42 AM
cannot compile cross-gcc for arm ecco_the_dolphin Linux - Software 1 05-24-2010 05:02 PM
Trying to cross-compile mono for ARM hal_2001 Programming 2 05-11-2010 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration