diff options
author | Alan Modra <amodra@gmail.com> | 2005-07-16 03:30:24 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-07-16 03:30:24 +0000 |
commit | 42fa7765a27b1d9691a1ca141408279bd9c3cd4e (patch) | |
tree | 9e4727d31f491ae57d9a998af3f43d9411c66d8f /ld/emultempl/ppc32elf.em | |
parent | 2005-07-16 Kelley Cook <kcook@gcc.gnu.org> (diff) | |
download | binutils-gdb-42fa7765a27b1d9691a1ca141408279bd9c3cd4e.tar.gz binutils-gdb-42fa7765a27b1d9691a1ca141408279bd9c3cd4e.tar.bz2 binutils-gdb-42fa7765a27b1d9691a1ca141408279bd9c3cd4e.zip |
bfd/
* elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack
for zero size sections. Don't set .sbss syms here.
* elf32-ppc.h (ppc_elf_set_sdata_syms): Adjust prototype.
ld/
* emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
(gld*_before_allocation): Call ldemul_do_assignments rather than
gld*_provide_init_fini_syms directly.
* emultempl/ppc32elf.em (gld*_after_allocation): Delete.
(ppc_do_assignments): New function.
(LDEMUL_AFTER_ALLOCATION): Don't define.
(LDEMUL_DO_ASSIGNMENTS): Define.
Diffstat (limited to 'ld/emultempl/ppc32elf.em')
-rw-r--r-- | ld/emultempl/ppc32elf.em | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/ld/emultempl/ppc32elf.em b/ld/emultempl/ppc32elf.em index 9a64da26c8c..ba59b80a978 100644 --- a/ld/emultempl/ppc32elf.em +++ b/ld/emultempl/ppc32elf.em @@ -118,13 +118,20 @@ ppc_before_allocation (void) } static void -gld${EMULATION_NAME}_after_allocation (void) +ppc_do_assignments (void) { + asection *s; + if (is_ppc_elf32_vec (link_info.hash->creator)) - { - if (!ppc_elf_set_sdata_syms (output_bfd, &link_info)) - einfo ("%X%P: cannot set sdata syms %E\n"); - } + ppc_elf_set_sdata_syms (output_bfd, &link_info); + + s = bfd_get_section_by_name (output_bfd, ".sbss"); + _bfd_elf_provide_section_bound_symbols (&link_info, s, + "__sbss_start", "__sbss_end"); + _bfd_elf_provide_section_bound_symbols (&link_info, s, + "___sbss_start", "___sbss_end"); + + gld${EMULATION_NAME}_provide_init_fini_syms (); } EOF @@ -170,4 +177,4 @@ PARSE_AND_LIST_ARGS_CASES=' # LDEMUL_AFTER_OPEN=ppc_after_open LDEMUL_BEFORE_ALLOCATION=ppc_before_allocation -LDEMUL_AFTER_ALLOCATION=gld${EMULATION_NAME}_after_allocation +LDEMUL_DO_ASSIGNMENTS=ppc_do_assignments |