Click to See Complete Forum and Search --> : ELF.. Magic bytes !?


dylan_101
10-09-2001, 11:46 PM
when i run: ldconfig
i get:

/lib/libFnlib.so.5.0 is not an ELF file - it has the wrong magic bytes at the start.

/lib/libFnlib.so.0 is too small, not checked.

i read the ldconfig man pages, but didn't know how to proceed .. any insight ?
:(

Strike
10-10-2001, 01:31 AM
Wherever you got that file from, it seems corrupted. Every ELF file has a certain set of bytes:

Every ELF file begins with a structure called the ELF header. This
structure is 52 bytes long, and contains several pieces of information
that describe the contents of the file. For example, the first sixteen
bytes contain an "identifier", which includes the file's magic-number
signature (7F 45 4C 46), and some one-byte flags indicating that the
contents are 32-bit or 64-bit, little-endian or big-endian, etc. Other
fields in the ELF header contain information such as: the target architecture; whether the ELF file is an executable, an object file,
or a shared-object library; the program's starting address; and the
locations within the file of the program header table and the
section header table.

So, it's not finding that sequence (7F 45 4C 46) in the spot it should, because your file is likely corrupted.