Re: [PATCH v3 4/9] dump: Remove the section if when calculating the memory offset

2022-03-31 Thread Marc-André Lureau
On Wed, Mar 30, 2022 at 4:48 PM Janosch Frank wrote: > When s->shdr_num is 0 we'll add 0 bytes of section headers which is > equivalent to not adding section headers but with the multiplication > we can remove a if/else. > > Signed-off-by: Janosch Frank > Reviewed-by: Richard Henderson > Revie

[PATCH v3 4/9] dump: Remove the section if when calculating the memory offset

2022-03-30 Thread Janosch Frank
When s->shdr_num is 0 we'll add 0 bytes of section headers which is equivalent to not adding section headers but with the multiplication we can remove a if/else. Signed-off-by: Janosch Frank Reviewed-by: Richard Henderson --- dump/dump.c | 24 1 file changed, 8 insertio