Re: [PATCH v3 5/7] mkimage: refactor a bunch of section data into a struct.

2018-02-23 Thread Peter Jones
On Fri, Feb 23, 2018 at 03:51:07PM +0100, Daniel Kiper wrote: > On Wed, Feb 21, 2018 at 03:20:27PM -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

Re: [PATCH v3 5/7] mkimage: refactor a bunch of section data into a struct.

2018-02-23 Thread Daniel Kiper
On Wed, Feb 21, 2018 at 03:20:27PM -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 v3 5/7] mkimage: refactor a bunch of section data into a struct.

2018-02-21 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_