bfd/ELF: Fix writing of secondary reloc sections

Commit eb92a17c47ea ("bfd: move sec_info from ELF to general section
struct") introduced a typo in '_bfd_elf_write_secondary_reloc_section'
that made the internal relocations of secondary reloc sections
incorrectly looked up.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34970
Signed-off-by: Antoine Damhet <adamhet@scaleway.com>
diff --git a/bfd/elf.c b/bfd/elf.c
index 4fe5ee1..497d778 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -14012,7 +14012,7 @@
 	  last_sym = NULL;
 	  last_sym_idx = 0;
 	  dst_rela = hdr->contents;
-	  src_irel = sec->sec_info;
+	  src_irel = relsec->sec_info;
 	  if (src_irel == NULL)
 	    {
 	      _bfd_error_handler