Re: [Xen-devel] [PATCH v3 05/23] xsplice: Add helper elf routines (v4)

2016-02-12 Thread Andrew Cooper
On 12/02/16 20:47, Konrad Rzeszutek Wilk wrote: >>> +struct xsplice_elf_sec *xsplice_elf_sec_by_name(const struct xsplice_elf >>> *elf, >>> +const char *name) >>> +{ >>> +unsigned int i; >>> + >>> +for ( i = 0; i < elf->hdr->e_shnum; i++ ) >>

Re: [Xen-devel] [PATCH v3 05/23] xsplice: Add helper elf routines (v4)

2016-02-12 Thread Konrad Rzeszutek Wilk
> > +struct xsplice_elf_sec *xsplice_elf_sec_by_name(const struct xsplice_elf > > *elf, > > +const char *name) > > +{ > > +unsigned int i; > > + > > +for ( i = 0; i < elf->hdr->e_shnum; i++ ) > > +{ > > +if ( !strcmp(name, elf->se

Re: [Xen-devel] [PATCH v3 05/23] xsplice: Add helper elf routines (v4)

2016-02-12 Thread Andrew Cooper
On 12/02/16 18:05, Konrad Rzeszutek Wilk wrote: > From: Ross Lagerwall > > Add Elf routines and data structures in preparation for loading an > xSplice payload. > > We also add an macro that will print where we failed during > the ELF parsing - which is only available during debug builds. > In pro

[Xen-devel] [PATCH v3 05/23] xsplice: Add helper elf routines (v4)

2016-02-12 Thread Konrad Rzeszutek Wilk
From: Ross Lagerwall Add Elf routines and data structures in preparation for loading an xSplice payload. We also add an macro that will print where we failed during the ELF parsing - which is only available during debug builds. In production (debug=n) we only return the error value. Signed-off-