From owner-svn-src-stable-12@freebsd.org Fri Apr 10 00:23:36 2020 Return-Path: Delivered-To: svn-src-stable-12@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 6F8B32AB81B; Fri, 10 Apr 2020 00:23:36 +0000 (UTC) (envelope-from kevans@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 48yzJS2BpYz4V0y; Fri, 10 Apr 2020 00:23:36 +0000 (UTC) (envelope-from kevans@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 4698F1D70C; Fri, 10 Apr 2020 00:23:36 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03A0NaCC012393; Fri, 10 Apr 2020 00:23:36 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03A0NZ3F012391; Fri, 10 Apr 2020 00:23:35 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <202004100023.03A0NZ3F012391@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Fri, 10 Apr 2020 00:23:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r359761 - in stable: 11/stand/mips/beri/loader 11/stand/powerpc/ofw 11/stand/uboot/lib 12/stand/mips/beri/loader 12/stand/powerpc/ofw 12/stand/uboot/lib X-SVN-Group: stable-12 X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: in stable: 11/stand/mips/beri/loader 11/stand/powerpc/ofw 11/stand/uboot/lib 12/stand/mips/beri/loader 12/stand/powerpc/ofw 12/stand/uboot/lib X-SVN-Commit-Revision: 359761 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-12@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for only the 12-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2020 00:23:36 -0000 Author: kevans Date: Fri Apr 10 00:23:34 2020 New Revision: 359761 URL: https://svnweb.freebsd.org/changeset/base/359761 Log: MFC r359688: stand: -fno-common fixes for !x86 loaders - beriloader: archsw is declared extern and defined elsewhere - ofwloader: ofw_elf{,64} are defined in elf_freebsd.c and ppc64_elf_freebsd.c respectively - ubldr: syscall_ptr is defined in start.S for whichever ubldr platform is building -fno-common will become the default in GCC10/LLVM11. Modified: stable/12/stand/mips/beri/loader/main.c stable/12/stand/powerpc/ofw/conf.c stable/12/stand/uboot/lib/glue.h Directory Properties: stable/12/ (props changed) Changes in other areas also in this revision: Modified: stable/11/stand/mips/beri/loader/main.c stable/11/stand/powerpc/ofw/conf.c stable/11/stand/uboot/lib/glue.h Directory Properties: stable/11/ (props changed) Modified: stable/12/stand/mips/beri/loader/main.c ============================================================================== --- stable/12/stand/mips/beri/loader/main.c Thu Apr 9 23:51:18 2020 (r359760) +++ stable/12/stand/mips/beri/loader/main.c Fri Apr 10 00:23:34 2020 (r359761) @@ -59,8 +59,6 @@ struct devsw *devsw[] = { NULL }; -struct arch_switch archsw; - struct file_format *file_formats[] = { &beri_elf, NULL Modified: stable/12/stand/powerpc/ofw/conf.c ============================================================================== --- stable/12/stand/powerpc/ofw/conf.c Thu Apr 9 23:51:18 2020 (r359760) +++ stable/12/stand/powerpc/ofw/conf.c Fri Apr 10 00:23:34 2020 (r359761) @@ -97,8 +97,8 @@ struct netif_driver *netif_drivers[] = { * rather than reading the file go first. */ -struct file_format ofw_elf; -struct file_format ofw_elf64; +extern struct file_format ofw_elf; +extern struct file_format ofw_elf64; struct file_format *file_formats[] = { &ofw_elf, Modified: stable/12/stand/uboot/lib/glue.h ============================================================================== --- stable/12/stand/uboot/lib/glue.h Thu Apr 9 23:51:18 2020 (r359760) +++ stable/12/stand/uboot/lib/glue.h Fri Apr 10 00:23:34 2020 (r359761) @@ -56,7 +56,7 @@ #endif int syscall(int, int *, ...); -void *syscall_ptr; +extern void *syscall_ptr; int api_parse_cmdline_sig(int argc, char **argv, struct api_signature **sig); int api_search_sig(struct api_signature **sig);