Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so/arch/powerpc Ignore JMP_SLOT relocs when d...



details:   https://anonhg.NetBSD.org/src/rev/3956cb8520db
branches:  trunk
changeset: 536946:3956cb8520db
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Sep 24 15:04:48 2002 +0000

description:
Ignore JMP_SLOT relocs when doing non-PLT relocations.  The relalim trimming
hack doesn't always work, because ld(1) sometimes puts the sections in the
wrong order.

diffstat:

 libexec/ld.elf_so/arch/powerpc/ppc_reloc.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 6ee8afad7266 -r 3956cb8520db libexec/ld.elf_so/arch/powerpc/ppc_reloc.c
--- a/libexec/ld.elf_so/arch/powerpc/ppc_reloc.c        Tue Sep 24 14:47:56 2002 +0000
+++ b/libexec/ld.elf_so/arch/powerpc/ppc_reloc.c        Tue Sep 24 15:04:48 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ppc_reloc.c,v 1.25 2002/09/12 23:11:37 mycroft Exp $   */
+/*     $NetBSD: ppc_reloc.c,v 1.26 2002/09/24 15:04:48 mycroft Exp $   */
 
 /*-
  * Copyright (C) 1998  Tsubai Masanari
@@ -205,6 +205,9 @@
                symnum = ELF_R_SYM(rela->r_info);
 
                switch (ELF_R_TYPE(rela->r_info)) {
+#if 1 /* XXX Should not be necessary. */
+               case R_TYPE(JMP_SLOT):
+#endif
                case R_TYPE(NONE):
                        break;
 



Home | Main Index | Thread Index | Old Index