Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2018 23:09:45 +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-00wyS0sQP5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-232829-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-232829-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232829

--- Comment #1 from Conrad Meyer <cem@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=3D${SHLIB_NAME}.de=
bug \
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.)

--=20
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-00wyS0sQP5>