[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "Not an ELF file"?



On Tue, Aug 05, 2003 at 08:49:29AM +0200, Goswin Brederlow wrote:
> Matt Kraai <kraai@alumni.cmu.edu> writes:
> 
> > On Sun, Jul 20, 2003 at 12:56:09AM +0200, Petter Reinholdtsen wrote:
> > > What is the solution to this error, which I get when I try to build d-i floppies out of the current archive:
> > > 
> > >   mklibs -v -d ./tmp/cdrom/tree/lib --root=./tmp/cdrom/tree `find
> > >     ./tmp/cdrom -type f -perm +0111 -o -name '*.so'`
> > >   Command failed with status 1 : readelf --program-headers
> > >     ./tmp/cdrom/tree/lib/debian-installer.d/S20templates
> > >   With output: readelf: Error: Unable to read in 28772 bytes of section headers
> > >   readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
> > 
> > This has been reported as bug #201740.
> 
> Why does it happen at all? S20templates does not match "-name '*.so'"
> so it should not be passed as an argument and nothing links to it so
> mklibs should not pull it in eigther.

I think it matches '-type f -perm +0111'.

-- 
Matt



Reply to: