binfmt: Add a configuration flag to store the module filename

This flag can be used to store the filename of a loaded module or
executable in binfmt. The filename is useful for example in debugging.
For example, gdb or a jtag debugger can be configured to automatically
fetch the symbols for the currently executing module.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
This commit is contained in:
Jukka Laitinen
2025-09-30 09:35:30 +03:00
committed by Xiang Xiao
parent 62660a692d
commit 5961b8bd1a
3 changed files with 17 additions and 0 deletions
+6
View File
@@ -89,3 +89,9 @@ config BINFMT_ELF_EXECUTABLE
Produce a full linked executable object as output.
endchoice
config BINFMT_STORE_FILENAME
bool "Store the binary filename"
default n
---help---
Store the filename of the loaded binary