aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r--bfd/elf32-ppc.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 9b306e5..d4ef612 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -5307,13 +5307,10 @@ ppc_elf_set_sdata_syms (bfd *obfd, struct bfd_link_info *info)
}
s = bfd_get_section_by_name (obfd, ".sbss");
- 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;
- _bfd_elf_provide_symbol (info, "__sbss_end", val, s);
- _bfd_elf_provide_symbol (info, "___sbss_end", val, s);
+ _bfd_elf_provide_section_bound_symbols (info, s,
+ "__sbss_start", "__sbss_end");
+ _bfd_elf_provide_section_bound_symbols (info, s,
+ "___sbss_start", "___sbss_end");
return TRUE;
}