From: "Shaun Jackman" <sjackman@gmail.com>
To: gdb@sources.redhat.com
Subject: Symbol at the incorrect address
Date: Wed, 12 Jul 2006 22:34:00 -0000 [thread overview]
Message-ID: <7f45d9390607121534h491ae9dw1388fd21f7370666@mail.gmail.com> (raw)
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
next reply other threads:[~2006-07-12 22:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-12 22:34 Shaun Jackman [this message]
2006-07-13 3:13 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7f45d9390607121534h491ae9dw1388fd21f7370666@mail.gmail.com \
--to=sjackman@gmail.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox