The COFF archive format provides a standard mechanism for storing collections of object files. These collections are frequently referred to as “libraries” in programming documentation.
The first eight bytes of an archive consist of the file signature. The rest of the archive consists of a series of archive members, as follows:
An archive member header precedes each member. The following illustration shows the general structure of an archive:
Signature :”!<arch>\n” |
Header |
1st Linker Member |
Header |
2nd Linker Member |
Header |
Longnames Member |
Header |
Contents of OBJ File 1
(COFF format) |
Header |
Contents of OBJ File 2
(COFF format) |
.
Header |
Contents of OBJ File N
(COFF format) |
Figure 4. Archive File Structure