* elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value.

This commit is contained in:
Alan Modra 2005-07-12 11:39:42 +00:00
parent f2942ea4dd
commit 632a56fd4c
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2005-07-12 Alan Modra <amodra@bigpond.net.au>
* elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value.
2005-07-11 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last

View File

@ -5307,12 +5307,11 @@ ppc_elf_set_sdata_syms (bfd *obfd, struct bfd_link_info *info)
}
s = bfd_get_section_by_name (obfd, ".sbss");
_bfd_elf_provide_symbol (info, "__sbss_start", 0, NULL);
_bfd_elf_provide_symbol (info, "___sbss_start", 0, NULL);
val = 0;
_bfd_elf_provide_symbol (info, "__sbss_start", val, s);
_bfd_elf_provide_symbol (info, "___sbss_start", val, s);
if (s != NULL)
val = s->size;
else
val = 0;
_bfd_elf_provide_symbol (info, "__sbss_end", val, s);
_bfd_elf_provide_symbol (info, "___sbss_end", val, s);
return TRUE;