svn commit: r353455 - head/lib/csu/powerpc
Justin Hibbits
jhibbits at FreeBSD.org
Sat Oct 12 20:53:42 UTC 2019
Author: jhibbits
Date: Sat Oct 12 20:53:40 2019
New Revision: 353455
URL: https://svnweb.freebsd.org/changeset/base/353455
Log:
[PowerPC] force applications linked with lib CSU to have .got
Summary:
This forces applications linked with lib CSU to have a .got, fixing binaries
linked with LLD9 after secure-plt was enabled on FreeBSD.
Submitted by: Alfredo Dal'Ava Junior (alfredo.junior_eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D21476
Modified:
head/lib/csu/powerpc/crt1.c
Modified: head/lib/csu/powerpc/crt1.c
==============================================================================
--- head/lib/csu/powerpc/crt1.c Sat Oct 12 19:03:07 2019 (r353454)
+++ head/lib/csu/powerpc/crt1.c Sat Oct 12 20:53:40 2019 (r353455)
@@ -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
More information about the svn-src-head
mailing list