]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Simplify section name handling
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 20 Oct 2024 10:20:43 +0000 (12:20 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 22 Oct 2024 17:02:56 +0000 (12:02 -0500)
commite0e068143ab1f200609cd4db9127a0aa540dfb23
treebf23377bdc768093ab8fb16a9da389c8e0d252e9
parent25ab561bd59338992a2ab7288abbfecb1e1d018f
libkmod: Simplify section name handling

The name of string section is not needed, so it does not have to stored.
If section name is needed, return a char pointer instead of forcing the
caller to handle offset and memory calculations.

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