Reputation: 3509
I need to access an ar created file, but I cannot find a specification document defining the format. Can someone point me in the right direction?
Upvotes: 8
Views: 2559
Reputation: 3945
It seems that GNU binutils does not have documentation for the file format.
I believe the best reference out there is in the ar(5) manual page from FreeBSD. The ar
utility was removed in version 5.0 but the manpage for 4.11 is still available.
As usual, the header details can be found in the header files:
Also, the Wikipedia page for the AR file format has a nice diagram that describes the file format (it is from a .deb package which is also an ar
file).
This file has a very simple structure:
ar
file).Upvotes: 2
Reputation:
Some information on IBM website: http://pic.dhe.ibm.com/infocenter/aix/v7r1/index.jsp?topic=%2Fcom.ibm.aix.files%2Fdoc%2Faixfiles%2Far_big.htm
Upvotes: 0
Reputation: 224834
From Wikipedia:
The ar format has never been standardized; modern archives are based on a common format with two known variants, BSD and GNU.
More information is there, too.
Upvotes: 6