mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
* linker.c (generic_link_add_symbol_list): If symbol is common,
set the BSF_OLD_COMMON flag.
This commit is contained in:
@ -1066,7 +1066,14 @@ generic_link_add_symbol_list (abfd, info, symbol_count, symbols)
|
||||
|| (bfd_get_section (p) != &bfd_und_section
|
||||
&& (! bfd_is_com_section (bfd_get_section (p))
|
||||
|| (bfd_get_section (h->sym) == &bfd_und_section))))
|
||||
h->sym = p;
|
||||
{
|
||||
h->sym = p;
|
||||
/* BSF_OLD_COMMON is a hack to support COFF reloc
|
||||
reading, and it should go away when the COFF
|
||||
linker is switched to the new version. */
|
||||
if (bfd_is_com_section (bfd_get_section (p)))
|
||||
p->flags |= BSF_OLD_COMMON;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user