public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Shrikanth Kamath <shrikanth07@gmail.com>
To: gdb@sourceware.org
Subject: Difference in fields symtab and ddbsymtab in elf_file_t structure (defined in link_elf.c) in FreeBSD
Date: Wed, 05 Dec 2012 06:55:00 -0000	[thread overview]
Message-ID: <CAEOAkMW--UpGHPx-=vtjutKLiLU0RT9odjof57BkJF=8wqpdiw@mail.gmail.com> (raw)

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

             reply	other threads:[~2012-12-05  6:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-05  6:55 Shrikanth Kamath [this message]
2012-12-06 16:26 ` Pedro Alves

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='CAEOAkMW--UpGHPx-=vtjutKLiLU0RT9odjof57BkJF=8wqpdiw@mail.gmail.com' \
    --to=shrikanth07@gmail.com \
    --cc=gdb@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).