]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: stop copying symbol names in kmod_elf_get_modversions()
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 23 Oct 2024 16:19:53 +0000 (17:19 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 15 Nov 2024 16:03:46 +0000 (10:03 -0600)
commit069d314f8a4c965c762d4db36ea6eb0cea658801
treef33b908f5dd54b8a248bc1111eb0da9cad604eb4
parentb5c9f241880358499defd39a05ff44f2ab7a5c2a
libkmod: stop copying symbol names in kmod_elf_get_modversions()

Since the caller already copies the strings as needed, we can just
point to the elf data directly.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/210
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-elf.c