Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 2020 12:57:51 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359688 - in head/stand: mips/beri/loader powerpc/ofw uboot/lib
Message-ID:  <202004071257.037Cvp6a009543@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Tue Apr  7 12:57:50 2020
New Revision: 359688
URL: https://svnweb.freebsd.org/changeset/base/359688

Log:
  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.
  
  MFC after:	3 days

Modified:
  head/stand/mips/beri/loader/main.c
  head/stand/powerpc/ofw/conf.c
  head/stand/uboot/lib/glue.h

Modified: head/stand/mips/beri/loader/main.c
==============================================================================
--- head/stand/mips/beri/loader/main.c	Tue Apr  7 12:46:26 2020	(r359687)
+++ head/stand/mips/beri/loader/main.c	Tue Apr  7 12:57:50 2020	(r359688)
@@ -59,8 +59,6 @@ struct devsw *devsw[] = {
 	NULL
 };
 
-struct arch_switch archsw;
-
 struct file_format *file_formats[] = {
 	&beri_elf,
 	NULL

Modified: head/stand/powerpc/ofw/conf.c
==============================================================================
--- head/stand/powerpc/ofw/conf.c	Tue Apr  7 12:46:26 2020	(r359687)
+++ head/stand/powerpc/ofw/conf.c	Tue Apr  7 12:57:50 2020	(r359688)
@@ -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: head/stand/uboot/lib/glue.h
==============================================================================
--- head/stand/uboot/lib/glue.h	Tue Apr  7 12:46:26 2020	(r359687)
+++ head/stand/uboot/lib/glue.h	Tue Apr  7 12:57:50 2020	(r359688)
@@ -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?202004071257.037Cvp6a009543>