GELF_CHECKSUM(3) BSD Library Functions Manual GELF_CHECKSUM(3)NAME
elf32_checksum, elf64_checksum, gelf_checksum -- return the checksum of an ELF object
LIBRARY
ELF Access Library (libelf, -lelf)
SYNOPSIS
#include <libelf.h>
long
elf32_checksum(Elf *elf);
long
elf64_checksum(Elf *elf);
#include <gelf.h>
long
gelf_checksum(Elf *elf);
DESCRIPTION
These functions return a simple checksum of the ELF object described by their argument elf. The checksum is computed in way that allows its
value to remain unchanged in presence of modifications to the ELF object by utilities like strip(1).
Function elf32_checksum() returns a checksum for an ELF descriptor elf of class ELFCLASS32.
Function elf64_checksum() returns a checksum for an ELF descriptor elf of class ELFCLASS64.
Function gelf_checksum() provides a class-independent way retrieving the checksum for ELF object elf.
RETURN VALUES
These functions return the checksum of the ELF object, or zero in case an error was encountered.
ERRORS
These functions may fail with the following errors:
[ELF_E_ARGUMENT] Argument elf was NULL.
[ELF_E_ARGUMENT] Argument elf was not a descriptor for an ELF file.
[ELF_E_ARGUMENT] The ELF descriptor elf was not opened for reading or updating.
[ELF_E_CLASS] For functions elf32_checksum() and elf64_checksum(), ELF descriptor elf did not match the class of the called function.
[ELF_E_HEADER] The ELF object specified by argument elf had a malformed executable header.
[ELF_E_RESOURCE] An out of memory condition was detected during processing.
[ELF_E_SECTION] The ELF object specified by argument elf contained a section with a malformed section header.
[ELF_E_VERSION] The ELF object was of an unsupported version.
SEE ALSO strip(1), elf(3), gelf(3)BSD August 29, 2006 BSD
Check Out this Related Man Page
GELF_CHECKSUM(3) BSD Library Functions Manual GELF_CHECKSUM(3)NAME
elf32_checksum, elf64_checksum, gelf_checksum -- return the checksum of an ELF object
LIBRARY
ELF Access Library (libelf, -lelf)
SYNOPSIS
#include <libelf.h>
long
elf32_checksum(Elf *elf);
long
elf64_checksum(Elf *elf);
#include <gelf.h>
long
gelf_checksum(Elf *elf);
DESCRIPTION
These functions return a simple checksum of the ELF object described by their argument elf. The checksum is computed in way that allows its
value to remain unchanged in presence of modifications to the ELF object by utilities like strip(1).
Function elf32_checksum() returns a checksum for an ELF descriptor elf of class ELFCLASS32.
Function elf64_checksum() returns a checksum for an ELF descriptor elf of class ELFCLASS64.
Function gelf_checksum() provides a class-independent way retrieving the checksum for ELF object elf.
RETURN VALUES
These functions return the checksum of the ELF object, or zero in case an error was encountered.
ERRORS
These functions may fail with the following errors:
[ELF_E_ARGUMENT] Argument elf was NULL.
[ELF_E_ARGUMENT] Argument elf was not a descriptor for an ELF file.
[ELF_E_ARGUMENT] The ELF descriptor elf was not opened for reading or updating.
[ELF_E_CLASS] For functions elf32_checksum() and elf64_checksum(), ELF descriptor elf did not match the class of the called function.
[ELF_E_HEADER] The ELF object specified by argument elf had a malformed executable header.
[ELF_E_RESOURCE] An out of memory condition was detected during processing.
[ELF_E_SECTION] The ELF object specified by argument elf contained a section with a malformed section header.
[ELF_E_VERSION] The ELF object was of an unsupported version.
SEE ALSO strip(1), elf(3), gelf(3)BSD August 29, 2006 BSD
Is there any way to view the full contents of the command field when using ps -elf? I'm running a java process which has 4 lines worth of arguments. When i ps -elf no matter how much cut i use it will only display the first line of the command.
Thanks, (2 Replies)
when i give "ps -elf" or "ps" system gets hung.
if i press "^c" come out from it...
pls help..what should i do to get it resolved.
thanks
CKanth (4 Replies)
Hello,
This is not exactly relevant to Linux kernel but I'm gonna ask any way.
Is there any way I can modify a 64-bit ELF object file to make it look like 32-bit ELF object file and link it (using `ld`) with 32-bit ELF file?
I tried libelf but was unsuccessful. I had this pretty link... (1 Reply)
The binary file is
ELF-64 executable object file - IA64.
How i know that the source is
Is there any comamnd in unix i can read these kind of files or use a thirty party software?
Thanks for your help (8 Replies)
I get the following error when running /usr/bin/ps on Solaris 10 as a particular non-privileged user:
ld.so.1: ps: fatal: /usr/dt/lib/libXm.so.3: wrong ELF class: ELFCLASS32
Killed
However I can run /usr/bin/ps successfuly as root or as any other non-privileged user. What could it be about this... (5 Replies)
Discussion started by: aussieos
5 Replies
7. Post Here to Contact Site Administrators and Moderators
Hi,
Today, I've submitted a new tread in "Shell Programming and Scripting" forum, with title "-bash: ELF: command not found ". However, this thread has disappear.
Can somebody give me an explanation?
Regards. (3 Replies)
Hello All,
i am porting my application from SunSolaris to Linux (RHEL4).
When i compile my c/c++ code i am getting the following errors.
1. catastrophic error: could not open source file "sys/elf_386.h"
#include <sys/elf_386.h>
2. catastrophic error: could not open source file... (2 Replies)
Hi!!! How do I create a file .ELF? What code should I use, could help me with a simple code or example? I know programming to Windows by important languages but this seems to be more sistematical, and I really don't know how to. (2 Replies)
I was reading about ELF files and it has lead to Relocatable Code and also P.I.C. I have searched the net like never before and I can't find a whole lot of comprehensive/organized info on this topic. I really can't put together a decent enough question at this point.
Is... (2 Replies)
I have file like below
summit hvar_rgrpd_10d_hvams17_ _kgr_prod.rec checksum checksum us europe
summit hvar_rgrpd_10d_hvams17_ _kgr_prod.xml var summit us ... (5 Replies)
I have a script file that file type is
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs)
Now I want to get the contents of this file. How can I ?
Any help me to get cotents of this file type? (2 Replies)
Hoping theres something already out there like this.
I have a list of proccesses who's "ps -elf" (field 10) values I need to continuously monitor and if the values of field 10 start to signiciantly increase (double, triple) then do something. The field 10 is the "memory size" field.
(these... (4 Replies)
Hi,
I am using DB2 9.7 , configured odbc.ini file and exported environment variables but I am getting the following error.
error while loading shared libraries: libodbc.so.1: wrong ELF class: ELFCLASS64
Kindly help. (4 Replies)