Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2020 00:23:35 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
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
Message-ID:  <202004100023.03A0NZ3F012391@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004100023.03A0NZ3F012391>