Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
authorIan Lance Taylor <ian@airs.com>
Sat, 31 Jan 1998 00:11:33 +0000 (00:11 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 31 Jan 1998 00:11:33 +0000 (00:11 +0000)
commit8a5863beeb2c3e3040a1d0aeed57bb7a2eaae157
tree4d4cad8e765ee9267b0cc5042a7003c161ed357f
parentb6675c1a8e75809c4a58ea2e19b625a36dc6abcf
Fri Jan 30 19:07:07 1998  Geoff Keating  <geoffk@ozemail.com.au>
* elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
to create .dynsbss and .rela.sbss sections.
(ppc_elf_adjust_dynamic_symbol): Put space for small data to be
copied from dynamic objects into .sbss.
(ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
use it.  Correct typo of .rela.sdata2.
(ppc_elf_finish_dynamic_symbol): Generate reloc to where we
put the data, which may now be in .sbss.
(ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
(elf_backend_create_dynamic_sections): Define as
ppc_elf_create_dynamic_sections.
* elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
against _GLOBAL_OFFSET_TABLE_.
  (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
shared libraries which refer to local symbols.  Make sure that the
test for allocating space for a reloc in a shared object is the
same as the test for emitting a reloc.
bfd/ChangeLog