* 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).
This commit is contained in:
Ian Lance Taylor 1994-01-24 23:54:51 +00:00
parent 209e561041
commit d4fb8fced1

View File

@ -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
{