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

2022-03-11 Thread Richard Henderson
On 3/10/22 03:08, 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 --- dump/dump.c | 24 1 file changed,

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

2022-03-10 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 --- dump/dump.c | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --g