[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
This commit is contained in:
jhibbits 2019-10-12 20:53:40 +00:00
parent d514a0e81a
commit 04d84ccd98

View File

@ -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