Re: [PATCH v2 1/3] mkimage: refactor a bunch of section data into a struct.

2018-02-21 Thread Peter Jones
On Wed, Feb 21, 2018 at 12:07:42PM +0100, Daniel Kiper wrote: > This change does not seem to be logical part of this patch. Okay, I've rolled all these things up into my local tree, get ready for another volley of patches. This version starts with 2 patches that are only vaguely related, that are

Re: [PATCH v2 1/3] mkimage: refactor a bunch of section data into a struct.

2018-02-21 Thread Daniel Kiper
On Tue, Feb 20, 2018 at 06:25:31PM -0500, Peter Jones wrote: > This basically moves a bunch of the section information we pass around a > lot into a struct, and passes a pointer to a single one of those > instead. > > Because it's more convenient, it also puts the section_vaddresses > calculations

[PATCH v2 1/3] mkimage: refactor a bunch of section data into a struct.

2018-02-20 Thread Peter Jones
This basically moves a bunch of the section information we pass around a lot into a struct, and passes a pointer to a single one of those instead. Because it's more convenient, it also puts the section_vaddresses calculations in locate_section(), which no longer returns the allocation for section_