diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 78680630c6e..2cacc9e27a2 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -12226,9 +12226,9 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg) struct elf_link_hash_entry *h; size_t len1, len2; char *name; - const char *const stub_str[] = { "long_branch", - "plt_branch", - "plt_call" }; + static const char stub_str[][16] = { "long_branch", + "plt_branch", + "plt_call" }; len1 = strlen (stub_str[stub_entry->type.main - 1]); len2 = strlen (stub_entry->root.string);