From: Ian Lance Taylor Date: Mon, 24 Jan 1994 23:54:51 +0000 (+0000) Subject: * elfcode.h (swap_out_syms): Use elf_section_from_bfd_section to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4fb8fced1fb770654c7ed860cc194eddab9f83e;p=binutils-gdb.git * 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). --- 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 {