Re: [PATCH] elfcompress: Don't rewrite file if no section data needs to be updated.

2018-07-24 Thread Mark Wielaard
On Tue, Jul 24, 2018 at 09:57:28AM +0200, Mark Wielaard wrote: > On Mon, Jul 23, 2018 at 06:36:37PM +0200, Igor Gnatenko wrote: > > Acked-by: Igor Gnatenko > > Thanks. Pushed to master. BTW. For those at home just reading the mailinglist and wondering why they only see one part of the converstat

Re: [PATCH] elfcompress: Don't rewrite file if no section data needs to be updated.

2018-07-24 Thread Mark Wielaard
On Mon, Jul 23, 2018 at 06:36:37PM +0200, Igor Gnatenko wrote: > Acked-by: Igor Gnatenko Thanks. Pushed to master.

Re: [PATCH] elfcompress: Don't rewrite file if no section data needs to be updated.

2018-07-22 Thread Mark Wielaard
Hi Igor, On Sun, Jul 22, 2018 at 10:06:47PM +0200, Igor Gnatenko wrote: > On Sun, Jul 22, 2018 at 5:20 PM Mark Wielaard wrote: > > > However, if nothing needs > > > compression/decompression - why to rewrite file? > > > > Indeed. That is why I wrote this patch. Because it might still change > > t

Re: [PATCH] elfcompress: Don't rewrite file if no section data needs to be updated.

2018-07-22 Thread Mark Wielaard
ction even if it would become larger or update/rewrite the file even if no section would be (de)compressed Cheers, Mark >From d906260e480c4566da9173b50ee1f4fc229f4102 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 21 Jul 2018 17:07:12 +0200 Subj

[PATCH] elfcompress: Don't rewrite file if no section data needs to be updated.

2018-07-21 Thread Mark Wielaard
If the input and output file are the same and no section needs to be updated we really don't need to rewrite the file. Check whether any matching section is already compressed or (GNU) decompressed. Skip the section if it doesn't need to be changed. If no section data needs updating end with succes