image: use data_size in cert table header
Since we write the certificate table starting at data_size (not size), use this value when generating the cert table header. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
parent
63cfc10ce0
commit
142ba5c1b3
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ int image_write(struct image *image, const char *filename)
|
|||
/* pad to sizeof(pad)-byte boundary */
|
||||
padlen = align_up(len, sizeof(pad)) - len;
|
||||
|
||||
image->data_dir_sigtable->addr = image->size;
|
||||
image->data_dir_sigtable->addr = image->data_size;
|
||||
image->data_dir_sigtable->size = len + padlen;
|
||||
} else {
|
||||
image->data_dir_sigtable->addr = 0;
|
||||
|
|
Loading…
Reference in a new issue