Created attachment 11510 [details]
a possible fix that works for me
Commit 29866fa186ee3ebda5242221607dba360b2e541e introduced a bug where the file mode field is read from .a files as decimal, even though it is stored as octal.
This leads to seemingly random permissions on files extracted from an archive.
The master branch has been updated by Alan Modra <email@example.com>:
Author: Alan Modra <firstname.lastname@example.org>
Date: Fri Jan 4 12:18:36 2019 +1030
PR24061, powerpc-ibm-aix-ar sets bogus file permissions when extracting
Mode field should be read in octal, all the rest in decimal. Do so.
* coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
adjust all callers.
* coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.