This manual page is part of Xcode Tools version 3.2.2

To obtain these tools:

If you are running a version of Xcode Tools other than 3.2.2, view the documentation locally:

  • In Xcode

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



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

NAME
     ranlib -- archive (library) table-of-contents format

SYNOPSIS
     #include <mach-o/ranlib.h>

DESCRIPTION
     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" or "__.SYMDEF SORTED".  If
     the archive does not have multiple members that define symbol then "__.SYMDEF SORTED" should be used
     and the table of contents should be sorted by name.

     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
     ar(1), ranlib(1)

Darwin                                        November 16, 2001                                       Darwin

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...