Note:
Parts of this snippet were taken from the Open Source utility "pax-utils" https://pax.grsecurity.net/,
this gist not intended for distribution or packaging into commercial software without the
consent of the original authors. These are the portions related to processing AR archives, which were
slighly modified to make them usable outside of the scanelf
utility.
This clipping is intented for individual use.
The code which was expropriated from grsecurity's open source project is under GNU Public License V2