Re: gas: add visibility support using GNU syntax on XCOFF
authorAlan Modra <amodra@gmail.com>
Thu, 13 Jan 2022 05:12:13 +0000 (15:42 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 13 Jan 2022 06:20:15 +0000 (16:50 +1030)
commit1ffce3f87dc6e62d49b5aaa0bc29c6d4cfbc6db6
tree3884c44d0a8eb321b7ed2b580b7d23799966d9fd
parentc39828d4c90815053009043468cb981b3125a76b
Re: gas: add visibility support using GNU syntax on XCOFF

tc-ppc.c: In function 'ppc_comm':
tc-ppc.c:4560:40: error: 'visibility' may be used uninitialized in this function [-Werror=maybe-uninitialized]

With that fixed we hit lots of segfaults in the ld testsuite.

PR 22085
bfd/
* xcofflink.c (xcoff_link_input_bfd): Don't segfault on NULL
sym_hash.
gas/
* config/tc-ppc.c (ppc_comm): Init visibility.
bfd/xcofflink.c
gas/config/tc-ppc.c