From fd25b3bcd1ccde5ae4dc7e94a0ad3863ee016555 Mon Sep 17 00:00:00 2001 From: Alexei Colin Date: Sun, 19 Oct 2014 17:46:05 -0400 Subject: [PATCH] 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 --- doc/openocd.texi | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/openocd.texi b/doc/openocd.texi index 88d89284c2..203a15db40 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 -- 2.30.2