From: Alexei Colin Date: Sun, 19 Oct 2014 21:46:05 +0000 (-0400) Subject: doc: flash: write_image writes only loadable sections X-Git-Tag: v0.9.0-rc1~225 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fd25b3bcd1ccde5ae4dc7e94a0ad3863ee016555;p=openocd 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 Reviewed-on: http://openocd.zylin.com/2348 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/doc/openocd.texi b/doc/openocd.texi index 88d89284..203a15db 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -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] 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 to the base address for each section in the image. The file [@var{type}] can be specified