mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
binfmt/modlib: reduce size of binary_s if CONFIG_LIBC_MODLIB is disabled
Test on nsh/sim before: sizeof(struct binary_s): 216 after: sizeof(struct binary_s): 56(-160) Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -68,8 +68,14 @@ struct binary_s
|
||||
|
||||
main_t entrypt; /* Entry point into a program module */
|
||||
FAR void *mapped; /* Memory-mapped, address space */
|
||||
|
||||
#ifdef CONFIG_LIBC_MODLIB
|
||||
struct module_s mod; /* Module context */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PIC
|
||||
FAR void *picbase; /* Position-independent */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARCH_ADDRENV
|
||||
/* Address environment.
|
||||
|
||||
Reference in New Issue
Block a user