Date: Tue, 30 Oct 2018 21:32:43 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 232829] Kernel debugger only reads .dynsym even if .symtab exists Message-ID: <bug-232829-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: arichardson@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232829-227>
