summaryrefslogtreecommitdiff
path: root/ldso/ldso/ld-uClibc.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2001-07-12 10:11:33 +0000
committerDavid Schleef <ds@schleef.org>2001-07-12 10:11:33 +0000
commit6e0b24b426c91b93f863a5187ce9e0577f00c4dd (patch)
tree6af1cfa79b7fc2fb799e87e317e3aff708f3354e /ldso/ldso/ld-uClibc.c
parentce8ee8d9b401c9c2828df3457815c2f4ceed4900 (diff)
Small fixups for powerpc
Diffstat (limited to 'ldso/ldso/ld-uClibc.c')
-rw-r--r--ldso/ldso/ld-uClibc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/ldso/ld-uClibc.c b/ldso/ldso/ld-uClibc.c
index 9e11cee10..920779dcd 100644
--- a/ldso/ldso/ld-uClibc.c
+++ b/ldso/ldso/ld-uClibc.c
@@ -244,6 +244,8 @@ DL_BOOT(unsigned long args)
__asm__("\tmov %%l7,%0\n\t" : "=r" (got))
#elif defined(__arm__)
__asm__("\tmov %0, r10\n\t" : "=r"(got));
+#elif defined(__powerpc__)
+ __asm__("\tbl _GLOBAL_OFFSET_TABLE_-4@local\n\t" : "=l"(got));
#else
/* Do things the slow way in C */
{