Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Oct 2019 20:53:41 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353455 - head/lib/csu/powerpc
Message-ID:  <201910122053.x9CKrfCp090962@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910122053.x9CKrfCp090962>