]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: stop copying symbol names in kmod_elf_get_symbols_symtab()
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)
commit63e10397b075838f25990158c5d1c4bfe5c5cce4
treea35bc1fe217716925327e7ecae8ad2084e0e7df7
parente5ef157bd57412628ff044cf80551940b7a2dd8e
libkmod: stop copying symbol names in kmod_elf_get_symbols_symtab()

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