]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: stop copying symbol names in kmod_elf_get_symbols()
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)
commit4c74e4dcec5b9ddc176cf297c25a78eac0fb2a91
treefbfdfaeee04c34c103990dc47af83f627dfc83e7
parent63e10397b075838f25990158c5d1c4bfe5c5cce4
libkmod: stop copying symbol names in kmod_elf_get_symbols()

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