[U-Boot-Users] [PATCH] load_elf_image() uses program headers instead of section headers
Wood, Jarrod Jay
jjwood at sandia.gov
Thu Jun 22 01:06:08 CEST 2006
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmd_elf-loadelfimage.patch
Type: application/octet-stream
Size: 7880 bytes
Desc: cmd_elf-loadelfimage.patch
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060621/8f21c229/attachment.obj
More information about the U-Boot
mailing list