PR24061, powerpc-ibm-aix-ar sets bogus file permissions when extracting
authorAlan Modra <amodra@gmail.com>
Fri, 4 Jan 2019 01:48:36 +0000 (12:18 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 4 Jan 2019 01:53:56 +0000 (12:23 +1030)
commit677bd4c69d0eda4f2ae635d793f23c0b1413a9e9
tree71a89df9551df3978e49e34c705a2c011efb0226
parent8261e52d1b8381252ede6754ea6cd1ba18810f1d
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.

PR 24061
PR 21786
* coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
adjust all callers.
(EQ_VALUE_IN_FIELD): Likewise.
* coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
bfd/ChangeLog
bfd/coff-rs6000.c
bfd/coff64-rs6000.c