From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 5 06:43:26 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5693FF9 for ; Wed, 5 Dec 2012 06:43:26 +0000 (UTC) (envelope-from shrikanth07@gmail.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 586768FC08 for ; Wed, 5 Dec 2012 06:43:26 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so5005998lah.13 for ; Tue, 04 Dec 2012 22:43:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yV4Xk01ciTmmv7XuPXmaXo6NXSNpz6GMobvQ3ew6cjk=; b=UAdYq7co76w/lFkeMcPp6ZawQciG2nY4n2qpi21EsJVJ485Us47hiFOCjIazSZr+cT Z3jtxZgWydc87DLibK5MfFURjjskAWPSRHEooLRkdG8WdSBecNv0OTe1h8umtZqdltZU 2A6nKx/jCKJtYaVEe13o86hNmj7xEz3T4jYwXBeT6JLGRhqzAXrSidX3rifT2mjAQz6g 6CY7j+EAzesMzVTyd7DeKbK14EVcgfDEWgl9BuopWGyYztA7bp75kRrKhtXtvCCRTCgD 5K9bEfB+IwDywp9QGGx4T3qdclJ3GBKJM42Oe1j1H4/JLFkuMrYO7ptmaiw/0A8HIGkK im0Q== MIME-Version: 1.0 Received: by 10.152.102.234 with SMTP id fr10mr15717227lab.28.1354689805089; Tue, 04 Dec 2012 22:43:25 -0800 (PST) Received: by 10.112.139.71 with HTTP; Tue, 4 Dec 2012 22:43:24 -0800 (PST) Date: Wed, 5 Dec 2012 12:13:24 +0530 Message-ID: Subject: ELF symtab and ddbsymtab difference From: Shrikanth Kamath To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2012 06:43:26 -0000 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