This is the mail archive of the gdb@sourceware.org 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]

Symbol at the incorrect address


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


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