svn commit: r340840 - head/lib/csu/mips

Andrew Turner andrew at FreeBSD.org
Fri Nov 23 16:33:04 UTC 2018


Author: andrew
Date: Fri Nov 23 16:33:03 2018
New Revision: 340840
URL: https://svnweb.freebsd.org/changeset/base/340840

Log:
  Mark the function called by the MIPS .init/.fini sequence with .local.
  
  As with r328939 we need to mark local symbols as such. Without this the
  assembly parser treats the symbols as global and created relocations
  against these private symbols.
  
  MFC with:	r339738
  Sponsored by:	DARPA, AFRL

Modified:
  head/lib/csu/mips/crt.h

Modified: head/lib/csu/mips/crt.h
==============================================================================
--- head/lib/csu/mips/crt.h	Fri Nov 23 16:32:27 2018	(r340839)
+++ head/lib/csu/mips/crt.h	Fri Nov 23 16:33:03 2018	(r340840)
@@ -36,6 +36,7 @@
     "1:				\n"					\
     ".cpload $ra		\n"					\
     ".set reorder		\n"					\
+    ".local	" __STRING(func) "\n"					\
     "jal	" __STRING(func)
 #else
 #define	INIT_CALL_SEQ(func)						\
@@ -45,6 +46,7 @@
     "1:				\n"					\
     ".set reorder		\n"					\
     ".cpsetup $ra, $v0, 1b	\n"					\
+    ".local	" __STRING(func) "\n"					\
     "jal	" __STRING(func)
 #endif
 


More information about the svn-src-all mailing list