OSDN Git Service

* elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
authorjakub <jakub>
Thu, 19 Aug 2004 07:47:20 +0000 (07:47 +0000)
committerjakub <jakub>
Thu, 19 Aug 2004 07:47:20 +0000 (07:47 +0000)
commit29329c8a820ec2b8941ccf9c97e635d9f8b5c509
treead41fabfdbb6eb84ebb1ed8cba76799bf5a5cc94
parent0ea96d31c886d64d718f35f2515f9560c4123621
* elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
entries (where fd_aux overlaps next entry's fd_func).
Add non_overlapping argument, use it.
(ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
ppc64_elf_size_stubs, ppc64_elf_relocate_section,
ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
as indexes into opd_sym_map/opd_adjust array.
* elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.

* emultempl/ppc64elf.em (non_overlapping_opd): New variable.
(ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
(OPTION_NON_OVERLAPPING_OPD): Define.
(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
--non-overlapping-opd option.
bfd/ChangeLog
bfd/elf64-ppc.c
bfd/elf64-ppc.h
ld/ChangeLog
ld/emultempl/ppc64elf.em