Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ranlib(5) [netbsd man page]

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

ranlib -- a.out archive (library) table-of-contents format SYNOPSIS
#include <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". 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 begin- ning 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) BUGS
The <ranlib.h> header file, and the ranlib manual page, do not describe the table-of-contents used by ELF systems, which is that from the AT&T System V Release 4 UNIX ABI. BSD
June 6, 1993 BSD

Check Out this Related Man Page

ranlib(1)							   User Commands							 ranlib(1)

ranlib - convert archives to random libraries SYNOPSIS
ranlib archive DESCRIPTION
The ranlib utility was used in SunOS 4.x to add a table of contents to archive libraries, which converted each archive to a form that could be linked more rapidly. This is no longer needed, as the ar(1) command automatically provides all the functionality ranlib used to provide. This script is provided as a convenience for software developers who need to maintain Makefiles that are portable across a variety of oper- ating systems. EXIT STATUS
ranlib has exit status 0. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbtool | +-----------------------------+-----------------------------+ SEE ALSO
ar(1), ar.h(3HEAD), attributes(5) SunOS 5.11 28 Jun 2007 ranlib(1)
Man Page

5 More Discussions You Might Find Interesting

1. Programming

ELF-string table

hello everybody! I want to read the string table of an object file(which is in ELF format). I get the sh_name value but i cant find a way to read the value in the string table that this index represent. I program in C. thanx a lot folks! (3 Replies)
Discussion started by: nicos
3 Replies

2. Shell Programming and Scripting

Creating table in Unix

Hi All, In a given directory, I need to list the files present in it in the below given format as a table. File name Permission Number of Bytes File Type Telecom1 --w-r-x 1230 Directory Telecom2 ---x---x---x 450 Device file Telecom3 ... (7 Replies)
Discussion started by: mr_manii
7 Replies

3. Web Development

Display the contents of a table.

Dear Friends, Am an newbie to this domain. I have a table which is filled with contents which i need to be updated with,so am trying to design a flow which would read the data from the table and mail it to me at regular intervals. I could make out the flow using mailx command but want to... (3 Replies)
Discussion started by: gokulj
3 Replies

4. Shell Programming and Scripting

Shell script or command help to extract specific contents from a long list of content

Discussion started by: patrick87
2 Replies

5. Programming

Extract part of an archive to a different file

I need to save part of a file to a different one, start and end offset bytes are provided by two counters in long format. If the difference is big, how should I do it to prevent buffer overflow in java? (7 Replies)
Discussion started by: Tribe
7 Replies