binfmt/modlib: move modlib_sectname to public

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2023-11-10 21:19:44 +08:00 committed by Xiang Xiao
parent 2be58054bb
commit a3f3918198
2 changed files with 18 additions and 7 deletions

View File

@ -179,6 +179,21 @@ void *modlib_findglobal(FAR struct module_s *modp,
int modlib_loadhdrs(FAR struct mod_loadinfo_s *loadinfo);
/****************************************************************************
* Name: modlib_sectname
*
* Description:
* Get the symbol name in loadinfo->iobuffer[].
*
* Returned Value:
* 0 (OK) is returned on success and a negated errno is returned on
* failure.
*
****************************************************************************/
int modlib_sectname(FAR struct mod_loadinfo_s *loadinfo,
FAR const Elf_Shdr *shdr);
/****************************************************************************
* Name: modlib_findsection
*

View File

@ -35,7 +35,7 @@
#include "modlib/modlib.h"
/****************************************************************************
* Private Functions
* Public Functions
****************************************************************************/
/****************************************************************************
@ -50,7 +50,7 @@
*
****************************************************************************/
static inline int modlib_sectname(FAR struct mod_loadinfo_s *loadinfo,
int modlib_sectname(FAR struct mod_loadinfo_s *loadinfo,
FAR const Elf_Shdr *shdr)
{
FAR Elf_Shdr *shstr;
@ -152,10 +152,6 @@ static inline int modlib_sectname(FAR struct mod_loadinfo_s *loadinfo,
return OK;
}
/****************************************************************************
* Public Functions
****************************************************************************/
/****************************************************************************
* Name: modlib_findsection
*