From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30752 invoked by alias); 5 Dec 2012 06:55:17 -0000 Received: (qmail 30742 invoked by uid 22791); 5 Dec 2012 06:55:15 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-la0-f41.google.com (HELO mail-la0-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 Dec 2012 06:55:08 +0000 Received: by mail-la0-f41.google.com with SMTP id m15so4259405lah.0 for ; Tue, 04 Dec 2012 22:55:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.44.135 with SMTP id e7mr7020108lbm.55.1354690507115; Tue, 04 Dec 2012 22:55:07 -0800 (PST) Received: by 10.112.139.71 with HTTP; Tue, 4 Dec 2012 22:55:07 -0800 (PST) Date: Wed, 05 Dec 2012 06:55:00 -0000 Message-ID: Subject: Difference in fields symtab and ddbsymtab in elf_file_t structure (defined in link_elf.c) in FreeBSD From: Shrikanth Kamath To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00016.txt.bz2 This is regarding the fields in the structure "elf_file_t" in link_elf.c. For some kernel modules the symtab field is different from the ddbsymtab field for some it is the same, would like to know what is the difference between the two and how to enable ddbsymtab? Does enabling "-g" in CFLAGS make the binary build the ddbsymtab different from symtab? The problem is lookup for some symbols in the kernel module that I built returns with undefined, on inspecting it was getting a ENOENT from the function link_elf_lookup_symbol() { ... /* If we have not found it, look at the full table (if loaded) */ if (ef->symtab == ef->ddbsymtab) return (ENOENT); ... } -- Shrikanth R K