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

  man pages->NetBSD man pages -> ranlib (5)              
Title
Content
Arch
Section
 

RANLIB(5)

Contents


NAME    [Toc]    [Back]

     ranlib - a.out archive (library) table-of-contents format

SYNOPSIS    [Toc]    [Back]

     #include <ranlib.h>

DESCRIPTION    [Toc]    [Back]

     The archive table-of-contents command ranlib creates a table of contents
     for archives, containing object files, to be used by the link-editor
     ld(1).  It operates on archives created with the utility ar(1).

     The ranlib function prepends a new file to the archive which has three
     separate parts.  The first part is a standard archive header, which has a
     special name field,  "__.SYMDEF".

     The second part is a ``long'' followed by a list of ranlib structures.
     The long is the size, in bytes, of the list of ranlib structures.  Each
     of the ranlib structures consists of a zero based offset into the next
     section (a string table of symbols) and an offset from the beginning of
     the archive to the start of the archive file which defines the symbol.
     The actual number of ranlib structures is this number divided by the size
     of an individual ranlib structure.

     The third part is a ``long'' followed by a string table.  The long is the
     size, in bytes of the string table.

SEE ALSO    [Toc]    [Back]

      
      
     ar(1), ranlib(1)

BUGS    [Toc]    [Back]

     The <ranlib.h> header file, and the ranlib(5) manual page, do not
     describe the table-of-contents used by ELF systems, which is that from
     the AT&T System V.4 UNIX ABI.

BSD                              June 6, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
ar Tru64 Archive (library) file format
ar IRIX archive (library) file format
ranlib HP-UX regenerate archive symbol table
elf_getarsym IRIX retrieve archive symbol table
perltoc OpenBSD perl documentation table of contents
perltoc IRIX perl documentation table of contents
cpio IRIX format of cpio archive
tar Tru64 Archive file format
tar HP-UX format of tar tape archive
cpio HP-UX format of cpio archive
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service