AR(5) — UNIX Programmer’s Manual
NAME
ar − archive (library) file format
SYNOPSIS
#include <ar.h>
DESCRIPTION
N.B.: This archive format is new to this distribution. See old(8) and arcv(1) for programs to deal with the old format.
The archive command ar is used to combine several files into one. Archives are used mainly as libraries to be searched by the link-editor ld.
A file produced by ar has a magic string at the start, followed by the constituent files, each preceded by a file header. The magic number and header layout as described in the include file are:
/∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗