doc: flash: write_image writes only loadable sections

The code that takes only sections marked PT_LOAD is in
image_elf_read_headers in src/target/image.c

(Just trying to save some time for the next person with same question.)

Change-Id: I493c102c908fca2b7238276ddbbecbe8c7cd9a0a
Signed-off-by: Alexei Colin <ac@alexeicolin.com>
Reviewed-on: http://openocd.zylin.com/2348
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
__archive__
Alexei Colin 2014-10-19 17:46:05 -04:00 committed by Spencer Oliver
parent f83e1dc13f
commit fd25b3bcd1
1 changed files with 1 additions and 0 deletions

View File

@ -4844,6 +4844,7 @@ The @var{num} parameter is a value shown by @command{flash banks}.
@deffn Command {flash write_image} [erase] [unlock] filename [offset] [type] @deffn Command {flash write_image} [erase] [unlock] filename [offset] [type]
Write the image @file{filename} to the current target's flash bank(s). Write the image @file{filename} to the current target's flash bank(s).
Only loadable sections from the image are written.
A relocation @var{offset} may be specified, in which case it is added A relocation @var{offset} may be specified, in which case it is added
to the base address for each section in the image. to the base address for each section in the image.
The file [@var{type}] can be specified The file [@var{type}] can be specified