From owner-svn-src-head@freebsd.org Mon Oct 30 23:14:45 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89824E262C4; Mon, 30 Oct 2017 23:14:45 +0000 (UTC) (envelope-from imp@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 mx1.freebsd.org (Postfix) with ESMTPS id 5663675FFA; Mon, 30 Oct 2017 23:14:45 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9UNEicw025874; Mon, 30 Oct 2017 23:14:44 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9UNEiNJ025872; Mon, 30 Oct 2017 23:14:44 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201710302314.v9UNEiNJ025872@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Mon, 30 Oct 2017 23:14:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325172 - in head/sys/boot/sparc64: boot1 loader X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/sys/boot/sparc64: boot1 loader X-SVN-Commit-Revision: 325172 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 30 Oct 2017 23:14:45 -0000 Author: imp Date: Mon Oct 30 23:14:44 2017 New Revision: 325172 URL: https://svnweb.freebsd.org/changeset/base/325172 Log: Remove the -nostdlib stuff I added. Instead, fix LDFLAGS to be honored correctly with the new Makefile.inc include order. Sponsored by: Netflix Modified: head/sys/boot/sparc64/boot1/Makefile head/sys/boot/sparc64/loader/Makefile Modified: head/sys/boot/sparc64/boot1/Makefile ============================================================================== --- head/sys/boot/sparc64/boot1/Makefile Mon Oct 30 23:14:37 2017 (r325171) +++ head/sys/boot/sparc64/boot1/Makefile Mon Oct 30 23:14:44 2017 (r325172) @@ -13,8 +13,8 @@ BOOTBLOCKBASE= 0x4000 CFLAGS.clang+=-mcmodel=small CFLAGS.gcc+=-mcmodel=medlow -CFLAGS+=-Os -I${LDRSRC} -nostdlib -LDFLAGS=-Ttext ${BOOTBLOCKBASE} -Wl,-N +CFLAGS+=-Os -I${LDRSRC} +LDFLAGS+=-Ttext ${BOOTBLOCKBASE} -Wl,-N # Construct boot1. sunlabel expects it to contain zeroed-out space for the # label, and to be of the correct size. Modified: head/sys/boot/sparc64/loader/Makefile ============================================================================== --- head/sys/boot/sparc64/loader/Makefile Mon Oct 30 23:14:37 2017 (r325171) +++ head/sys/boot/sparc64/loader/Makefile Mon Oct 30 23:14:44 2017 (r325172) @@ -25,8 +25,6 @@ LOADER_GZIP_SUPPORT?= yes LOADER_BZIP2_SUPPORT?= no LOADER_DEBUG?= no -CFLAGS+=-nostdlib - .if ${LOADER_DEBUG} == "yes" CFLAGS+= -DLOADER_DEBUG .endif @@ -43,7 +41,7 @@ CFLAGS+= -I. CLEANFILES+= loader.help -LDFLAGS= -static +LDFLAGS+= -static # Open Firmware standalone support library LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a