* 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:
parent
209e561041
commit
d4fb8fced1
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user