aboutsummaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2019-10-12 20:53:40 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2019-10-12 20:53:40 +0000
commit6b672ba64246cb748d425d928a4561136f9d0074 (patch)
tree7068be9d25fcd5b80074c52d9a3dd1eb4469c9d4 /lib/csu
parenta89a562b6059f3269ad081059d37b343dfc5b92a (diff)
Notes
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/powerpc/crt1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/csu/powerpc/crt1.c b/lib/csu/powerpc/crt1.c
index c5ad29ca1d254..43d7a65aea9ee 100644
--- a/lib/csu/powerpc/crt1.c
+++ b/lib/csu/powerpc/crt1.c
@@ -102,3 +102,9 @@ __asm__(".text");
__asm__("eprol:");
__asm__(".previous");
#endif
+
+#ifndef PIC
+__asm__(".text\n"
+ "\t.global _GLOBAL_OFFSET_TABLE_\n"
+ "\t.reloc 0, R_PPC_NONE, _GLOBAL_OFFSET_TABLE_");
+#endif