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
* ELF program image.
*
* If CONFIG_ARCH_ADDRENV=n, elfalloc will be allocated using kmm_malloc() (or
* kmm_zalloc()). If CONFIG_ARCH_ADDRENV-y, then elfalloc will be allocated using
* If CONFIG_ARCH_ADDRENV=n, elfalloc will be allocated using kmm_malloc()
* (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
* of elfalloc (and stack) for each instance of a process.
*
* The alloc[] array in struct binary_s will hold memory that persists after
* the ELF module has been loaded.
* The alloc[] array in struct binary_s will hold memory that persists
* after the ELF module has been 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 */
/* Standard Functions, Identifiers and Commands *************************************/
/* Standard functions */
#define IEEE695_FUNC_F 0xa0
@ -347,6 +348,7 @@
#define IEEE695_SYMCLASS_DEFINE 4 /* C #define constant */
/* Helper Macros ********************************************************************/
/* These macros extract un-aligned, little-endian values from the object file */
#define IEEE695_GETUINT16(p) \
@ -441,7 +443,7 @@ extern "C"
#endif
/************************************************************************************
* Public Functions
* Public Functions Definitions
************************************************************************************/
#undef EXTERN

View File

@ -77,8 +77,9 @@ struct nxflat_loadinfo_s
/* Data Space (DSpace): This region contains all information that is
* referenced as data (other than the stack which is separately allocated).
*
* If CONFIG_ARCH_ADDRENV=n, DSpace will be allocated using kmm_malloc() (or
* kmm_zalloc()). If CONFIG_ARCH_ADDRENV-y, then DSpace will be allocated using
* If CONFIG_ARCH_ADDRENV=n, DSpace will be allocated using kmm_malloc()
* (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
* 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
@ -243,8 +244,8 @@ int nxflat_read(struct nxflat_loadinfo_s *loadinfo, char *buffer,
* Description:
* Bind the imported symbol names in the loaded module described by
* 'loadinfo' using the exported symbol values provided by 'symtab'
* After binding the module, clear the BSS region (which held the relocation
* data) in preparation for execution.
* After binding the module, clear the BSS region (which held the
* relocation data) in preparation for execution.
*
* Returned Value:
* 0 (OK) is returned on success and a negated errno is returned on

View File

@ -44,7 +44,7 @@
#include <nuttx/symtab.h>
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
#undef EXTERN
@ -60,11 +60,13 @@ extern "C"
* Name: exec_getsymtab
*
* 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:
* 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:
* None