For object files, instead of loading every sections, load the
relocatable file as how it would be laid out by the kernel linker.
Sponsored by: Juniper Networks, Inc.
Differential D47383
libkldelf: skip loading zero-sized and non-SHF_ALLOC sections khng on Nov 1 2024, 1:27 PM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions We can probably just do this all the time without needing the flag? I think kldxref just doesn't care, or more likely ef_object.c in kldxref wasn't updated when the kernel linker changed. Comment Actions Ok, at least it doesn't. I just compared the result of kldxref's verbose output between the old and new version and they matches. Having said that in future there might be consumers that try to access all the sections, but we might leave it for future.
|