This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Symbol at the incorrect address
- From: "Shaun Jackman" <sjackman at gmail dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 12 Jul 2006 16:34:18 -0600
- Subject: Symbol at the incorrect address
- Reply-to: "Shaun Jackman" <sjackman at gmail dot com>
arm-elf-nm and arm-elf-gdb disagree about the location of symbols:
$ arm-elf-nm vmlinux |grep log_buf
01009e8c b __log_buf
01509b48 t __setup_log_buf_len_setup
01002b84 d __setup_str_log_buf_len_setup
01004cac d log_buf
01004ca8 d log_buf_len
01505908 t log_buf_len_setup
$ arm-elf-gdb vmlinux
GNU gdb 6.5.50.20060627-cvs
...
(gdb) p &__log_buf
$1 = (char (*)[16384]) 0x201138c
(gdb) p &log_buf
$2 = (char **) 0x2004cac
It appears as if the section address is being added to the symbol address twice.
Please cc me in your reply. Thanks,
Shaun
binutils 2.17
gcc 4.2.0 20060629
gdb 6.5.50.20060627-cvs
linux 2.6.14.7
configured for XIP
.text in flash at 0x1500000
.data in RAM at 0x1000000