diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-07-16 03:30:24 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2005-07-16 03:30:24 +0000 |
commit | e5ca1feb24840a9430476be72b7ac88c413c950b (patch) | |
tree | dd34e611d3afa541dcbc8cb6dfc088c2f2503542 /bfd/elf32-ppc.c | |
parent | ed645ad76fb5b0342f0c7ccf61a193d7c233f5d6 (diff) | |
download | binutils-redhat-e5ca1feb24840a9430476be72b7ac88c413c950b.tar.gz |
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 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index d4ef6120d2..16d11c40f0 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -5261,7 +5261,7 @@ ppc_elf_relax_section (bfd *abfd, statement runs the risk of section alignment affecting where the section starts. */ -bfd_boolean +void ppc_elf_set_sdata_syms (bfd *obfd, struct bfd_link_info *info) { struct ppc_elf_link_hash_table *htab; @@ -5286,16 +5286,9 @@ ppc_elf_set_sdata_syms (bfd *obfd, struct bfd_link_info *info) if (s) { /* VxWorks executables are relocatable, so the sdata base symbols - must be section-relative. If the section is zero sized leave - them as absolute symbols to avoid creationg an unused - output section. */ + must be section-relative. */ val = 32768; lsect->sym_val = val + s->vma; - if (s->size == 0) - { - val += s->vma; - s = NULL; - } } else { @@ -5305,13 +5298,6 @@ ppc_elf_set_sdata_syms (bfd *obfd, struct bfd_link_info *info) _bfd_elf_provide_symbol (info, lsect->sym_name, val, s); } - - s = bfd_get_section_by_name (obfd, ".sbss"); - _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; } /* Fill in the address for a pointer generated in a linker section. */ |