* @brief Initialize ELF object. * * @param elf - ELF object pointer * * @return ESP_OK if success or other if failed. */
| 361 | * @return ESP_OK if success or other if failed. |
| 362 | */ |
| 363 | int esp_elf_init(esp_elf_t *elf) |
| 364 | { |
| 365 | ESP_LOGI(TAG, "ELF loader version: %d.%d.%d", ELF_LOADER_VER_MAJOR, ELF_LOADER_VER_MINOR, ELF_LOADER_VER_PATCH); |
| 366 | |
| 367 | if (!elf) { |
| 368 | return -EINVAL; |
| 369 | } |
| 370 | |
| 371 | memset(elf, 0, sizeof(esp_elf_t)); |
| 372 | |
| 373 | return 0; |
| 374 | } |
| 375 | |
| 376 | /** |
| 377 | * @brief Decode and relocate ELF data. |