[PATCH] doc: sandbox: Add a note of disabling LTO when using gdb
Bin Meng
bmeng.cn at gmail.com
Tue May 17 18:21:29 CEST 2022
Image created by LTO is not friendly to debugger, let's document this.
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---
doc/arch/sandbox.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/doc/arch/sandbox.rst b/doc/arch/sandbox.rst
index 246ab5b380..19167d22fb 100644
--- a/doc/arch/sandbox.rst
+++ b/doc/arch/sandbox.rst
@@ -477,6 +477,8 @@ board_init_f() and board_init_r().
This approach can be used on normal boards as well as sandbox.
+When debugging with gdb, it's better to disable Link Timer Optimizations
+(CONFIG_LTO = n).
SDL_CONFIG
----------
--
2.25.1
More information about the U-Boot
mailing list