diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-01-24 23:54:51 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-01-24 23:54:51 +0000 |
commit | d4fb8fced1fb770654c7ed860cc194eddab9f83e (patch) | |
tree | c1e983fe0f35e2c1f9e60fec037a71adf888a3b4 | |
parent | 209e5610416f7b2c28f90aafc02ea7c6e62c3359 (diff) | |
download | ppe42-binutils-d4fb8fced1fb770654c7ed860cc194eddab9f83e.tar.gz ppe42-binutils-d4fb8fced1fb770654c7ed860cc194eddab9f83e.zip |
* 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).
-rw-r--r-- | bfd/elfcode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 81a3bca17f..98719121f9 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 { |