diff --git a/configs/esp32-core/README.txt b/configs/esp32-core/README.txt index c3fdd0795b3..59cc9d4ab81 100644 --- a/configs/esp32-core/README.txt +++ b/configs/esp32-core/README.txt @@ -330,8 +330,8 @@ Debug Issues than OpenOCD is running in, invoke gdb. For example, for the template app, you would do this like such: - cd esp-idf-template - xtensa-esp32-elf-gdb -ex 'target remote localhost:3333' ./build/app-template.elf + cd nuttx + xtensa-esp32-elf-gdb -ex 'target remote localhost:3333' nuttx This should give you a gdb prompt. diff --git a/configs/esp32-core/scripts/esp32_common.ld b/configs/esp32-core/scripts/esp32_common.ld index cfabd620871..ba67d874517 100644 --- a/configs/esp32-core/scripts/esp32_common.ld +++ b/configs/esp32-core/scripts/esp32_common.ld @@ -135,7 +135,7 @@ SECTIONS /* C++ constructor and destructor tables, properly ordered: */ - __sinit = ABSOLUTE(.); + _sinit = ABSOLUTE(.); KEEP (*crtbegin.o(.ctors)) KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) KEEP (*(SORT(.ctors.*)))