Home Man
Today's Posts

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:
Select Section of Man Page:
Select Man Page Repository:

NetBSD 6.1.5 - man page for ranlib (netbsd section 5)

RANLIB(5)			     BSD File Formats Manual				RANLIB(5)

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

     #include <ranlib.h>

     The archive table-of-contents command ranlib creates a table of contents for archives, con-
     taining 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 ran-
     lib structure.

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

     ar(1), ranlib(1)

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

BSD					   June 6, 1993 				      BSD

All times are GMT -4. The time now is 11:39 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password