ranlib adds or updates the table of contents to each archive so it can be linked by the link editor, ld.