Re: [PATCH] elfclassify tool

2019-07-19 Thread Dmitry V. Levin
On Fri, Jul 19, 2019 at 11:36:53PM +0200, Mark Wielaard wrote: > On Sat, Jul 20, 2019 at 12:23:08AM +0300, Dmitry V. Levin wrote: > > On Fri, Jul 19, 2019 at 11:00:49PM +0200, Florian Weimer wrote: > > > * Dmitry V. Levin: > > > > > > >> So, I don't think the code is wrong. We might want to tweak

Re: [PATCH] elfclassify tool

2019-07-19 Thread Mark Wielaard
On Sat, Jul 20, 2019 at 12:23:08AM +0300, Dmitry V. Levin wrote: > On Fri, Jul 19, 2019 at 11:00:49PM +0200, Florian Weimer wrote: > > * Dmitry V. Levin: > > > > >> So, I don't think the code is wrong. We might want to tweak the comment > > >> a bit though, to make it less definitive? > > > > > >

Re: [PATCH] elfclassify tool

2019-07-19 Thread Dmitry V. Levin
On Fri, Jul 19, 2019 at 11:00:49PM +0200, Florian Weimer wrote: > * Dmitry V. Levin: > > >> So, I don't think the code is wrong. We might want to tweak the comment > >> a bit though, to make it less definitive? > > > > What I'm saying is that has_soname is just a hint which is probably even > > le

Re: [PATCH] elfclassify tool

2019-07-19 Thread Florian Weimer
* Dmitry V. Levin: >> So, I don't think the code is wrong. We might want to tweak the comment >> a bit though, to make it less definitive? > > What I'm saying is that has_soname is just a hint which is probably even > less reliable than has_program_interpreter. If I recall correctly, I added the

Re: [PATCH] elfclassify tool

2019-07-19 Thread Dmitry V. Levin
On Fri, Jul 19, 2019 at 04:21:53PM +0200, Mark wrote: > On Fri, 2019-07-19 at 16:43 +0300, Dmitry V. Levin wrote: > > On Fri, Jul 19, 2019 at 02:47:09PM +0200, Mark Wielaard wrote: > > [...] > > > +static bool > > > +is_shared (void) > > > +{ > > > + if (!is_loadable ()) > > > +return false; >

Re: [PATCH] elfclassify tool

2019-07-19 Thread Mark
On Fri, 2019-07-19 at 16:43 +0300, Dmitry V. Levin wrote: > On Fri, Jul 19, 2019 at 02:47:09PM +0200, Mark Wielaard wrote: > [...] > > +static bool > > +is_shared (void) > > +{ > > + if (!is_loadable ()) > > +return false; > > + > > + /* The ELF type is very clear: this is an executable. */

Re: [PATCH] elfclassify tool

2019-07-19 Thread Dmitry V. Levin
On Fri, Jul 19, 2019 at 02:47:09PM +0200, Mark Wielaard wrote: [...] > +static bool > +is_shared (void) > +{ > + if (!is_loadable ()) > +return false; > + > + /* The ELF type is very clear: this is an executable. */ > + if (elf_type == ET_EXEC) > +return false; > + > + /* If the object

Re: [PATCH] elfclassify tool

2019-07-19 Thread Mark Wielaard
Hi, Some answers to this older discussion to explain some of my recent commits suggested for elfclassify. On Tue, 2019-04-16 at 13:38 +0200, Florian Weimer wrote: > * Mark Wielaard: > > --elf PATH return 0 whenever the file can be opened and a minimal ELF > > header can be read (it might not be a

Re: [PATCH] elfclassify tool

2019-07-19 Thread Mark Wielaard
Hi, Sorry, this took way too long. But I really like this code. On Thu, 2019-04-18 at 13:17 +0200, Florian Weimer wrote: > * Florian Weimer: > > > > BTW. Florian, the extra options are certainly not required for you to > > > implement to get eu-elfclassify accepted. They are just suggestions, >