2011-02-04 10:38:02     bfin-uclinux-run and fbin-linux-uclibc-run problems.

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2011-02-04 10:38:02     bfin-uclinux-run and fbin-linux-uclibc-run problems.

Alf Nilsson (SWEDEN)

Message: 97928   

 

Hi all,

 

I am currently using the 2010R1-R4 toolchain release from RPM files.

 

Using Eclipse I create an "Hello world" example using the bfin-uclibc FDPIC toolchain.

 

Compilation runs OK.

 

Then I try to run the program using the simulator.

 

"bfin-linux-uclibc-run hello_world"

 

Output:

 

program stopped with signal 11 (Segmentation fault).

 

"bfin-linux-uclibc-run -v --env user  hello_world"

 

Output:

 

bfin-uclinux-run hello_world

bfin-sim: dynamic FDPIC not supported

Unhandled exception 0x24 at 0x000005d4 (Unaligned data access)

Simulator Execution Speed

 

  Total instructions:      2,041

  Total execution time:    < 1 second

 

program stopped with signal 4 (Illegal instruction).

 

"bfin-linux-uclibc-run -v --env user --sysroot /opt/uClinux/bfin-linux-uclibc/bfin-linux-uclib/runtime hello_world"

 

Output:

 

bfin-uclinux-run hello_world

bfin-sim: dynamic FDPIC not supported

Unhandled exception 0x24 at 0x000005d4 (Unaligned data access)

Simulator Execution Speed

 

  Total instructions:      2,041

  Total execution time:    < 1 second

 

program stopped with signal 4 (Illegal instruction).

 

So something is not right, and hopefully it is my build environment or build options.

 

But I've also tried to use: bfin-linux-uclibc-gdb.

 

After typing the following:

 

"bfin-linux-uclibc-gdb hello_world"

 

I get:

 

GNU gdb 6.6

Copyright (C) 2006 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "--host=i686-pc-linux-gnu --target=bfin-linux-uclibc"...

(gdb) target sim

Connected to the simulator.

(gdb) load

Loading section .interp, size 0x14 lma 0x114

Loading section .hash, size 0xa0 lma 0x128

Loading section .dynsym, size 0x150 lma 0x1c8

Loading section .dynstr, size 0x1c0 lma 0x318

Loading section .gnu.version, size 0x2a lma 0x4d8

Loading section .gnu.version_r, size 0x20 lma 0x504

Loading section .rel.dyn, size 0x50 lma 0x524

Loading section .rel.plt, size 0x28 lma 0x574

Loading section .init, size 0x1a lma 0x59c

Loading section .plt, size 0x5a lma 0x5b8

Loading section .text, size 0x350 lma 0x614

Loading section .fini, size 0x14 lma 0x964

Loading section .rodata, size 0x14 lma 0x978

Loading section .rofixup, size 0x44 lma 0x98c

Loading section .eh_frame_hdr, size 0x1c lma 0x9d0

Loading section .eh_frame, size 0x58 lma 0x19ec

Loading section .ctors, size 0xc lma 0x1a44

Loading section .dtors, size 0x8 lma 0x1a50

Loading section .jcr, size 0x4 lma 0x1a58

Loading section .dynamic, size 0xd8 lma 0x1a5c

Loading section .data, size 0x4 lma 0x1b34

Loading section .got, size 0x8c lma 0x1b38

Start address 0x614

Transfer rate: 21840 bits in <1 sec.

(gdb) run

Starting program: /home/extani/workspace/hello_world/Debug/hello_world

Unable to load the executable's loadmap.

 

Can anyone give me a suggestion to what I am doing wrong?

 

Regards,

 

Alf

QuoteReplyEditDelete

 

 

2011-02-04 12:04:43     Re: bfin-uclinux-run and fbin-linux-uclibc-run problems.

Mike Frysinger (UNITED STATES)

Message: 97932   

 

as the error message says:

bfin-sim: dynamic FDPIC not supported

 

support was added to svn trunk.  the 2010R1 release only supports static FDPIC ELFs.

Attachments

    Outcomes