-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update toolchain with new component versions (incl. gcc 10.2.0)
See siderolabs/toolchain#15 As part of gcc 10.2 fixes: * cpio updated to 2.14 * dtc updated to 1.6.0 * squashfs_tools updated to 4.4 Patches applied when required. Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information
Showing
11 changed files
with
66 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/src/global.c b/src/global.c | ||
index fb3abe9..acf92bc 100644 | ||
--- a/src/global.c | ||
+++ b/src/global.c | ||
@@ -184,9 +184,6 @@ unsigned int warn_option = 0; | ||
/* Extract to standard output? */ | ||
bool to_stdout_option = false; | ||
|
||
-/* The name this program was run with. */ | ||
-char *program_name; | ||
- | ||
/* A pointer to either lstat or stat, depending on whether | ||
dereferencing of symlinks is done for input files. */ | ||
int (*xstat) (); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154 changes: 0 additions & 154 deletions
154
squashfs-tools/patches/0003-mksquashfs.c-get-inline-functions-work-with-C99.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 17e8444a192debd21a0403e80e2072c81c73592f Mon Sep 17 00:00:00 2001 | ||
From: Jeroen Roovers <[email protected]> | ||
Date: Mon, 27 Jan 2020 12:57:27 +0100 | ||
Subject: [PATCH] Fix compiling with -fno-common | ||
|
||
GCC 10 will enable -fno-common by default[0], which causes the linker to fail like this [1]: | ||
|
||
``` | ||
ld: read_fs.o:(.bss+0x0): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x400c90): first defined here | ||
ld: read_fs.o:(.bss+0x8): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x400c98): first defined here | ||
``` | ||
|
||
Fix this by declaring both variables as `extern` in the header file. | ||
|
||
[0] https://gcc.gnu.org/gcc-10/porting_to.html#common | ||
[1] https://bugs.gentoo.org/706456 | ||
--- | ||
squashfs-tools/mksquashfs.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/squashfs-tools/mksquashfs.h b/squashfs-tools/mksquashfs.h | ||
index 1beefef7..b6503063 100644 | ||
--- a/squashfs-tools/mksquashfs.h | ||
+++ b/squashfs-tools/mksquashfs.h | ||
@@ -143,7 +143,7 @@ struct append_file { | ||
#endif | ||
|
||
extern struct cache *reader_buffer, *fragment_buffer, *reserve_cache; | ||
-struct cache *bwriter_buffer, *fwriter_buffer; | ||
+extern struct cache *bwriter_buffer, *fwriter_buffer; | ||
extern struct queue *to_reader, *to_deflate, *to_writer, *from_writer, | ||
*to_frag, *locked_fragment, *to_process_frag; | ||
extern struct append_file **file_mapping; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters