![rin](/assets/img/avatar_default.png)
Since binutils 2.15, nm(1) cannot be used for character devices. We worked around this by a local patch: http://cvsweb.netbsd.org/bsdweb.cgi/src/gnu/dist/binutils/binutils/Attic/bucomm.c?r1=1.1.1.2&hideattic=0#rev1.2 With recent update of binutils, 'nm /dev/ksyms' got broken again. This is due to a consistency check involving file size reported by stat(2), which is always zero for character devices. So, skip this check if file size is zero.