1.TH SCC-RANLIB 1 scc\-VERSION2.SH NAME3scc-ranlib \- generate index to archive4.SH SYNOPSIS5.B scc-ranlib6.RB [ \-t ]7.I archive ...8.SH DESCRIPTION9.B scc-ranlib10generates a symbol index for each11.I archive12and adds it as the first member of the archive.13The index maps each exported symbol defined in an object file member14to the offset of that member within the archive.15This index allows the linker to quickly locate the object files needed16to resolve external references without scanning the entire archive.17.PP18If an archive already contains a symbol index, it is replaced.19The index member is named20.B /21for archives of ELF or COFF object files or22.B __.SYMDEF23for archives of other supported formats.24.SH OPTIONS25.TP26.B \-t27Accepted for compatibility with other implementations of28.BR scc-ranlib (1)29but has no effect.30.SH OPERANDS31.TP32.I archive33The pathname of an archive file to be indexed.34One or more archive files must be specified.35.SH EXAMPLES36Generate a symbol index for a library archive:37.IP38.EX39scc-ranlib libfoo.a40.EE41.PP42Generate a symbol index for multiple archives at once:43.IP44.EX45scc-ranlib libfoo.a libbar.a46.EE47.SH DIAGNOSTICS48Error messages are written to standard error and have the format:49.IP50.EX51scc-ranlib: archive: message52.EE53.PP54If a member within the archive caused the error, the format is:55.IP56.EX57scc-ranlib: archive: member: message58.EE59.SH SEE ALSO60.BR scc-ar (1),61.BR scc-ld (1),62.BR scc-nm (1)