diff options
author | Alan Modra <amodra@gmail.com> | 2005-07-12 11:39:42 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-07-12 11:39:42 +0000 |
commit | 632a56fd4ce6b39accc46d34e3fa6b92fe07b805 (patch) | |
tree | 86e671cb264e1ae3098f7e0d3d94421e001880ac /bfd/elf32-ppc.c | |
parent | f2942ea4dd6da2fb288214764c0be02e859d4177 (diff) | |
download | gdb-632a56fd4ce6b39accc46d34e3fa6b92fe07b805.zip gdb-632a56fd4ce6b39accc46d34e3fa6b92fe07b805.tar.gz gdb-632a56fd4ce6b39accc46d34e3fa6b92fe07b805.tar.bz2 |
* elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 09a59b4..9b306e5 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; |