mirror of
https://github.com/apache/nuttx.git
synced 2025-12-07 01:44:23 +08:00
binfmt/elf: Allow the userspace ELF type to be defined by board configuration.
This change allows boards to define an additional kconfig option, which specifies the final link format of application executables. By selecting `CONFIG_BINFMT_ELF_RELOCATABLE`, and providing an appropriate linker script, applications can be fully linked, removing the need to process relocations.
This commit is contained in:
@@ -66,3 +66,22 @@ config BINFMT_CONSTRUCTORS
|
||||
---help---
|
||||
Built-in support for C++ constructors in loaded modules. Currently
|
||||
only support for ELF binary formats.
|
||||
|
||||
choice
|
||||
prompt "File output format"
|
||||
default BINFMT_ELF_RELOCATABLE
|
||||
---help---
|
||||
Defines the type of ELF file produced by the NuttX build system.
|
||||
|
||||
config BINFMT_ELF_RELOCATABLE
|
||||
bool "Relocatable ELF"
|
||||
---help---
|
||||
Produce a relocatable object as output. This is also known as partial linking.
|
||||
|
||||
config BINFMT_ELF_EXECUTABLE
|
||||
bool "Executable ELF"
|
||||
depends on ARCH_HAVE_ELF_EXECUTABLE
|
||||
---help---
|
||||
Produce a full linked executable object as output.
|
||||
|
||||
endchoice
|
||||
|
||||
Reference in New Issue
Block a user