binfmt/modlib: move modlib_sectname to public
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
2be58054bb
commit
a3f3918198
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue