*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> libelf/elf_getshdr (3)              
Title
Content
Arch
Section
 

Contents


ELF_GETSHDR(3E)						       ELF_GETSHDR(3E)


NAME    [Toc]    [Back]

     elf_getshdr: elf32_getshdr, elf64_getshdr - retrieve class-dependent
     section header

SYNOPSIS    [Toc]    [Back]

     cc	[flag ...] file	...  -lelf [library ...]

     #include <libelf.h>

     Elf32_Shdr	*elf32_getshdr(Elf_Scn *scn);
     Elf64_Shdr	*elf32_getshdr(Elf_Scn *scn);

DESCRIPTION    [Toc]    [Back]

     For a 32-bit class	file, elf32_getshdr returns a pointer to a section
     header for	the section descriptor scn.  Otherwise,	the file is not	a 32-
     bit class file, scn was null, or an error occurred; elf32_getshdr then
     returns null.

     The header	includes the following members.

		  Elf32_Word	  sh_name;
		  Elf32_Word	  sh_type;
		  Elf32_Word	  sh_flags;
		  Elf32_Addr	  sh_addr;
		  Elf32_Off	  sh_offset;
		  Elf32_Word	  sh_size;
		  Elf32_Word	  sh_link;
		  Elf32_Word	  sh_info;
		  Elf32_Word	  sh_addralign;
		  Elf32_Word	  sh_entsize;

     If	the program is building	a new file, it is responsible for creating the
     file's ELF	header before creating sections.

     The 64-bit	class works identically, simply	replacing all instances	of 32
     in	the description	and table with 64.

SEE ALSO    [Toc]    [Back]

      
      
     elf(3E), elf_flag(3E), elf_getscn(3E), elf_strptr(3E).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
elf_getphdr IRIX retrieve class-dependent program header table
elf_getehdr IRIX retrieve class-dependent object file header
ldshread IRIX read an indexed/named section header of a common object file
ldnshread Tru64 read an indexed/named section header of a common object file
ldshread Tru64 read an indexed/named section header of a common object file
localeconv Tru64 Retrieve locale-dependent formatting parameters
elf_getarhdr IRIX retrieve archive member header
elf_xlate IRIX class-dependent data translation
inet6_rth_getaddr Tru64 Retrieve an address for an index from an IPv6 Routing header
setclass IRIX set or retrieve a window's class
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service