This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
arm-elf-gdb can't load big-endian thumb programs
- To: gdb at sourceware dot cygnus dot com
- Subject: arm-elf-gdb can't load big-endian thumb programs
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Thu, 07 Sep 2000 13:27:15 +0100
- cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
With the latest gdb sources, programs built with current gcc tools and
-mthumb -mbig-endian will no longer load into either gdb or the ARM
simulator. This used to work... and still does if the same executable is
loaded into an old version of the simulator; so I don't think it is gas/ld
that's at fault.
I don't know about other combinations, I've not had a chance to try them.
sun18:testsuite [1320] $ ../../../../gdb-elf/sim/arm/run 941014-1.x0
../../../../gdb-elf/sim/arm/run: no loadable sections "941014-1.x0"
sun18:testsuite [1321] $ ../../../../gdb-elf/gdb/gdb 941014-1.x0
GNU gdb 5.0
Copyright 2000 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=sparc-sun-solaris2.5.1
--target=arm-elf"...
(gdb) target sim
Connected to the simulator.
(gdb) load
gdbsim: no loadable sections "/home/rearnsha/gnu/egcs/arm-elf/gcc/testsuite
/941014-1.x0"
unable to load program
(gdb) quit
sun18:testsuite [1322] $ ../../binutils/objdump -h 941014-1.x0
941014-1.x0: file format elf32-bigarm
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 000023c0 00008000 00008000 00008000 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .rodata 00000059 0000a3c0 0000a3c0 0000a3c0 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .data 00000854 0000a51c 0000a51c 0000a51c 2**2
CONTENTS, ALLOC, LOAD, DATA
3 .eh_frame 00000004 0000ad70 0000ad70 0000ad70 2**2
CONTENTS, ALLOC, LOAD, DATA
4 .ctors 00000008 0000ad74 0000ad74 0000ad74 2**2
CONTENTS, ALLOC, LOAD, DATA
5 .dtors 00000008 0000ad7c 0000ad7c 0000ad7c 2**2
CONTENTS, ALLOC, LOAD, DATA
6 .sbss 00000000 0000ad84 0000ad84 0000ad84 2**0
CONTENTS
7 .bss 000000dc 0000ad84 0000ad84 0000ad84 2**2
ALLOC
8 .debug_aranges 00000340 00000000 00000000 0000ad84 2**0
CONTENTS, READONLY, DEBUGGING
9 .debug_pubnames 00000657 00000000 00000000 0000b0c4 2**0
CONTENTS, READONLY, DEBUGGING
10 .debug_info 00011947 00000000 00000000 0000b71b 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_abbrev 00001d33 00000000 00000000 0001d062 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_line 00004b26 00000000 00000000 0001ed95 2**0
CONTENTS, READONLY, DEBUGGING
13 .stack 00000000 00080000 00080000 000238bb 2**0
CONTENTS