From owner-svn-src-head@freebsd.org Wed Aug 15 23:36:04 2018 Return-Path: Delivered-To: svn-src-head@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 B80F710743E4 for ; Wed, 15 Aug 2018 23:36:04 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EC9282C3B for ; Wed, 15 Aug 2018 23:36:04 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x235.google.com with SMTP id l14-v6so2409520iob.7 for ; Wed, 15 Aug 2018 16:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=pge+KMotrTFALfMJv3UsScQmFUGr+Xi2xqhN8n5Sq3U=; b=aPmoo92bU5veptklGtO4aEF1/p2dw1X+/ptIZz4FpJKMBHylp2bRlyEs42Ipetz2FX PwZjrZUPDjRwPdatqI1XW/0wVtlRsFLbfYl0tBwF1mJY1uJf2DeqJ3B/T9GbtlDJ1K1c K9nLz0ln3tWkr1CDbmaMii/r5PIb3JCYHNL7l2wJNSalfgh3VRvPFkwBAUu5EknxICuN GUCrqie9EZRcJTvK4j4Tz0bgLthdsfW1OOwdLgfHrynI/7ZLLgpdz5qHhXSsFjrx0DD+ 4BjxHbWyET9ZoGYV2wW/5ETaVlSOcVcfLWJNAFtW1UwVi8CIp/rfAtAgvTxd0vK6sOGR i/ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=pge+KMotrTFALfMJv3UsScQmFUGr+Xi2xqhN8n5Sq3U=; b=hzv2BzkNRwjFcJzRtwYA3aH5YfogDmAHv5TusG5fRcx9jpkkdqG5ecMBNHSRIloHPc cCTKmr8cOwMkDgfFSt9qz5prMEtp+cDbgAnB88NR+JuB7c1yq7rhOflastOo7tI59uW4 N1NJ7jGU1TI6V5KyjTSPdIDTsG6hiw3ggt8q6a1WKX2er+nxJKhZxeaFSmwEGRsbzznN t0fOtoH9RF0lmmIw1yuxObn6xtI8zWPvHgq9bwwU15trqOQXgYvEr847a0KbW99/ic+A /Zm6MGgHnnw9UFFqRnFJz3u5UUfoPik+ANvC/1vbQ15h99WHemj6yylVfcBYZpWbMijM FCuA== X-Gm-Message-State: AOUpUlFfKO/ZJl9rZf0uIkQmPJLiPjgCRMZT+GMbR8YgT8Ut2T3oSDE8 Sg/qbvDltLybQPw1WYwgc8uobql/ArvdGxSfjDxcOA== X-Google-Smtp-Source: AA+uWPxhNImjMUF05VSohRC9kkiuEo3SQxhOcMmCiHwZ9tfovVFw67fOrNeIUX8ugD50meQGX6k0TXK62438CnUNHK8= X-Received: by 2002:a6b:d004:: with SMTP id x4-v6mr23434561ioa.299.1534376163375; Wed, 15 Aug 2018 16:36:03 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:257:0:0:0:0:0 with HTTP; Wed, 15 Aug 2018 16:36:02 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: References: <201808152031.w7FKVCVa058677@repo.freebsd.org> From: Warner Losh Date: Wed, 15 Aug 2018 17:36:02 -0600 X-Google-Sender-Auth: b4zeMUCAqXk1FzU3QLHDv_X8mLI Message-ID: Subject: Re: svn commit: r337868 - head/stand To: Kyle Evans Cc: Warner Losh , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2018 23:36:05 -0000 which mips builds? My automated mips and mips64 builds just work... Warner On Wed, Aug 15, 2018 at 3:22 PM, Kyle Evans wrote: > On Wed, Aug 15, 2018 at 3:31 PM, Warner Losh wrote: > > Author: imp > > Date: Wed Aug 15 20:31:11 2018 > > New Revision: 337868 > > URL: https://svnweb.freebsd.org/changeset/base/337868 > > > > Log: > > stand: Use -Oz/-Os for all loader/stand builds. > > > > While we're not super size constrained, the x86 BIOS /boot/loader has > > to be less than about 520k-530k to be reliable. The LUA loader is at > > this size today. -Oz saves 15-20% on the size, keeping us safely small > > enough (comparable to where we were with the 4th loader). This will > > also help with sjg's work on bringing in bearssl, though we may again > > be looking for space in the LUA loader. > > > > Size table for clang 6.0.0: > > default -O1 -Os -Oz > > 4th 442368 417792 389120 376832 > > lua 524288 479232 446464 430080 > > > > Tested by: kevans91@ (ubldr on armv7), dhw@ (loader on amdy64) > > Differential Revision: https://reviews.freebsd.org/D16724 > > > > This seems to have frustrated the MIPS build: > > --- ubldr --- > /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function > `block_map': > /usr/src/stand/libsa/ufs.c:277: undefined reference to `__ashldi3' > /usr/src/stand/libsa/ufs.c:277: relocation truncated to fit: R_MIPS_26 > against `__ashldi3' > /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function > `buf_read_file': > /usr/src/stand/libsa/ufs.c:402: undefined reference to `__ashrdi3' > /usr/src/stand/libsa/ufs.c:402: relocation truncated to fit: R_MIPS_26 > against `__ashrdi3' > /usr/src/stand/libsa/ufs.c:403: undefined reference to `__ashldi3' > /usr/src/stand/libsa/ufs.c:403: relocation truncated to fit: R_MIPS_26 > against `__ashldi3' > /usr/src/stand/libsa/ufs.c:418: undefined reference to `__ashldi3' > /usr/src/stand/libsa/ufs.c:418: relocation truncated to fit: R_MIPS_26 > against `__ashldi3' > /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function > `buf_write_file': > /usr/src/stand/libsa/ufs.c:327: undefined reference to `__ashrdi3' > /usr/src/stand/libsa/ufs.c:327: relocation truncated to fit: R_MIPS_26 > against `__ashrdi3' > /usr/src/stand/libsa/ufs.c:328: undefined reference to `__ashldi3' > /usr/src/stand/libsa/ufs.c:328: relocation truncated to fit: R_MIPS_26 > against `__ashldi3' > /usr/src/stand/libsa/ufs.c:358: undefined reference to `__ashldi3' > /usr/src/stand/libsa/ufs.c:358: relocation truncated to fit: R_MIPS_26 > against `__ashldi3' > /usr/src/stand/libsa/ufs.c:377: undefined reference to `__ashldi3' > /usr/src/stand/libsa/ufs.c:377: relocation truncated to fit: R_MIPS_26 > against `__ashldi3' > /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function > `read_inode': > /usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3' > /usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26 > against `__ashldi3' > /usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3' > /usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26 > against `__ashldi3' > /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o):/ > usr/src/stand/libsa/ufs.c:638: > more undefined references to `__ashldi3' follow > /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function > `ufs_open': > /usr/src/stand/libsa/ufs.c:638: additional relocation overflows > omitted from the output >