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/hppa Add the magic branch instruction...
details: https://anonhg.NetBSD.org/src/rev/21863588d3ae
branches: trunk
changeset: 757872:21863588d3ae
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Sep 30 19:32:40 2010 +0000
description:
Add the magic branch instruction that is used by GCC's
__canonicalize_funcptr_for_compare() function to fixup relocations in
order to do function pointer comparisons.
>From OpenBSD.
diffstat:
libexec/ld.elf_so/arch/hppa/rtld_start.S | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 66652817872b -r 21863588d3ae libexec/ld.elf_so/arch/hppa/rtld_start.S
--- a/libexec/ld.elf_so/arch/hppa/rtld_start.S Thu Sep 30 18:43:07 2010 +0000
+++ b/libexec/ld.elf_so/arch/hppa/rtld_start.S Thu Sep 30 19:32:40 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld_start.S,v 1.8 2010/09/24 11:41:46 skrll Exp $ */
+/* $NetBSD: rtld_start.S,v 1.9 2010/09/30 19:32:40 skrll Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -146,6 +146,15 @@
* very closely tied to the shared-library call stub and the PLT stub, both
* inserted by the linker.
*/
+
+/*
+ * This is a magic branch instruction that is used by GCC's
+ * __canonicalize_funcptr_for_compare() function to fixup relocations
+ * in order to do function pointer comparisons.
+ */
+
+ bl _rtld_bind, %rp
+
ENTRY(_rtld_bind_start,HPPA_FRAME_SIZE)
/* Start stack calling convention. */
Home |
Main Index |
Thread Index |
Old Index