aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-04-07 12:57:50 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-04-07 12:57:50 +0000
commited648b3f3984ec27ae5411eee7fe29153e966a16 (patch)
treeccd7bb5ba7371e2116de436ec79f19301ba42e83
parent8883b17065cf05c3741fd72c4a9b768d7aaafb9a (diff)
downloadsrc-ed648b3f3984ec27ae5411eee7fe29153e966a16.tar.gz
src-ed648b3f3984ec27ae5411eee7fe29153e966a16.zip
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
Notes
Notes: svn path=/head/; revision=359688
-rw-r--r--stand/mips/beri/loader/main.c2
-rw-r--r--stand/powerpc/ofw/conf.c4
-rw-r--r--stand/uboot/lib/glue.h2
3 files changed, 3 insertions, 5 deletions
diff --git a/stand/mips/beri/loader/main.c b/stand/mips/beri/loader/main.c
index 086b55011ae7..ad0feb413a40 100644
--- a/stand/mips/beri/loader/main.c
+++ b/stand/mips/beri/loader/main.c
@@ -59,8 +59,6 @@ struct devsw *devsw[] = {
NULL
};
-struct arch_switch archsw;
-
struct file_format *file_formats[] = {
&beri_elf,
NULL
diff --git a/stand/powerpc/ofw/conf.c b/stand/powerpc/ofw/conf.c
index ac815bf325cd..f26dd2c56c27 100644
--- a/stand/powerpc/ofw/conf.c
+++ b/stand/powerpc/ofw/conf.c
@@ -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,
diff --git a/stand/uboot/lib/glue.h b/stand/uboot/lib/glue.h
index cb012ed9d8e9..c9fe4021003f 100644
--- a/stand/uboot/lib/glue.h
+++ b/stand/uboot/lib/glue.h
@@ -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);