bfin: Initialize picrel to silence GCC warning
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 5 Jun 2020 13:22:56 +0000 (06:22 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 5 Jun 2020 13:22:56 +0000 (06:22 -0700)
bfd/ChangeLog
bfd/elf32-bfin.c

index 4971b878285aa39e851043d3bc991e4194e10827..bfcb337cda015c9f2aac5e8dda45da3863bfdeed 100644 (file)
@@ -1,5 +1,6 @@
 2020-06-05  H.J. Lu  <hongjiu.lu@intel.com>
 
+       PR ld/26080
        * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
        section.
 
index e067cdeaad9a28c775a3820aebe659f8663dc92e..31ae4a68755b9757f61748458d86d477fc64ba04 100644 (file)
@@ -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)
        {