gas: add visibility support using GNU syntax on XCOFF
authorClément Chigot <clement.chigot@atos.net>
Wed, 17 Nov 2021 15:20:48 +0000 (16:20 +0100)
committerClément Chigot <clement.chigot@atos.net>
Wed, 12 Jan 2022 08:08:17 +0000 (09:08 +0100)
commit09d4578fd96e7ceb262628cf27d8d9d8b903b529
tree9db674614027d6776d73e05bd437048847c786a7
parentadd588a8ef53a5f77f2abda08a5de643923c4cce
gas: add visibility support using GNU syntax on XCOFF

In order to ease port of GNU assembly code and especially ld testsuite,
this patch allows XCOFF to accept the usual GNU syntax for visibility.

PR 22085

gas/ChangeLog:

* config/tc-ppc.c (ppc_GNU_visibility): New function.
* testsuite/gas/ppc/aix.exp: Add new tests.
* testsuite/gas/ppc/xcoff-visibility-2-32.d: New test.
* testsuite/gas/ppc/xcoff-visibility-2-64.d: New test.
* testsuite/gas/ppc/xcoff-visibility-2.s: New test.
gas/config/tc-ppc.c
gas/testsuite/gas/ppc/aix.exp
gas/testsuite/gas/ppc/xcoff-visibility-2-32.d [new file with mode: 0644]
gas/testsuite/gas/ppc/xcoff-visibility-2-64.d [new file with mode: 0644]
gas/testsuite/gas/ppc/xcoff-visibility-2.s [new file with mode: 0644]