summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2011-07-09 00:12:57 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2011-07-09 00:12:57 +0000
commit65db1c1be646bc764166d90f7c64b9a5e4954f27 (patch)
treee8c5aef38e3e7081a310cbd8e8e58439d4f7342d /lib
parenta55bda6d69a0c71b2da37ae7a64c8e98774e5150 (diff)
On hppa64 we need to use __gp instead of $global$.
Diffstat (limited to 'lib')
-rw-r--r--lib/csu/hppa64/crt0.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csu/hppa64/crt0.c b/lib/csu/hppa64/crt0.c
index 28cc23d81b7..686d4612407 100644
--- a/lib/csu/hppa64/crt0.c
+++ b/lib/csu/hppa64/crt0.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crt0.c,v 1.2 2005/08/04 16:33:05 espie Exp $ */
+/* $OpenBSD: crt0.c,v 1.3 2011/07/09 00:12:56 kettenis Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -75,10 +75,10 @@ __asm(
".proc\n\t"
".callinfo frame=0, calls\n\t"
".entry\n\t"
- "ldil L%$global$, %r27\n\t"
+ "ldil L%__gp, %r27\n\t"
".call\n\t"
"b ___start\n\t"
- "ldo R%$global$(%r27), %r27\n\t"
+ "ldo R%__gp(%r27), %r27\n\t"
".exit\n\t"
".procend\n\t");