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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"