freebsd-skq/usr.sbin/kldxref
imp 5991b259dc Use EF_SEG_READ_STRING instead of EF_SEG_READ when reading strings.
Normally, we can get away with just reading the 1k buffer for the
string, since the placement of the data is generally no where near the
end of the file. However, it's possible that the string is within the
last 1k of the file, in which case the read will fail, and we'll not
produce the proper records needed for devmatch to work. By reading
using EF_SEG_READ_STRING, we automatically work around these problems
while still retaining safety.

This fix a problem with devmatch where we wouldn't load certain
modules (like ums). This didn't always happen (my tree didn't exhibit
it, while nathan's did because his optimization options were more
agressive).

Reported by: nathanw@
2018-07-15 05:29:39 +00:00
..
ef_aarch64.c kldxref: improve style(9) 2018-01-17 19:59:43 +00:00
ef_amd64.c
ef_i386.c
ef_nop.c
ef_obj.c kldxref: improve style(9) 2018-01-17 19:59:43 +00:00
ef_powerpc.c Adjust format string to fix build. 2018-01-18 00:24:05 +00:00
ef_sparc64.c
ef.c kldxref: additional sytle(9) cleanup 2018-01-17 20:43:30 +00:00
ef.h
fileformat
kldxref.8
kldxref.c Use EF_SEG_READ_STRING instead of EF_SEG_READ when reading strings. 2018-07-15 05:29:39 +00:00
Makefile
Makefile.depend