
I have modified the common/cmd_elf.c:load_elf_image function to support loading ELF images via reading the program headers instead of the section headers, which according to the TIS ELF v1.2 standard is the correct method. This was modified due to errors loading various ELF images such as the INTEGRITY RTOS. In addition, the current version also does not check to see if the ELF headers will be overwritten when the program sections are extracted, resulting in a machine check when reading the next section. The modified version moves the ELF image out of the way.
CHANGELOG: * Modified common/cmd_elf.c:load_elf_image() to use program headers instead of section headers to match TIS ELF v1.2 specification. The function also will detect and report if the ELF image will be overwritten during program data extraction and moves the image appropriately.