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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Oct 30 23:09:47 UTC 2018


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

--- Comment #1 from Conrad Meyer <cem at freebsd.org> ---
Seems like a good idea to me.

On my local amd64 kernels, I see SYMTAB in the stripped binary (objdump -x) and
not in the corresponding .debug file in /usr/lib/debug.

(Conditional on MK_DEBUG_FILES, bsd.lib.mk splits full objects, including
kernels, into stripped and debuginfo with:

296 ${SHLIB_NAME}: ${SHLIB_NAME_FULL} ${SHLIB_NAME}.debug
297         ${OBJCOPY} --strip-debug --add-gnu-debuglink=${SHLIB_NAME}.debug \
298             ${SHLIB_NAME_FULL} ${.TARGET}
...
303 ${SHLIB_NAME}.debug: ${SHLIB_NAME_FULL}
304         ${OBJCOPY} --only-keep-debug ${SHLIB_NAME_FULL} ${.TARGET}

Apparently --strip-debug leaves SYMTAB if one was present.)

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


More information about the freebsd-bugs mailing list