-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Toolchain updates #34153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Toolchain updates #34153
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e68521e
binutils: Update to 2.37.
mikoxyz c699c21
glibc: update to 2.34.
ericonr bec3b37
gcc: Update to 10.3.1git20211027.
mikoxyz f550c13
libtool: Revbump for gcc update.
mikoxyz 09f0e92
cross-aarch64-linux-gnu: Update to 0.35.
mikoxyz 0d3b6cb
cross-aarch64-linux-musl: Update to 0.35.
mikoxyz e224a1b
cross-arm-linux-gnueabi: Update to 0.35.
mikoxyz e35a3ef
cross-arm-linux-gnueabihf: Update to 0.35.
mikoxyz 8249eea
cross-arm-linux-musleabi: Update to 0.35.
mikoxyz 6a2607e
cross-arm-linux-musleabihf: Update to 0.35.
mikoxyz a21b0ec
cross-armv7l-linux-gnueabihf: Update to 0.35.
mikoxyz d4d897b
cross-armv7l-linux-musleabihf: Update to 0.35.
mikoxyz d1c8ced
cross-i686-linux-musl: Update to 0.35.
mikoxyz 715bac0
cross-i686-pc-linux-gnu: Update to 0.35.
mikoxyz 846df7a
cross-mipsel-linux-musl: Update to 0.35.
mikoxyz 79a02f4
cross-mipsel-linux-muslhf: Update to 0.35.
mikoxyz c1a97f2
cross-mips-linux-musl: Update to 0.35.
mikoxyz 0d07c70
cross-mips-linux-muslhf: Update to 0.35.
mikoxyz 2b8bda9
cross-powerpc64le-linux-gnu: Update to 0.35.
mikoxyz 8eb2aa4
cross-powerpc64le-linux-musl: Update to 0.35.
mikoxyz 622ee45
cross-powerpc64-linux-gnu: Update to 0.35.
mikoxyz 883d76d
cross-powerpc64-linux-musl: Update to 0.35.
mikoxyz 80528b7
cross-powerpcle-linux-gnu: Update to 0.35.
mikoxyz c4a07c1
cross-powerpcle-linux-musl: Update to 0.35.
mikoxyz d2bf906
cross-powerpc-linux-gnu: Update to 0.35.
mikoxyz e094834
cross-powerpc-linux-musl: Update to 0.35.
mikoxyz 48745d0
cross-x86_64-linux-gnu: Update to 0.35.
mikoxyz 8d76cf5
cross-x86_64-linux-musl: Update to 0.35.
mikoxyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
60 changes: 0 additions & 60 deletions
60
srcpkgs/binutils/patches/1767e3f3bd6d460491f8c8d032a7fea88d5ec8ff.patch
This file was deleted.
Oops, something went wrong.
234 changes: 234 additions & 0 deletions
234
srcpkgs/binutils/patches/bfd-close-file-descriptor.patch
This file contains hidden or 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,234 @@ | ||
| Upstream: yes | ||
| URL: https://sourceware.org/bugzilla/show_bug.cgi?id=28138 | ||
| From 1c611b40e6bfc8029bff7696814330b5bc0ee5c0 Mon Sep 17 00:00:00 2001 | ||
| From: "H.J. Lu" <hjl.tools@gmail.com> | ||
| Date: Mon, 26 Jul 2021 05:59:55 -0700 | ||
| Subject: [PATCH] bfd: Close the file descriptor if there is no archive fd | ||
|
|
||
| Close the file descriptor if there is no archive plugin file descriptor | ||
| to avoid running out of file descriptors on thin archives with many | ||
| archive members. | ||
|
|
||
| bfd/ | ||
|
|
||
| PR ld/28138 | ||
| * plugin.c (bfd_plugin_close_file_descriptor): Close the file | ||
| descriptor there is no archive plugin file descriptor. | ||
|
|
||
| ld/ | ||
|
|
||
| PR ld/28138 | ||
| * testsuite/ld-plugin/lto.exp: Run tmpdir/pr28138 only for | ||
| native build. | ||
|
|
||
| PR ld/28138 | ||
| * testsuite/ld-plugin/lto.exp: Run ld/28138 tests. | ||
| * testsuite/ld-plugin/pr28138.c: New file. | ||
| * testsuite/ld-plugin/pr28138-1.c: Likewise. | ||
| * testsuite/ld-plugin/pr28138-2.c: Likewise. | ||
| * testsuite/ld-plugin/pr28138-3.c: Likewise. | ||
| * testsuite/ld-plugin/pr28138-4.c: Likewise. | ||
| * testsuite/ld-plugin/pr28138-5.c: Likewise. | ||
| * testsuite/ld-plugin/pr28138-6.c: Likewise. | ||
| * testsuite/ld-plugin/pr28138-7.c: Likewise. | ||
|
|
||
| (cherry picked from commit 5a98fb7513b559e20dfebdbaa2a471afda3b4742) | ||
| (cherry picked from commit 7dc37e1e1209c80e0bab784df6b6bac335e836f2) | ||
| --- | ||
| bfd/plugin.c | 8 +++++++ | ||
| ld/testsuite/ld-plugin/lto.exp | 34 ++++++++++++++++++++++++++++++ | ||
| ld/testsuite/ld-plugin/pr28138-1.c | 6 ++++++ | ||
| ld/testsuite/ld-plugin/pr28138-2.c | 6 ++++++ | ||
| ld/testsuite/ld-plugin/pr28138-3.c | 6 ++++++ | ||
| ld/testsuite/ld-plugin/pr28138-4.c | 6 ++++++ | ||
| ld/testsuite/ld-plugin/pr28138-5.c | 6 ++++++ | ||
| ld/testsuite/ld-plugin/pr28138-6.c | 6 ++++++ | ||
| ld/testsuite/ld-plugin/pr28138-7.c | 6 ++++++ | ||
| ld/testsuite/ld-plugin/pr28138.c | 20 ++++++++++++++++++ | ||
| 10 files changed, 104 insertions(+) | ||
| create mode 100644 ld/testsuite/ld-plugin/pr28138-1.c | ||
| create mode 100644 ld/testsuite/ld-plugin/pr28138-2.c | ||
| create mode 100644 ld/testsuite/ld-plugin/pr28138-3.c | ||
| create mode 100644 ld/testsuite/ld-plugin/pr28138-4.c | ||
| create mode 100644 ld/testsuite/ld-plugin/pr28138-5.c | ||
| create mode 100644 ld/testsuite/ld-plugin/pr28138-6.c | ||
| create mode 100644 ld/testsuite/ld-plugin/pr28138-7.c | ||
| create mode 100644 ld/testsuite/ld-plugin/pr28138.c | ||
|
|
||
| diff --git a/bfd/plugin.c b/bfd/plugin.c | ||
| index 6cfa2b66470..3bab8febe88 100644 | ||
| --- a/bfd/plugin.c | ||
| +++ b/bfd/plugin.c | ||
| @@ -291,6 +291,14 @@ bfd_plugin_close_file_descriptor (bfd *abfd, int fd) | ||
| && !bfd_is_thin_archive (abfd->my_archive)) | ||
| abfd = abfd->my_archive; | ||
|
|
||
| + /* Close the file descriptor if there is no archive plugin file | ||
| + descriptor. */ | ||
| + if (abfd->archive_plugin_fd == -1) | ||
| + { | ||
| + close (fd); | ||
| + return; | ||
| + } | ||
| + | ||
| abfd->archive_plugin_fd_open_count--; | ||
| /* Dup the archive plugin file descriptor for later use, which | ||
| will be closed by _bfd_archive_close_and_cleanup. */ | ||
| diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp | ||
| index def69e43ab3..999d911ce6a 100644 | ||
| --- a/ld/testsuite/ld-plugin/lto.exp | ||
| +++ b/ld/testsuite/ld-plugin/lto.exp | ||
| @@ -687,6 +687,40 @@ if { [is_elf_format] && [check_lto_shared_available] } { | ||
| } | ||
| } | ||
|
|
||
| +run_cc_link_tests [list \ | ||
| + [list \ | ||
| + "Build pr28138.a" \ | ||
| + "-T" "" \ | ||
| + {pr28138-1.c pr28138-2.c pr28138-3.c pr28138-4.c pr28138-5.c \ | ||
| + pr28138-6.c pr28138-7.c} {} "pr28138.a" \ | ||
| + ] \ | ||
| + [list \ | ||
| + "Build pr28138.o" \ | ||
| + "" "" \ | ||
| + {pr28138.c} {} \ | ||
| + ] \ | ||
| +] | ||
| + | ||
| +set exec_output [run_host_cmd "sh" \ | ||
| + "-c \"ulimit -n 20; \ | ||
| + $CC -Btmpdir/ld -o tmpdir/pr28138 \ | ||
| + tmpdir/pr28138.o tmpdir/pr28138.a\""] | ||
| +set exec_output [prune_warnings $exec_output] | ||
| +if [string match "" $exec_output] then { | ||
| + if { [isnative] } { | ||
| + set exec_output [run_host_cmd "tmpdir/pr28138" ""] | ||
| + if [string match "PASS" $exec_output] then { | ||
| + pass "PR ld/28138" | ||
| + } else { | ||
| + fail "PR ld/28138" | ||
| + } | ||
| + } else { | ||
| + pass "PR ld/28138" | ||
| + } | ||
| +} else { | ||
| + fail "PR ld/28138" | ||
| +} | ||
| + | ||
| set testname "Build liblto-11.a" | ||
| remote_file host delete "tmpdir/liblto-11.a" | ||
| set catch_output [run_host_cmd "$ar" "rc $plug_opt tmpdir/liblto-11.a tmpdir/lto-11a.o tmpdir/lto-11b.o tmpdir/lto-11c.o"] | ||
| diff --git a/ld/testsuite/ld-plugin/pr28138-1.c b/ld/testsuite/ld-plugin/pr28138-1.c | ||
| new file mode 100644 | ||
| index 00000000000..51d119e1642 | ||
| --- /dev/null | ||
| +++ b/ld/testsuite/ld-plugin/pr28138-1.c | ||
| @@ -0,0 +1,6 @@ | ||
| +extern int a0(void); | ||
| +int | ||
| +a1(void) | ||
| +{ | ||
| + return 1 + a0(); | ||
| +} | ||
| diff --git a/ld/testsuite/ld-plugin/pr28138-2.c b/ld/testsuite/ld-plugin/pr28138-2.c | ||
| new file mode 100644 | ||
| index 00000000000..1120cd797e9 | ||
| --- /dev/null | ||
| +++ b/ld/testsuite/ld-plugin/pr28138-2.c | ||
| @@ -0,0 +1,6 @@ | ||
| +extern int a1(void); | ||
| +int | ||
| +a2(void) | ||
| +{ | ||
| + return 1 + a1(); | ||
| +} | ||
| diff --git a/ld/testsuite/ld-plugin/pr28138-3.c b/ld/testsuite/ld-plugin/pr28138-3.c | ||
| new file mode 100644 | ||
| index 00000000000..ec464947ee6 | ||
| --- /dev/null | ||
| +++ b/ld/testsuite/ld-plugin/pr28138-3.c | ||
| @@ -0,0 +1,6 @@ | ||
| +extern int a2(void); | ||
| +int | ||
| +a3(void) | ||
| +{ | ||
| + return 1 + a2(); | ||
| +} | ||
| diff --git a/ld/testsuite/ld-plugin/pr28138-4.c b/ld/testsuite/ld-plugin/pr28138-4.c | ||
| new file mode 100644 | ||
| index 00000000000..475701b2c5c | ||
| --- /dev/null | ||
| +++ b/ld/testsuite/ld-plugin/pr28138-4.c | ||
| @@ -0,0 +1,6 @@ | ||
| +extern int a3(void); | ||
| +int | ||
| +a4(void) | ||
| +{ | ||
| + return 1 + a3(); | ||
| +} | ||
| diff --git a/ld/testsuite/ld-plugin/pr28138-5.c b/ld/testsuite/ld-plugin/pr28138-5.c | ||
| new file mode 100644 | ||
| index 00000000000..e24f86c363e | ||
| --- /dev/null | ||
| +++ b/ld/testsuite/ld-plugin/pr28138-5.c | ||
| @@ -0,0 +1,6 @@ | ||
| +extern int a4(void); | ||
| +int | ||
| +a5(void) | ||
| +{ | ||
| + return 1 + a4(); | ||
| +} | ||
| diff --git a/ld/testsuite/ld-plugin/pr28138-6.c b/ld/testsuite/ld-plugin/pr28138-6.c | ||
| new file mode 100644 | ||
| index 00000000000..b5b938bdb21 | ||
| --- /dev/null | ||
| +++ b/ld/testsuite/ld-plugin/pr28138-6.c | ||
| @@ -0,0 +1,6 @@ | ||
| +extern int a5(void); | ||
| +int | ||
| +a6(void) | ||
| +{ | ||
| + return 1 + a5(); | ||
| +} | ||
| diff --git a/ld/testsuite/ld-plugin/pr28138-7.c b/ld/testsuite/ld-plugin/pr28138-7.c | ||
| new file mode 100644 | ||
| index 00000000000..4ef75bf0f0c | ||
| --- /dev/null | ||
| +++ b/ld/testsuite/ld-plugin/pr28138-7.c | ||
| @@ -0,0 +1,6 @@ | ||
| +extern int a6(void); | ||
| +int | ||
| +a7(void) | ||
| +{ | ||
| + return 1 + a6(); | ||
| +} | ||
| diff --git a/ld/testsuite/ld-plugin/pr28138.c b/ld/testsuite/ld-plugin/pr28138.c | ||
| new file mode 100644 | ||
| index 00000000000..68252c9f382 | ||
| --- /dev/null | ||
| +++ b/ld/testsuite/ld-plugin/pr28138.c | ||
| @@ -0,0 +1,20 @@ | ||
| +#include <stdio.h> | ||
| + | ||
| +extern int a7(void); | ||
| + | ||
| +int | ||
| +a0(void) | ||
| +{ | ||
| + return 0; | ||
| +} | ||
| + | ||
| +int | ||
| +main() | ||
| +{ | ||
| + if (a7() == 7) | ||
| + { | ||
| + printf ("PASS\n"); | ||
| + return 0; | ||
| + } | ||
| + return 1; | ||
| +} | ||
| -- | ||
| 2.27.0 | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.