libc/symtab: Don't include symtab.h in the header files

to unify the inclusion of symtab.h only from the source files

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-07-09 05:23:32 +08:00 committed by Petro Karashchenko
parent 229293f9f8
commit ebcb03dce9
11 changed files with 18 additions and 20 deletions

View File

@ -27,7 +27,7 @@
#include <assert.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/symtab.h>
#include <nuttx/binfmt/symtab.h>
#ifdef CONFIG_LIBC_EXECFUNCS

View File

@ -25,9 +25,6 @@
* Included Files
****************************************************************************/
#include <nuttx/compiler.h>
#include <nuttx/symtab.h>
#include <stddef.h>
/****************************************************************************
@ -55,6 +52,7 @@ extern "C"
*
****************************************************************************/
struct symtab_s;
FAR const struct symtab_s *allsyms_findbyname(FAR const char *name,
FAR size_t *size);

View File

@ -28,12 +28,10 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
#include <elf.h>
#include <nuttx/arch.h>
#include <nuttx/binfmt/binfmt.h>
/****************************************************************************
@ -92,15 +90,15 @@ struct elf_loadinfo_s
* after the ELF module has been loaded.
*/
uintptr_t textalloc; /* .text memory allocated when ELF file was loaded */
uintptr_t dataalloc; /* .bss/.data memory allocated when ELF file was loaded */
size_t textsize; /* Size of the ELF .text memory allocation */
size_t datasize; /* Size of the ELF .bss/.data memory allocation */
size_t textalign; /* Necessary alignment of .text */
size_t dataalign; /* Necessary alignment of .bss/.data */
off_t filelen; /* Length of the entire ELF file */
uintptr_t textalloc; /* .text memory allocated when ELF file was loaded */
uintptr_t dataalloc; /* .bss/.data memory allocated when ELF file was loaded */
size_t textsize; /* Size of the ELF .text memory allocation */
size_t datasize; /* Size of the ELF .bss/.data memory allocation */
size_t textalign; /* Necessary alignment of .text */
size_t dataalign; /* Necessary alignment of .bss/.data */
off_t filelen; /* Length of the entire ELF file */
Elf_Ehdr ehdr; /* Buffered ELF file header */
Elf_Ehdr ehdr; /* Buffered ELF file header */
FAR Elf_Shdr *shdr; /* Buffered ELF section headers */
uint8_t *iobuffer; /* File I/O buffer */

View File

@ -25,9 +25,6 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/symtab.h>
/****************************************************************************
* Public Functions Definitions
****************************************************************************/
@ -58,6 +55,7 @@ extern "C"
*
****************************************************************************/
struct symtab_s;
void exec_getsymtab(FAR const struct symtab_s **symtab, FAR int *nsymbols);
/****************************************************************************

View File

@ -30,9 +30,6 @@
#include <sys/types.h>
#include <elf.h>
#include <nuttx/arch.h>
#include <nuttx/symtab.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -117,6 +114,7 @@ typedef CODE int (*mod_uninitializer_t)(FAR void *arg);
* nexports - The number of symbols in the exported symbol table.
*/
struct symtab_s;
struct mod_info_s
{
mod_uninitializer_t uninitializer; /* Module uninitializer */

View File

@ -29,6 +29,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/symtab.h>
#include <nuttx/module.h>
#include <nuttx/lib/modlib.h>

View File

@ -31,6 +31,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/symtab.h>
#include <nuttx/lib/modlib.h>
#include "libc.h"

View File

@ -26,6 +26,7 @@
#include <assert.h>
#include <nuttx/symtab.h>
#include <nuttx/lib/modlib.h>
/****************************************************************************

View File

@ -51,6 +51,7 @@
#include <nuttx/compiler.h>
#include <nuttx/streams.h>
#include <nuttx/allsyms.h>
#include <nuttx/symtab.h>
#include "lib_dtoa_engine.h"
#include "lib_ultoa_invert.h"

View File

@ -23,6 +23,7 @@
****************************************************************************/
#include <nuttx/allsyms.h>
#include <nuttx/symtab.h>
/****************************************************************************
* Public Data

View File

@ -28,6 +28,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/symtab.h>
#include <nuttx/module.h>
#include <nuttx/lib/modlib.h>