cvs commit: src/sys/conf kern.post.mk kmod.mk
Ruslan Ermilov
ru at FreeBSD.ORG
Thu Oct 27 14:20:45 PDT 2005
On Thu, Oct 27, 2005 at 10:42:44PM +0200, Dag-Erling Sm?rgrav wrote:
> Now I'm even more confused - I just built and installed a kernel using
> yesterday's sources (kern.post.mk 1.86, kmod.mk 1.197); the modules
> that were installed have debugging symbols, and work flawlessly, which
> contradicts your commit logs.
>
> What problem are you trying to solve?
>
On amd64, different format module objects are used. When loading
modules with debugging, they consume much more space than
non-debug versions:
hammer# pwd
/usr/src/sys/modules/if_tun
hammer# make DEBUG_FLAGS=-g -s
hammer# kldload ./if_tun.ko
hammer# kldstat |grep if_tun
14 1 0xffffffffa7b76000 1f6d if_tun.ko
hammer# kldunload if_tun.ko
hammer# kldload ./if_tun.ko.debug
hammer# kldstat | grep if_tun
14 1 0xffffffffa7beb000 ad77 if_tun.ko.debug
Note the difference in the 4th field. Also, such modules have
currently unsupported relocation type, R_X86_64_32, which is
easy to fix if needs be.
Cheers,
--
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20051028/c92b85ca/attachment.bin
More information about the cvs-src
mailing list