Module Name:    src
Committed By:   skrll
Date:           Thu Sep 30 19:32:41 UTC 2010

Modified Files:
        src/libexec/ld.elf_so/arch/hppa: rtld_start.S

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/libexec/ld.elf_so/arch/hppa/rtld_start.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/ld.elf_so/arch/hppa/rtld_start.S
diff -u src/libexec/ld.elf_so/arch/hppa/rtld_start.S:1.8 src/libexec/ld.elf_so/arch/hppa/rtld_start.S:1.9
--- src/libexec/ld.elf_so/arch/hppa/rtld_start.S:1.8	Fri Sep 24 11:41:46 2010
+++ src/libexec/ld.elf_so/arch/hppa/rtld_start.S	Thu Sep 30 19:32:40 2010
@@ -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.  */

Reply via email to