HomeFreeBSD

MFC r328052: kldxref: handle modules with md_cval at end of allocated secs

Description

MFC r328052: kldxref: handle modules with md_cval at end of allocated secs

Attempting to retrieve an md_cval string from a kernel module with
kldxref would throw a offset error for modules created using lld, since
this value would be placed at the end of all allocated sections.

Add an ef_read_seg_string method to the ef interface, to allow reading
strings of varying size without attempting to read beyond the segment's
bounds.

PR: 224875
Submitted by: Mitchell Horne <mhorne063@gmail.com>
Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on
Parents
rS329246: MFC r327503: kldxref: correct function names in warning messages
Branches
Unknown
Tags
Unknown