From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21970 invoked by alias); 12 Jul 2006 22:34:25 -0000 Received: (qmail 21961 invoked by uid 22791); 12 Jul 2006 22:34:25 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.172) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Jul 2006 22:34:21 +0000 Received: by ug-out-1314.google.com with SMTP id y2so32378uge for ; Wed, 12 Jul 2006 15:34:19 -0700 (PDT) Received: by 10.78.177.3 with SMTP id z3mr95273hue; Wed, 12 Jul 2006 15:34:19 -0700 (PDT) Received: by 10.78.196.2 with HTTP; Wed, 12 Jul 2006 15:34:18 -0700 (PDT) Message-ID: <7f45d9390607121534h491ae9dw1388fd21f7370666@mail.gmail.com> Date: Wed, 12 Jul 2006 22:34:00 -0000 From: "Shaun Jackman" Reply-To: "Shaun Jackman" To: gdb@sources.redhat.com Subject: Symbol at the incorrect address MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00056.txt.bz2 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