From 632a56fd4ce6b39accc46d34e3fa6b92fe07b805 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 12 Jul 2005 11:39:42 +0000 Subject: [PATCH] * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value. --- bfd/ChangeLog | 4 ++++ bfd/elf32-ppc.c | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a907b4c6db6..dad308cc3d0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2005-07-12 Alan Modra + + * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value. + 2005-07-11 H.J. Lu * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 09a59b486ae..9b306e51ced 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -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; -- 2.30.2