From owner-svn-src-all@freebsd.org Fri Jan 3 23:31:38 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B2B441F6940; Fri, 3 Jan 2020 23:31:38 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qLlG4NvDz4VGL; Fri, 3 Jan 2020 23:31:38 +0000 (UTC) (envelope-from jhb@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 91F063FF0; Fri, 3 Jan 2020 23:31:38 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 003NVcaI011192; Fri, 3 Jan 2020 23:31:38 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 003NVcNk011191; Fri, 3 Jan 2020 23:31:38 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <202001032331.003NVcNk011191@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Fri, 3 Jan 2020 23:31:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r356339 - head/share/mk X-SVN-Group: head X-SVN-Commit-Author: jhb X-SVN-Commit-Paths: head/share/mk X-SVN-Commit-Revision: 356339 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, 03 Jan 2020 23:31:38 -0000 Author: jhb Date: Fri Jan 3 23:31:38 2020 New Revision: 356339 URL: https://svnweb.freebsd.org/changeset/base/356339 Log: Set correct lib32 MACHINE_ARCH for mips64el*. Use "mipsel" instead of "mips" as the 32-bit MACHINE_ARCH when building lib32 for little-endian 64-bit MIPS targets. This fixes an error where some objects were compiled as LE and others compiled as BE causing a link error for rtld32. Reviewed by: emaste Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D23028 Modified: head/share/mk/bsd.compat.mk Modified: head/share/mk/bsd.compat.mk ============================================================================== --- head/share/mk/bsd.compat.mk Fri Jan 3 22:47:31 2020 (r356338) +++ head/share/mk/bsd.compat.mk Fri Jan 3 23:31:38 2020 (r356339) @@ -79,10 +79,11 @@ LIB32CPUFLAGS= -target mips-unknown-freebsd13.0 .endif LIB32CPUFLAGS+= -mabi=32 LIB32_MACHINE= mips -LIB32_MACHINE_ARCH= mips .if ${COMPAT_ARCH:Mmips64el*} != "" +LIB32_MACHINE_ARCH= mipsel _EMULATION= elf32ltsmip_fbsd .else +LIB32_MACHINE_ARCH= mips _EMULATION= elf32btsmip_fbsd .endif LIB32WMAKEFLAGS= LD="${XLD} -m ${_EMULATION}"