Code: Select all
$ xtensa-esp32-elf-gcc -std=gnu99 -Og -ggdb -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -std=gnu99 -Og -ggdb -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -DWITH_POSIX -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"' -DHAVE_CONFIG_H -I/c/esp32/myapp/build/bootloader/../include -D BOOTLOADER_BUILD=1 -I /c/esp32/esp-idf/components/esp32/include -DESP_PLATFORM -D IDF_VER=\"v2.0-rc1-928-g99d5959d\" -MMD -MP -DESP_PLATFORM -D IDF_VER=\"v2.0-rc1-928-g99d5959d\" -MMD -MP -I /c/esp32/esp-idf/components/bootloader_support/include -I /c/esp32/esp-idf/components/bootloader_support/include_priv -I /c/esp32/esp-idf/components/bootloader_support/include_priv -I /c/esp32/esp-idf/components/log/include -I /c/esp32/esp-idf/components/spi_flash/include -I /c/esp32/esp-idf/components/micro-ecc/micro-ecc -I /c/esp32/esp-idf/components/soc/esp32/include -I /c/esp32/esp-idf/components/bootloader/src/main/include -I /c/esp32/myapp/build/bootloader/include -Isrc -c /c/esp32/esp-idf/components/bootloader_support/src/flash_encrypt.c -E
# 1 "C:/esp32/esp-idf/components/bootloader_support/src/flash_encrypt.c"
# 1 "D:\\SPB_Data//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "C:/esp32/esp-idf/components/bootloader_support/src/flash_encrypt.c"
# 15 "C:/esp32/esp-idf/components/bootloader_support/src/flash_encrypt.c"
# 1 "D:\\mingw\\include/strings.h" 1 3
# 11 "D:\\mingw\\include/strings.h" 3
# 1 "D:\\mingw\\include/string.h" 1 3
# 15 "D:\\mingw\\include/string.h" 3
# 1 "D:\\mingw\\include/_mingw.h" 1 3
# 32 "D:\\mingw\\include/_mingw.h" 3
# 33 "D:\\mingw\\include/_mingw.h" 3
# 16 "D:\\mingw\\include/string.h" 2 3
# 24 "D:\\mingw\\include/string.h" 3
# 1 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 1 3 4
# 216 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 3 4
# 216 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 3 4
typedef unsigned int size_t;
# 328 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 3 4
typedef short unsigned int wchar_t;
# 25 "D:\\mingw\\include/string.h" 2 3
# 36 "D:\\mingw\\include/string.h" 3
void* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) memchr (const void*, int, size_t) __attribute__ ((__pure__));
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) memcmp (const void*, const void*, size_t) __attribute__ ((__pure__));
void* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) memcpy (void*, const void*, size_t);
void* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) memmove (void*, const void*, size_t);
void* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) memset (void*, int, size_t);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strcat (char*, const char*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strchr (const char*, int) __attribute__ ((__pure__));
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strcmp (const char*, const char*) __attribute__ ((__pure__));
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strcoll (const char*, const char*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strcpy (char*, const char*);
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strcspn (const char*, const char*) __attribute__ ((__pure__));
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strerror (int);
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strlen (const char*) __attribute__ ((__pure__));
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strncat (char*, const char*, size_t);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strncmp (const char*, const char*, size_t) __attribute__ ((__pure__));
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strncpy (char*, const char*, size_t);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strpbrk (const char*, const char*) __attribute__ ((__pure__));
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strrchr (const char*, int) __attribute__ ((__pure__));
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strspn (const char*, const char*) __attribute__ ((__pure__));
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strstr (const char*, const char*) __attribute__ ((__pure__));
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strtok (char*, const char*);
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strxfrm (char*, const char*, size_t);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _strerror (const char *);
void* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _memccpy (void*, const void*, int, size_t);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _memicmp (const void*, const void*, size_t);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _strdup (const char*) __attribute__ ((__malloc__));
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _strcmpi (const char*, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _stricmp (const char*, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _stricoll (const char*, const char*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _strlwr (char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _strnicmp (const char*, const char*, size_t);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _strnset (char*, int, size_t);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _strrev (char*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _strset (char*, int);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _strupr (char*);
void __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _swab (const char*, char*, size_t);
# 90 "D:\\mingw\\include/string.h" 3
void* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) memccpy (void*, const void*, int, size_t);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) memicmp (const void*, const void*, size_t);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strdup (const char*) __attribute__ ((__malloc__));
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strcmpi (const char*, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) stricmp (const char*, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strcasecmp (const char*, const char *);
extern inline __attribute__((__gnu_inline__)) int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__))
strcasecmp (const char * __sz1, const char * __sz2)
{return _stricmp (__sz1, __sz2);}
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) stricoll (const char*, const char*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strlwr (char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strnicmp (const char*, const char*, size_t);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strncasecmp (const char *, const char *, size_t);
extern inline __attribute__((__gnu_inline__)) int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__))
strncasecmp (const char * __sz1, const char * __sz2, size_t __sizeMaxCompare)
{return _strnicmp (__sz1, __sz2, __sizeMaxCompare);}
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strnset (char*, int, size_t);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strrev (char*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strset (char*, int);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) strupr (char*);
void __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) swab (const char*, char*, size_t);
# 126 "D:\\mingw\\include/string.h" 3
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcscat (wchar_t*, const wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcschr (const wchar_t*, wchar_t);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcscmp (const wchar_t*, const wchar_t*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcscoll (const wchar_t*, const wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcscpy (wchar_t*, const wchar_t*);
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcscspn (const wchar_t*, const wchar_t*);
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcslen (const wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsncat (wchar_t*, const wchar_t*, size_t);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsncmp(const wchar_t*, const wchar_t*, size_t);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsncpy(wchar_t*, const wchar_t*, size_t);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcspbrk(const wchar_t*, const wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsrchr(const wchar_t*, wchar_t);
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsspn(const wchar_t*, const wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsstr(const wchar_t*, const wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcstok(wchar_t*, const wchar_t*);
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsxfrm(wchar_t*, const wchar_t*, size_t);
# 152 "D:\\mingw\\include/string.h" 3
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _wcsdup (const wchar_t*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _wcsicmp (const wchar_t*, const wchar_t*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _wcsicoll (const wchar_t*, const wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _wcslwr (wchar_t*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _wcsnicmp (const wchar_t*, const wchar_t*, size_t);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _wcsnset (wchar_t*, wchar_t, size_t);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _wcsrev (wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _wcsset (wchar_t*, wchar_t);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _wcsupr (wchar_t*);
# 173 "D:\\mingw\\include/string.h" 3
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2);
extern inline __attribute__((__gnu_inline__)) int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__))
wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2)
{return _wcsicmp (__ws1, __ws2);}
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsdup (const wchar_t*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsicmp (const wchar_t*, const wchar_t*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsicoll (const wchar_t*, const wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcslwr (wchar_t*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsnicmp (const wchar_t*, const wchar_t*, size_t);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsnset (wchar_t*, wchar_t, size_t);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsrev (wchar_t*);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsset (wchar_t*, wchar_t);
wchar_t* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wcsupr (wchar_t*);
# 12 "D:\\mingw\\include/strings.h" 2 3
# 16 "C:/esp32/esp-idf/components/bootloader_support/src/flash_encrypt.c" 2
# 1 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h" 1
# 17 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h"
# 1 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 1 3 4
# 149 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 3 4
typedef int ptrdiff_t;
# 18 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h" 2
# 1 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stdbool.h" 1 3 4
# 19 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h" 2
# 1 "D:\\mingw\\include/stdint.h" 1 3
# 24 "D:\\mingw\\include/stdint.h" 3
# 1 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 1 3 4
# 357 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 3 4
typedef unsigned int wint_t;
# 25 "D:\\mingw\\include/stdint.h" 2 3
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned uint32_t;
typedef long long int64_t;
typedef unsigned long long uint64_t;
typedef signed char int_least8_t;
typedef unsigned char uint_least8_t;
typedef short int_least16_t;
typedef unsigned short uint_least16_t;
typedef int int_least32_t;
typedef unsigned uint_least32_t;
typedef long long int_least64_t;
typedef unsigned long long uint_least64_t;
typedef signed char int_fast8_t;
typedef unsigned char uint_fast8_t;
typedef short int_fast16_t;
typedef unsigned short uint_fast16_t;
typedef int int_fast32_t;
typedef unsigned int uint_fast32_t;
typedef long long int_fast64_t;
typedef unsigned long long uint_fast64_t;
# 66 "D:\\mingw\\include/stdint.h" 3
typedef int intptr_t;
# 75 "D:\\mingw\\include/stdint.h" 3
typedef unsigned int uintptr_t;
typedef long long intmax_t;
typedef unsigned long long uintmax_t;
# 20 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h" 2
# 1 "C:/esp32/esp-idf/components/esp32/include/esp_err.h" 1
# 14 "C:/esp32/esp-idf/components/esp32/include/esp_err.h"
# 1 "D:\\mingw\\include/stdio.h" 1 3
# 26 "D:\\mingw\\include/stdio.h" 3
# 1 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 1 3 4
# 27 "D:\\mingw\\include/stdio.h" 2 3
# 1 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stdarg.h" 1 3 4
# 40 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
# 29 "D:\\mingw\\include/stdio.h" 2 3
# 129 "D:\\mingw\\include/stdio.h" 3
typedef struct _iobuf
{
char* _ptr;
int _cnt;
char* _base;
int _flag;
int _file;
int _charbuf;
int _bufsiz;
char* _tmpfname;
} FILE;
# 148 "D:\\mingw\\include/stdio.h" 3
extern FILE (*_imp___iob)[];
# 169 "D:\\mingw\\include/stdio.h" 3
FILE* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fopen (const char*, const char*);
FILE* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) freopen (const char*, const char*, FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fflush (FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fclose (FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) remove (const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) rename (const char*, const char*);
FILE* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) tmpfile (void);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) tmpnam (char*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _tempnam (const char*, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _rmtmp(void);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _unlink (const char*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) tempnam (const char*, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) rmtmp(void);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) unlink (const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) setvbuf (FILE*, char*, int, size_t);
void __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) setbuf (FILE*, char*);
# 204 "D:\\mingw\\include/stdio.h" 3
extern int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_fprintf(FILE*, const char*, ...);
extern int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_printf(const char*, ...);
extern int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_sprintf(char*, const char*, ...);
extern int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_snprintf(char*, size_t, const char*, ...);
extern int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_vfprintf(FILE*, const char*, __gnuc_va_list);
extern int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_vprintf(const char*, __gnuc_va_list);
extern int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_vsprintf(char*, const char*, __gnuc_va_list);
extern int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_vsnprintf(char*, size_t, const char*, __gnuc_va_list);
# 293 "D:\\mingw\\include/stdio.h" 3
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fprintf (FILE*, const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) printf (const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) sprintf (char*, const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vfprintf (FILE*, const char*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vprintf (const char*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vsprintf (char*, const char*, __gnuc_va_list);
# 308 "D:\\mingw\\include/stdio.h" 3
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_fprintf(FILE*, const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_printf(const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_sprintf(char*, const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_vfprintf(FILE*, const char*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_vprintf(const char*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_vsprintf(char*, const char*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _snprintf (char*, size_t, const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _vsnprintf (char*, size_t, const char*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _vscprintf (const char*, __gnuc_va_list);
# 331 "D:\\mingw\\include/stdio.h" 3
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) snprintf (char *, size_t, const char *, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vsnprintf (char *, size_t, const char *, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vscanf (const char * __restrict__, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vfscanf (FILE * __restrict__, const char * __restrict__,
__gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vsscanf (const char * __restrict__,
const char * __restrict__, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fscanf (FILE*, const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) scanf (const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) sscanf (const char*, const char*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fgetc (FILE*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fgets (char*, int, FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fputc (int, FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fputs (const char*, FILE*);
char* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) gets (char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) puts (const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) ungetc (int, FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _filbuf (FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _flsbuf (int, FILE*);
extern inline __attribute__((__gnu_inline__)) int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) getc (FILE* __F)
{
return (--__F->_cnt >= 0)
? (int) (unsigned char) *__F->_ptr++
: _filbuf (__F);
}
extern inline __attribute__((__gnu_inline__)) int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) putc (int __c, FILE* __F)
{
return (--__F->_cnt >= 0)
? (int) (unsigned char) (*__F->_ptr++ = (char)__c)
: _flsbuf (__c, __F);
}
extern inline __attribute__((__gnu_inline__)) int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) getchar (void)
{
return (--(&(*_imp___iob)[0])->_cnt >= 0)
? (int) (unsigned char) *(&(*_imp___iob)[0])->_ptr++
: _filbuf ((&(*_imp___iob)[0]));
}
extern inline __attribute__((__gnu_inline__)) int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) putchar(int __c)
{
return (--(&(*_imp___iob)[1])->_cnt >= 0)
? (int) (unsigned char) (*(&(*_imp___iob)[1])->_ptr++ = (char)__c)
: _flsbuf (__c, (&(*_imp___iob)[1]));}
# 412 "D:\\mingw\\include/stdio.h" 3
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fread (void*, size_t, size_t, FILE*);
size_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fwrite (const void*, size_t, size_t, FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fseek (FILE*, long, int);
long __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) ftell (FILE*);
void __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) rewind (FILE*);
# 457 "D:\\mingw\\include/stdio.h" 3
typedef long fpos_t;
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fgetpos (FILE*, fpos_t*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fsetpos (FILE*, const fpos_t*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) feof (FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) ferror (FILE*);
# 480 "D:\\mingw\\include/stdio.h" 3
void __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) clearerr (FILE*);
void __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) perror (const char*);
FILE* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _popen (const char*, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _pclose (FILE*);
FILE* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) popen (const char*, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) pclose (FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _flushall (void);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _fgetchar (void);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _fputchar (int);
FILE* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _fdopen (int, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _fileno (FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _fcloseall (void);
FILE* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _fsopen (const char*, const char*, int);
# 522 "D:\\mingw\\include/stdio.h" 3
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fgetchar (void);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fputchar (int);
FILE* __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fdopen (int, const char*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fileno (FILE*);
# 563 "D:\\mingw\\include/stdio.h" 3
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fwprintf (FILE*, const wchar_t*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wprintf (const wchar_t*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _snwprintf (wchar_t*, size_t, const wchar_t*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vfwprintf (FILE*, const wchar_t*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vwprintf (const wchar_t*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _vsnwprintf (wchar_t*, size_t, const wchar_t*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _vscwprintf (const wchar_t*, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fwscanf (FILE*, const wchar_t*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) wscanf (const wchar_t*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) swscanf (const wchar_t*, const wchar_t*, ...);
wint_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fgetwc (FILE*);
wint_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fputwc (wchar_t, FILE*);
wint_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) ungetwc (wchar_t, FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) swprintf (wchar_t*, const wchar_t*, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vswprintf (wchar_t*, const wchar_t*, __gnuc_va_list);
# 605 "D:\\mingw\\include/stdio.h" 3
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) snwprintf (wchar_t* s, size_t n, const wchar_t* format, ...);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __gnuc_va_list arg);
extern inline __attribute__((__gnu_inline__)) int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__))
vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __gnuc_va_list arg)
{ return _vsnwprintf ( s, n, format, arg);}
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vwscanf (const wchar_t * __restrict__, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vfwscanf (FILE * __restrict__,
const wchar_t * __restrict__, __gnuc_va_list);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) vswscanf (const wchar_t * __restrict__,
const wchar_t * __restrict__, __gnuc_va_list);
# 632 "D:\\mingw\\include/stdio.h" 3
wint_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _fgetwchar (void);
wint_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _fputwchar (wint_t);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _getw (FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _putw (int, FILE*);
wint_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fgetwchar (void);
wint_t __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) fputwchar (wint_t);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) getw (FILE*);
int __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) putw (int, FILE*);
# 18 "C:/esp32/esp-idf/components/esp32/include/esp_err.h" 2
# 1 "D:\\mingw\\include/assert.h" 1 3
# 38 "D:\\mingw\\include/assert.h" 3
void __attribute__ ((__cdecl__)) __attribute__ ((__nothrow__)) _assert (const char*, const char*, int) __attribute__ ((__noreturn__));
# 19 "C:/esp32/esp-idf/components/esp32/include/esp_err.h" 2
# 24 "C:/esp32/esp-idf/components/esp32/include/esp_err.h"
typedef int32_t esp_err_t;
# 45 "C:/esp32/esp-idf/components/esp32/include/esp_err.h"
void _esp_error_check_failed(esp_err_t rc, const char *file, int line, const char *function, const char *expression) __attribute__((noreturn));
# 21 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h" 2
# 1 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h" 1
# 20 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
# 1 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 1 3 4
# 21 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h" 2
# 1 "c:\\esp32\\myapp\\build\\include\\sdkconfig.h" 1
# 23 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h" 2
# 45 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
void spi_flash_init();
# 54 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
size_t spi_flash_get_chip_size();
# 63 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
esp_err_t spi_flash_erase_sector(size_t sector);
# 74 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
esp_err_t spi_flash_erase_range(size_t start_address, size_t size);
# 89 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
esp_err_t spi_flash_write(size_t dest_addr, const void *src, size_t size);
# 112 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
esp_err_t spi_flash_write_encrypted(size_t dest_addr, const void *src, size_t size);
# 123 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
esp_err_t spi_flash_read(size_t src_addr, void *dest, size_t size);
# 140 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
esp_err_t spi_flash_read_encrypted(size_t src, void *dest, size_t size);
typedef enum {
SPI_FLASH_MMAP_DATA,
SPI_FLASH_MMAP_INST,
} spi_flash_mmap_memory_t;
typedef uint32_t spi_flash_mmap_handle_t;
# 176 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
esp_err_t spi_flash_mmap(size_t src_addr, size_t size, spi_flash_mmap_memory_t memory,
const void** out_ptr, spi_flash_mmap_handle_t* out_handle);
# 189 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
void spi_flash_munmap(spi_flash_mmap_handle_t handle);
# 198 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
void spi_flash_mmap_dump();
# 214 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
size_t spi_flash_cache2phys(const void *cached);
# 234 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
const void *spi_flash_phys2cache(size_t phys_offs, spi_flash_mmap_memory_t memory);
# 240 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h" 3 4
_Bool
# 240 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
spi_flash_cache_enabled();
typedef void (*spi_flash_guard_start_func_t)(void);
typedef void (*spi_flash_guard_end_func_t)(void);
typedef void (*spi_flash_op_lock_func_t)(void);
typedef void (*spi_flash_op_unlock_func_t)(void);
# 283 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
typedef struct {
spi_flash_guard_start_func_t start;
spi_flash_guard_end_func_t end;
spi_flash_op_lock_func_t op_lock;
spi_flash_op_unlock_func_t op_unlock;
} spi_flash_guard_funcs_t;
# 298 "C:/esp32/esp-idf/components/spi_flash/include/esp_spi_flash.h"
void spi_flash_guard_set(const spi_flash_guard_funcs_t* funcs);
extern const spi_flash_guard_funcs_t g_flash_guard_default_ops;
extern const spi_flash_guard_funcs_t g_flash_guard_no_os_ops;
# 22 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h" 2
# 49 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h"
const void *bootloader_mmap(uint32_t src_addr, uint32_t size);
void bootloader_munmap(const void *mapping);
# 74 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h"
esp_err_t bootloader_flash_read(size_t src_addr, void *dest, size_t size,
# 74 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h" 3 4
_Bool
# 74 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h"
allow_decrypt);
# 92 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h"
esp_err_t bootloader_flash_write(size_t dest_addr, void *src, size_t size,
# 92 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h" 3 4
_Bool
# 92 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h"
write_encrypted);
# 101 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_flash.h"
esp_err_t bootloader_flash_erase_sector(size_t sector);
# 18 "C:/esp32/esp-idf/components/bootloader_support/src/flash_encrypt.c" 2
# 1 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_random.h" 1
# 15 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_random.h"
# 1 "c:\\msys32\\opt\\xtensa-esp32-elf\\lib\\gcc\\xtensa-esp32-elf\\5.2.0\\include\\stddef.h" 1 3 4
# 18 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_random.h" 2
# 33 "C:/esp32/esp-idf/components/bootloader_support/include_priv/bootloader_random.h"
void bootloader_random_enable(void);
void bootloader_random_disable(void);
void bootloader_fill_random(void *buffer, size_t length);
# 19 "C:/esp32/esp-idf/components/bootloader_support/src/flash_encrypt.c" 2
# 1 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h" 1
# 29 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h"
typedef enum {
ESP_IMAGE_SPI_MODE_QIO,
ESP_IMAGE_SPI_MODE_QOUT,
ESP_IMAGE_SPI_MODE_DIO,
ESP_IMAGE_SPI_MODE_DOUT,
ESP_IMAGE_SPI_MODE_FAST_READ,
ESP_IMAGE_SPI_MODE_SLOW_READ
} esp_image_spi_mode_t;
enum {
ESP_IMAGE_SPI_SPEED_40M,
ESP_IMAGE_SPI_SPEED_26M,
ESP_IMAGE_SPI_SPEED_20M,
ESP_IMAGE_SPI_SPEED_80M = 0xF
} esp_image_spi_freq_t;
typedef enum {
ESP_IMAGE_FLASH_SIZE_1MB = 0,
ESP_IMAGE_FLASH_SIZE_2MB,
ESP_IMAGE_FLASH_SIZE_4MB,
ESP_IMAGE_FLASH_SIZE_8MB,
ESP_IMAGE_FLASH_SIZE_16MB,
ESP_IMAGE_FLASH_SIZE_MAX
} esp_image_flash_size_t;
typedef struct {
uint8_t magic;
uint8_t segment_count;
uint8_t spi_mode;
uint8_t spi_speed: 4;
uint8_t spi_size: 4;
uint32_t entry_addr;
uint8_t encrypt_flag;
uint8_t extra_header[15];
} esp_image_header_t;
typedef struct {
uint32_t load_addr;
uint32_t data_len;
} esp_image_segment_header_t;
# 90 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h"
esp_err_t esp_image_load_header(uint32_t src_addr,
# 90 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h" 3 4
_Bool
# 90 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h"
log_errors, esp_image_header_t *image_header);
# 106 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h"
esp_err_t esp_image_load_segment_header(uint8_t index, uint32_t src_addr, const esp_image_header_t *image_header,
# 106 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h" 3 4
_Bool
# 106 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h"
log_errors, esp_image_segment_header_t *segment_header, uint32_t *segment_data_offset);
# 131 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h"
esp_err_t esp_image_basic_verify(uint32_t src_addr,
# 131 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h" 3 4
_Bool
# 131 "C:/esp32/esp-idf/components/bootloader_support/include/esp_image_format.h"
log_errors, uint32_t *length);