bootloader: Force bootloader_image_hdr to be word aligned

Possible due to linker order for this file to be placed unaligned,
causing failure from bootloader_flash_read() function.
This commit is contained in:
Angus Gratton
2020-06-02 17:03:32 +10:00
committed by Angus Gratton
parent bcbf2f2275
commit e6151c4394

View File

@@ -14,6 +14,7 @@
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
#include "sdkconfig.h" #include "sdkconfig.h"
#include "esp_attr.h"
#include "esp_log.h" #include "esp_log.h"
#include "bootloader_init.h" #include "bootloader_init.h"
#include "bootloader_flash.h" #include "bootloader_flash.h"
@@ -28,7 +29,7 @@
static const char *TAG = "boot"; static const char *TAG = "boot";
esp_image_header_t bootloader_image_hdr; esp_image_header_t WORD_ALIGNED_ATTR bootloader_image_hdr;
void bootloader_clear_bss_section(void) void bootloader_clear_bss_section(void)
{ {