From owner-svn-src-all@freebsd.org Fri Nov 23 16:33:04 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1201114B99E; Fri, 23 Nov 2018 16:33:04 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A7116B5E0; Fri, 23 Nov 2018 16:33:04 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2BA2021321; Fri, 23 Nov 2018 16:33:04 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wANGX33F030691; Fri, 23 Nov 2018 16:33:03 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wANGX3NM030690; Fri, 23 Nov 2018 16:33:03 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201811231633.wANGX3NM030690@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Fri, 23 Nov 2018 16:33:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r340840 - head/lib/csu/mips X-SVN-Group: head X-SVN-Commit-Author: andrew X-SVN-Commit-Paths: head/lib/csu/mips X-SVN-Commit-Revision: 340840 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4A7116B5E0 X-Spamd-Result: default: False [0.99 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_MEDIUM(0.72)[0.721,0]; NEURAL_HAM_SHORT(-0.13)[-0.133,0]; NEURAL_SPAM_LONG(0.40)[0.400,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2018 16:33:04 -0000 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