Date: Fri, 23 Nov 2018 16:33:03 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r340840 - head/lib/csu/mips Message-ID: <201811231633.wANGX3NM030690@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811231633.wANGX3NM030690>