mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
* elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2002-04-15 Alan Modra <alan@weed.local>
|
||||||
|
|
||||||
|
* elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
|
||||||
|
|
||||||
2002-04-12 Michael Snyder <msnyder@redhat.com>
|
2002-04-12 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
* bfd-in.h (bfd_get_section_lma): New access macro.
|
* bfd-in.h (bfd_get_section_lma): New access macro.
|
||||||
|
@ -2542,7 +2542,8 @@ ppc_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
|
|||||||
{
|
{
|
||||||
if (sym->st_shndx == SHN_COMMON
|
if (sym->st_shndx == SHN_COMMON
|
||||||
&& !info->relocateable
|
&& !info->relocateable
|
||||||
&& sym->st_size <= elf_gp_size (abfd))
|
&& sym->st_size <= elf_gp_size (abfd)
|
||||||
|
&& info->hash->creator->flavour == bfd_target_elf_flavour)
|
||||||
{
|
{
|
||||||
/* Common symbols less than or equal to -G nn bytes are automatically
|
/* Common symbols less than or equal to -G nn bytes are automatically
|
||||||
put into .sdata. */
|
put into .sdata. */
|
||||||
|
Reference in New Issue
Block a user