[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:
parent
a89a562b60
commit
6b672ba642
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353455
@ -102,3 +102,9 @@ __asm__(".text");
|
|||||||
__asm__("eprol:");
|
__asm__("eprol:");
|
||||||
__asm__(".previous");
|
__asm__(".previous");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef PIC
|
||||||
|
__asm__(".text\n"
|
||||||
|
"\t.global _GLOBAL_OFFSET_TABLE_\n"
|
||||||
|
"\t.reloc 0, R_PPC_NONE, _GLOBAL_OFFSET_TABLE_");
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user