MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


ELF Library Functions                        elf32checksum(3ELF)



NAME
     elf32checksum, elf64checksum  -  return  checksum  of  elf
     image

SYNOPSIS
     cc [ flag ... ] file ... -lelf [ library ... ]
     #include 

     long elf32checksum(Elf *elf);


     long elf64checksum(Elf *elf);


DESCRIPTION
     The elf32checksum() function returns a simple  checksum  of
     selected  sections of the image identified by elf. The value
     is typically used as the .dynamic tag DTCHECKSUM,  recorded
     in dynamic executables and shared objects.


     Selected sections of the image are  used  to  calcluate  the
     checksum  in  order that its value is not affected by utili-
     ties such as strip(1).


     For the 64-bit class, replace 32 with 64 as appropriate.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Stable                      
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     elf(3ELF),  elfversion(3ELF),   gelf(3ELF),   libelf(3LIB),
     attributes(5)









SunOS 5.11          Last change: 11 Jul 2001                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™