[Bug 232829] Kernel debugger only reads .dynsym even if .symtab exists

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Oct 30 21:32:45 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232829

            Bug ID: 232829
           Summary: Kernel debugger only reads .dynsym even if .symtab
                    exists
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: arichardson at FreeBSD.org

The .symtab section contains all symbols (but may be stripped so is not
necessarily present) whereas .dynsym only contains the exported symbols (i.e.
not static).
This causes backtraces to report some_other_function+large_offset if the
backtrace pc is inside static function.

If .symtab is present, link_elf_search_symbol() should be checking .symtab
instead of
.dynsymtab. However, it seems like ef->ddbsymtab always points to .dynsym and
since I am not familiar with that code I couldn't see an easy way of using
.symtab instead if it is available.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list