From d4fb8fced1fb770654c7ed860cc194eddab9f83e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 24 Jan 1994 23:54:51 +0000 Subject: [PATCH] * elfcode.h (swap_out_syms): Use elf_section_from_bfd_section to get the index of a common section, rather than always using SHN_COMMON (MIPS has multiple common sections). --- bfd/elfcode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 81a3bca17ff..98719121f9d 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -2095,7 +2095,8 @@ swap_out_syms (abfd) sym.st_size = value; /* Should retrieve this from somewhere... */ sym.st_value = 16; - sym.st_shndx = SHN_COMMON; + sym.st_shndx = elf_section_from_bfd_section (abfd, + syms[idx]->section); } else { -- 2.30.2