This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1884: arm-none-elf target sim does not run ARM executables


>Number:         1884
>Category:       gdb
>Synopsis:       arm-none-elf target sim does not run ARM executables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 02 01:58:00 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     John Reiser
>Release:        GNU gdb 6.3
>Organization:
>Environment:
Linux 2.6.10-1.766_FC3
gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-elf".

>Description:
After configuring with --target=arm-none-elf, the resulting gdb does not simulate ARM executables.  It complains "No executable file specified" and gets SIGSEGV.

-----console transcript
$ arm-none-elf-gdb
GNU gdb 6.3
Copyright 2004 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=arm-none-elf".
(gdb) target sim
Connected to the simulator.
(gdb) load my-arm-executable
Loading section .text, size 0x1514 vma 0x8080
Start address 0x8080
Transfer rate: 43168 bits in <1 sec.
(gdb) run
Starting program:
warning: No executable file specified.
Segmentation fault
$ 
-----end console transcript
>How-To-Repeat:
$ arm-none-elf-gdb
(gdb) target sim
Connected to the simulator.
(gdb) load my-arm-exeuctable
Loading section .text, size 0x1514 vma 0x8080
Start address 0x8080
Transfer rate: 43168 bits in <1 sec.
(gdb) run
Starting program:
warning: No executable file specified.
Segmentation fault
$ 

where my-arm-executable is a self-contained standalone program that uses no shared libraries:
-----my-arm-executable.S
_start:.globl _start
     swi
-----
built with crosstool using "$GCC_ARM -nostartfiles -nostdlib -o my-arm-executable my-arm-executable.S" .  "readelf --all my-arm-executable" show an ARM executable that looks fine.

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]