esp-idf/tools/test_apps/system/bootloader_sections
Mahavir Jain 40c1529b4b
bootloader_support: fix stringop-overflow warning with PERF compiler optimization
This commit fixes build issue because of function `bootloader_common_reset_rtc_retain_mem`
getting inlined with compiler optimization level set to `PERF` (-O2).

Build failure log:
-----------------

In function 'bootloader_common_reset_rtc_retain_mem',
    inlined from 'bootloader_common_update_rtc_retain_mem' at /h/esp-idf/components/bootloader_support/src/bootloader_common_loader.c:183:13:
/h/esp-idf/components/bootloader_support/src/bootloader_common_loader.c:159:5: error: 'memset' writing 16 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
  159 |     memset(rtc_retain_mem, 0, sizeof(rtc_retain_mem_t));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-05 13:40:22 +05:30
..
main Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
CMakeLists.txt tools: Increase the minimal supported CMake version to 3.16 2022-06-01 06:35:02 +00:00
partitions_example.csv test_apps: add anti rollback configuration for bootloader build 2020-09-30 12:21:24 +05:30
README.md docs: changes docs supported targets tables 2022-07-14 08:26:32 +08:00
sdkconfig.ci.anti_rollback efuse: Burn operation does not block reading 2021-06-18 11:52:47 +08:00
sdkconfig.ci.default ci: add script to check section references 2020-09-03 18:14:17 +02:00
sdkconfig.ci.flash_encryption efuse(esp32): Deprecate esp_efuse_burn_new_values() & esp_efuse_write_random_key() 2021-06-17 07:21:36 +08:00
sdkconfig.ci.rtc_retain bootloader_support: fix stringop-overflow warning with PERF compiler optimization 2022-09-05 13:40:22 +05:30
sdkconfig.defaults ci: add script to check section references 2020-09-03 18:14:17 +02:00

Supported Targets ESP32 ESP32-C3 ESP32-S2 ESP32-S3

We have no rtc memory on ESP32-C2.