include: nuttx: binfmt: fix nxstyle errors

Fix nxstyle errors for headers

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2021-01-25 12:57:31 +01:00 committed by Xiang Xiao
parent 36da2e2bc3
commit 186c2bbe44
4 changed files with 19 additions and 13 deletions

View File

@ -97,13 +97,14 @@ struct elf_loadinfo_s
/* elfalloc is the base address of the memory that is allocated to hold the /* elfalloc is the base address of the memory that is allocated to hold the
* ELF program image. * ELF program image.
* *
* If CONFIG_ARCH_ADDRENV=n, elfalloc will be allocated using kmm_malloc() (or * If CONFIG_ARCH_ADDRENV=n, elfalloc will be allocated using kmm_malloc()
* kmm_zalloc()). If CONFIG_ARCH_ADDRENV-y, then elfalloc will be allocated using * (or kmm_zalloc()).
* If CONFIG_ARCH_ADDRENV-y, then elfalloc will be allocated using
* up_addrenv_create(). In either case, there will be a unique instance * up_addrenv_create(). In either case, there will be a unique instance
* of elfalloc (and stack) for each instance of a process. * of elfalloc (and stack) for each instance of a process.
* *
* The alloc[] array in struct binary_s will hold memory that persists after * The alloc[] array in struct binary_s will hold memory that persists
* the ELF module has been loaded. * after the ELF module has been loaded.
*/ */
uintptr_t textalloc; /* .text memory allocated when ELF file was loaded */ uintptr_t textalloc; /* .text memory allocated when ELF file was loaded */

View File

@ -168,6 +168,7 @@
#define IEEE695_COMENT_PASS2 0x01 /* Records generated from Pass 2 of the linker */ #define IEEE695_COMENT_PASS2 0x01 /* Records generated from Pass 2 of the linker */
/* Standard Functions, Identifiers and Commands *************************************/ /* Standard Functions, Identifiers and Commands *************************************/
/* Standard functions */ /* Standard functions */
#define IEEE695_FUNC_F 0xa0 #define IEEE695_FUNC_F 0xa0
@ -347,6 +348,7 @@
#define IEEE695_SYMCLASS_DEFINE 4 /* C #define constant */ #define IEEE695_SYMCLASS_DEFINE 4 /* C #define constant */
/* Helper Macros ********************************************************************/ /* Helper Macros ********************************************************************/
/* These macros extract un-aligned, little-endian values from the object file */ /* These macros extract un-aligned, little-endian values from the object file */
#define IEEE695_GETUINT16(p) \ #define IEEE695_GETUINT16(p) \
@ -441,7 +443,7 @@ extern "C"
#endif #endif
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions Definitions
************************************************************************************/ ************************************************************************************/
#undef EXTERN #undef EXTERN

View File

@ -77,8 +77,9 @@ struct nxflat_loadinfo_s
/* Data Space (DSpace): This region contains all information that is /* Data Space (DSpace): This region contains all information that is
* referenced as data (other than the stack which is separately allocated). * referenced as data (other than the stack which is separately allocated).
* *
* If CONFIG_ARCH_ADDRENV=n, DSpace will be allocated using kmm_malloc() (or * If CONFIG_ARCH_ADDRENV=n, DSpace will be allocated using kmm_malloc()
* kmm_zalloc()). If CONFIG_ARCH_ADDRENV-y, then DSpace will be allocated using * (or kmm_zalloc()).
* If CONFIG_ARCH_ADDRENV-y, then DSpace will be allocated using
* up_addrenv_create(). In either case, there will be a unique instance * up_addrenv_create(). In either case, there will be a unique instance
* of DSpace (and stack) for each instance of a process. * of DSpace (and stack) for each instance of a process.
*/ */
@ -117,7 +118,7 @@ struct nxflat_loadinfo_s
}; };
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
@ -243,8 +244,8 @@ int nxflat_read(struct nxflat_loadinfo_s *loadinfo, char *buffer,
* Description: * Description:
* Bind the imported symbol names in the loaded module described by * Bind the imported symbol names in the loaded module described by
* 'loadinfo' using the exported symbol values provided by 'symtab' * 'loadinfo' using the exported symbol values provided by 'symtab'
* After binding the module, clear the BSS region (which held the relocation * After binding the module, clear the BSS region (which held the
* data) in preparation for execution. * relocation data) in preparation for execution.
* *
* Returned Value: * Returned Value:
* 0 (OK) is returned on success and a negated errno is returned on * 0 (OK) is returned on success and a negated errno is returned on

View File

@ -44,7 +44,7 @@
#include <nuttx/symtab.h> #include <nuttx/symtab.h>
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#undef EXTERN #undef EXTERN
@ -60,11 +60,13 @@ extern "C"
* Name: exec_getsymtab * Name: exec_getsymtab
* *
* Description: * Description:
* Get the current application symbol table selection as an atomic operation. * Get the current application symbol table selection as an atomic
* operation.
* *
* Input Parameters: * Input Parameters:
* symtab - The location to store the symbol table. * symtab - The location to store the symbol table.
* nsymbols - The location to store the number of symbols in the symbol table. * nsymbols - The location to store the number of symbols in the symbol
* table.
* *
* Returned Value: * Returned Value:
* None * None