From b4f4e59ffff89dd86068046263008836e145ae41 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 6 Jun 2005 12:59:59 +0000 Subject: bfd/ * elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd case, include addend when indexing .opd section map. (ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides clear opd_adjust array if no_opd_opt set. Tidy code. * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. ld/ * emultempl/ppc64elf.em (ppc_before_allocation): Always run ppc64_elf_edit_opd. --- ld/ChangeLog | 5 +++++ ld/emultempl/ppc64elf.em | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index d4a15a8..113bb82 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-06-06 Alan Modra + + * emultempl/ppc64elf.em (ppc_before_allocation): Always run + ppc64_elf_edit_opd. + 2005-06-05 H.J. Lu * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em index f002cf3..c1343b6 100644 --- a/ld/emultempl/ppc64elf.em +++ b/ld/emultempl/ppc64elf.em @@ -102,8 +102,8 @@ ppc_before_allocation (void) { if (stub_file != NULL) { - if (!no_opd_opt - && !ppc64_elf_edit_opd (output_bfd, &link_info, non_overlapping_opd)) + if (!ppc64_elf_edit_opd (output_bfd, &link_info, no_opd_opt, + non_overlapping_opd)) einfo ("%X%P: can not edit %s %E\n", "opd"); if (ppc64_elf_tls_setup (output_bfd, &link_info) && !no_tls_opt) -- cgit v1.1