Update comments

This commit is contained in:
Yasumasa Suenaga 2026-02-05 20:19:45 +09:00
parent b5e3ce6c03
commit f9ce546beb

View File

@ -602,10 +602,11 @@ static uintptr_t calc_prelinked_load_address(struct ps_prochandle* ph, int lib_f
return load_addr;
}
// Override vDSO path to kernel directory (/lib/modules/<version>/vdso) if possible.
// Then lib_name would be overwritten that path.
// Otherwise copy vDSO memory in coredump to temporal memory generated by memfd_create().
// Returns FD for vDSO (should be closed by caller).
// Check for vDSO binary in kernel directory (/lib/modules//vdso),
// rewrite the given lib_name string if found.
// Otherwise copy vDSO memory in coredump to temporal memory generated by
// memfd_create().
// Returns FD for vDSO (should be closed by caller), or -1 on error.
static int handle_vdso(struct ps_prochandle* ph, char* lib_name, size_t lib_name_len) {
int lib_fd;
struct utsname uts;