XCOFF C_HIDEXT and C_AIX_WEAKEXT classification
authorAlan Modra <amodra@gmail.com>
Mon, 6 Jul 2020 23:57:17 +0000 (09:27 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 7 Jul 2020 08:56:33 +0000 (18:26 +0930)
commit8af7926f455328bfc34456f6765c0cb1801e758e
treeced75399a6fc61d514b13ce8eed8bd6063e065a7
parent3bde5ad1a60ef773aa11bb4618a58ec7fd3172c1
XCOFF C_HIDEXT and C_AIX_WEAKEXT classification

If C_HIDEXT and C_AIX_WEAKEXT symbols aren't handled as globals by
coff_classify_symbol then we run into "warning: .. local symbol `some
garbage name' has no section".  These are of course both global
symbols, but C_HIDEXT is like a local in some respects and returning
COFF_SYMBOL_LOCAL for C_HIDEXT keeps nm output looking the same.
Fixes these fails on rs6000-aix5.1:

-FAIL: weakref tests, relocations
-FAIL: weakref tests, global syms
-FAIL: weakref tests, strong undefined syms
-FAIL: weakref tests, weak undefined syms

* coffcode.h (coff_classify_symbol): Handle C_HIDEXT and
C_AIX_WEAKEXT.
bfd/ChangeLog
bfd/coffcode.h