From: H.J. Lu Date: Fri, 5 Jun 2020 13:22:56 +0000 (-0700) Subject: bfin: Initialize picrel to silence GCC warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a4ba3a14258bb522f7dadf07d92faae99e59301;p=binutils-gdb.git bfin: Initialize picrel to silence GCC warning --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4971b878285..bfcb337cda0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,6 @@ 2020-06-05 H.J. Lu + PR ld/26080 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC section. diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c index e067cdeaad9..31ae4a68755 100644 --- a/bfd/elf32-bfin.c +++ b/bfd/elf32-bfin.c @@ -2552,6 +2552,7 @@ bfinfdpic_relocate_section (bfd * output_bfd, h = NULL; sym = NULL; sec = NULL; + picrel = NULL; if (r_symndx < symtab_hdr->sh_info) {