summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_target_linear.c
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2019-11-30 22:50:11 +0000
committerrin <rin@NetBSD.org>2019-11-30 22:50:11 +0000
commita112b7062f8e23ed933a9ae08b314196cb2234a7 (patch)
tree8b1c352af42b5afa13b86b3bced898d51f8216fb /sys/dev/dm/dm_target_linear.c
parent77e25436b1c9ec1eaed342213a4e7e7e3e9ab96d (diff)
Fix 'nm /dev/ksyms' (noticed by ryo).
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.
Diffstat (limited to 'sys/dev/dm/dm_target_linear.c')
0 files changed, 0 insertions, 0 deletions