From 8a4ba3a14258bb522f7dadf07d92faae99e59301 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 5 Jun 2020 06:22:56 -0700 Subject: [PATCH] bfin: Initialize picrel to silence GCC warning --- bfd/ChangeLog | 1 + bfd/elf32-bfin.c | 1 + 2 files changed, 2 insertions(+) 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) { -- 2.30.2