Skip to content

Commit a870cee

Browse files
authored
1 parent 4a71f75 commit a870cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32_image_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def image2elf(filename, output_file, verbose=False):
154154
print_verbose(verbose, "\nAdding program headers")
155155
for (name, flags) in segments.items():
156156

157-
if (name == '.iram0.vectors'):
157+
if (name == '.iram0.vectors') and '.iram0.text' in section_data:
158158
# combine these
159159
size = len(section_data['.iram0.vectors']['data']) + len(section_data['.iram0.text']['data'])
160160
else:

0 commit comments

Comments
 (0)