Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ elf_getshdr(3E) — Amiga System V Release 4 Version 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

elf(3E)



elf_getshdr(3E)   MISC. REFERENCE MANUAL PAGES    elf_getshdr(3E)



NAME
     elfgetshdr: elf32getshdr - retrieve  class-dependent  sec-
     tion header

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

     #include <libelf.h>

     Elf32Shdr *elf32getshdr(ElfScn *scn);

DESCRIPTION
     For a 32-bit class file, elf32getshdr 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; elf32getshdr then returns null.  The header
     includes the following members.
                  Elf32Word      shname;
                  Elf32Word      shtype;
                  Elf32Word      shflags;
                  Elf32Addr      shaddr;
                  Elf32Off       shoffset;
                  Elf32Word      shsize;
                  Elf32Word      shlink;
                  Elf32Word      shinfo;
                  Elf32Word      shaddralign;
                  Elf32Word      shentsize;
     If the program is building a new file, it is responsible for
     creating the file's ELF header before creating sections.

SEE ALSO
     elf(3E), elfflag(3E), elfgetscn(3E), elfstrptr(3E).























                    Last change: ELF Library                    1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026