aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-06-05 06:22:56 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-06-05 06:22:56 -0700
commit8a4ba3a14258bb522f7dadf07d92faae99e59301 (patch)
tree505a91fa7c957e027db1004a6f6028fe05b8abb5 /bfd
parent981f151804e47290f4dcff507aeb530b3334ac17 (diff)
downloadgdb-8a4ba3a14258bb522f7dadf07d92faae99e59301.zip
gdb-8a4ba3a14258bb522f7dadf07d92faae99e59301.tar.gz
gdb-8a4ba3a14258bb522f7dadf07d92faae99e59301.tar.bz2
bfin: Initialize picrel to silence GCC warning
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog1
-rw-r--r--bfd/elf32-bfin.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4971b87..bfcb337 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c
index e067cde..31ae4a6 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)
{