diff --git a/cross/binutils-aarch64/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch b/cross/binutils-aarch64/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch new file mode 100644 index 000000000..5de937f4f --- /dev/null +++ b/cross/binutils-aarch64/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch @@ -0,0 +1,86 @@ +From b1faf99f3e546df2cd302bb1ad36a2078224fe8b Mon Sep 17 00:00:00 2001 +From: Ariadne Conill +Date: Fri, 30 Oct 2020 16:59:48 -0600 +Subject: [PATCH] Revert "PR25882, .gnu.attributes are not checked for shared + libraries" + +This reverts commit a8acd6eeb6dc2cc5460ece90f90ebe36b56b20ba. +--- + bfd/ChangeLog | 6 ------ + bfd/elf32-tic6x.c | 3 --- + ld/ChangeLog | 6 ------ + ld/ldlang.c | 9 ++++----- + 4 files changed, 4 insertions(+), 20 deletions(-) + +diff --git a/bfd/ChangeLog b/bfd/ChangeLog +index 9fac12538a..b5461494e8 100644 +--- a/bfd/ChangeLog ++++ b/bfd/ChangeLog +@@ -1422,12 +1422,6 @@ + accessing root.u.def of symbols. Also check root.u.def.section + is non-NULL. Reverse tests so as to make the logic positive. + +-2020-05-01 Alan Modra +- +- PR 25882 +- * elf32-tic6x.c (elf32_tic6x_merge_attributes): Don't transfer +- Tag_ABI_PIC or Tag_ABI_PID from dynamic objects to the output. +- + 2020-05-01 Alan Modra + + PR 25882 +diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c +index b8b916bfd3..91bb6a10b1 100644 +--- a/bfd/elf32-tic6x.c ++++ b/bfd/elf32-tic6x.c +@@ -3748,9 +3748,6 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info) + + case Tag_ABI_PIC: + case Tag_ABI_PID: +- /* Don't transfer these tags from dynamic objects. */ +- if ((ibfd->flags & DYNAMIC) != 0) +- continue; + if (out_attr[i].i > in_attr[i].i) + out_attr[i].i = in_attr[i].i; + break; +diff --git a/ld/ChangeLog b/ld/ChangeLog +index 4eec7d2977..b93452f70c 100644 +--- a/ld/ChangeLog ++++ b/ld/ChangeLog +@@ -1319,12 +1319,6 @@ + * testsuite/ld-aarch64/farcall-group.d: New test driver. + * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test. + +-2020-05-01 Alan Modra +- +- PR 25882 +- * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for +- shared libraries. +- + 2020-05-01 Alan Modra + + * po/BLD-POTFILES.in: Regenerate. +diff --git a/ld/ldlang.c b/ld/ldlang.c +index 9977195074..173d8ec349 100644 +--- a/ld/ldlang.c ++++ b/ld/ldlang.c +@@ -6972,12 +6972,11 @@ lang_check (void) + bfd_printable_name (input_bfd), input_bfd, + bfd_printable_name (link_info.output_bfd)); + } +- +- /* If the input bfd has no contents, it shouldn't set the +- private data of the output bfd. */ +- else if ((input_bfd->flags & DYNAMIC) != 0 +- || bfd_count_sections (input_bfd) != 0) ++ else if (bfd_count_sections (input_bfd)) + { ++ /* If the input bfd has no contents, it shouldn't set the ++ private data of the output bfd. */ ++ + bfd_error_handler_type pfn = NULL; + + /* If we aren't supposed to warn about mismatched input +-- +2.29.2 + diff --git a/cross/binutils-aarch64/APKBUILD b/cross/binutils-aarch64/APKBUILD index b81e9f12d..380829f7e 100644 --- a/cross/binutils-aarch64/APKBUILD +++ b/cross/binutils-aarch64/APKBUILD @@ -4,7 +4,7 @@ pkgname=binutils-aarch64 pkgver=2.35.1 -pkgrel=0 +pkgrel=1 pkgdesc="Tools necessary to build programs for aarch64 targets" url="https://www.gnu.org/software/binutils/" makedepends="gettext libtool autoconf automake bison texinfo" @@ -14,6 +14,7 @@ source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz binutils-ld-fix-static-linking.patch gold-mips.patch ld-bfd-mips.patch + 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch " builddir="$srcdir/binutils-$pkgver" @@ -62,4 +63,5 @@ package() { sha512sums="94ff72708403413b70b247f3af4099ebaa882b6659249869f1ed9941a0f1912e313f08357d470f9fd2359e7f5e5b0eb86285e5eaf883fa8187789d6b1bd304eb binutils-2.35.1.tar.xz ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch -314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch" +314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch +642c617db6c6e491f78f053d60f3aa369bad7bf8c1bc7ce267de6cf8fddf6c0d4cf63ce8c8f6e2f225dedbce7cb930d8e87e168fd8f72ca0837c77266ee2b5f8 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch" diff --git a/cross/binutils-armhf/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch b/cross/binutils-armhf/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch new file mode 100644 index 000000000..5de937f4f --- /dev/null +++ b/cross/binutils-armhf/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch @@ -0,0 +1,86 @@ +From b1faf99f3e546df2cd302bb1ad36a2078224fe8b Mon Sep 17 00:00:00 2001 +From: Ariadne Conill +Date: Fri, 30 Oct 2020 16:59:48 -0600 +Subject: [PATCH] Revert "PR25882, .gnu.attributes are not checked for shared + libraries" + +This reverts commit a8acd6eeb6dc2cc5460ece90f90ebe36b56b20ba. +--- + bfd/ChangeLog | 6 ------ + bfd/elf32-tic6x.c | 3 --- + ld/ChangeLog | 6 ------ + ld/ldlang.c | 9 ++++----- + 4 files changed, 4 insertions(+), 20 deletions(-) + +diff --git a/bfd/ChangeLog b/bfd/ChangeLog +index 9fac12538a..b5461494e8 100644 +--- a/bfd/ChangeLog ++++ b/bfd/ChangeLog +@@ -1422,12 +1422,6 @@ + accessing root.u.def of symbols. Also check root.u.def.section + is non-NULL. Reverse tests so as to make the logic positive. + +-2020-05-01 Alan Modra +- +- PR 25882 +- * elf32-tic6x.c (elf32_tic6x_merge_attributes): Don't transfer +- Tag_ABI_PIC or Tag_ABI_PID from dynamic objects to the output. +- + 2020-05-01 Alan Modra + + PR 25882 +diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c +index b8b916bfd3..91bb6a10b1 100644 +--- a/bfd/elf32-tic6x.c ++++ b/bfd/elf32-tic6x.c +@@ -3748,9 +3748,6 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info) + + case Tag_ABI_PIC: + case Tag_ABI_PID: +- /* Don't transfer these tags from dynamic objects. */ +- if ((ibfd->flags & DYNAMIC) != 0) +- continue; + if (out_attr[i].i > in_attr[i].i) + out_attr[i].i = in_attr[i].i; + break; +diff --git a/ld/ChangeLog b/ld/ChangeLog +index 4eec7d2977..b93452f70c 100644 +--- a/ld/ChangeLog ++++ b/ld/ChangeLog +@@ -1319,12 +1319,6 @@ + * testsuite/ld-aarch64/farcall-group.d: New test driver. + * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test. + +-2020-05-01 Alan Modra +- +- PR 25882 +- * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for +- shared libraries. +- + 2020-05-01 Alan Modra + + * po/BLD-POTFILES.in: Regenerate. +diff --git a/ld/ldlang.c b/ld/ldlang.c +index 9977195074..173d8ec349 100644 +--- a/ld/ldlang.c ++++ b/ld/ldlang.c +@@ -6972,12 +6972,11 @@ lang_check (void) + bfd_printable_name (input_bfd), input_bfd, + bfd_printable_name (link_info.output_bfd)); + } +- +- /* If the input bfd has no contents, it shouldn't set the +- private data of the output bfd. */ +- else if ((input_bfd->flags & DYNAMIC) != 0 +- || bfd_count_sections (input_bfd) != 0) ++ else if (bfd_count_sections (input_bfd)) + { ++ /* If the input bfd has no contents, it shouldn't set the ++ private data of the output bfd. */ ++ + bfd_error_handler_type pfn = NULL; + + /* If we aren't supposed to warn about mismatched input +-- +2.29.2 + diff --git a/cross/binutils-armhf/APKBUILD b/cross/binutils-armhf/APKBUILD index 52cbef53d..e238f5494 100644 --- a/cross/binutils-armhf/APKBUILD +++ b/cross/binutils-armhf/APKBUILD @@ -4,7 +4,7 @@ pkgname=binutils-armhf pkgver=2.35.1 -pkgrel=0 +pkgrel=1 pkgdesc="Tools necessary to build programs for armhf targets" url="https://www.gnu.org/software/binutils/" makedepends="gettext libtool autoconf automake bison texinfo" @@ -14,6 +14,7 @@ source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz binutils-ld-fix-static-linking.patch gold-mips.patch ld-bfd-mips.patch + 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch " builddir="$srcdir/binutils-$pkgver" @@ -62,4 +63,5 @@ package() { sha512sums="94ff72708403413b70b247f3af4099ebaa882b6659249869f1ed9941a0f1912e313f08357d470f9fd2359e7f5e5b0eb86285e5eaf883fa8187789d6b1bd304eb binutils-2.35.1.tar.xz ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch -314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch" +314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch +642c617db6c6e491f78f053d60f3aa369bad7bf8c1bc7ce267de6cf8fddf6c0d4cf63ce8c8f6e2f225dedbce7cb930d8e87e168fd8f72ca0837c77266ee2b5f8 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch" diff --git a/cross/binutils-armv7/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch b/cross/binutils-armv7/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch new file mode 100644 index 000000000..5de937f4f --- /dev/null +++ b/cross/binutils-armv7/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch @@ -0,0 +1,86 @@ +From b1faf99f3e546df2cd302bb1ad36a2078224fe8b Mon Sep 17 00:00:00 2001 +From: Ariadne Conill +Date: Fri, 30 Oct 2020 16:59:48 -0600 +Subject: [PATCH] Revert "PR25882, .gnu.attributes are not checked for shared + libraries" + +This reverts commit a8acd6eeb6dc2cc5460ece90f90ebe36b56b20ba. +--- + bfd/ChangeLog | 6 ------ + bfd/elf32-tic6x.c | 3 --- + ld/ChangeLog | 6 ------ + ld/ldlang.c | 9 ++++----- + 4 files changed, 4 insertions(+), 20 deletions(-) + +diff --git a/bfd/ChangeLog b/bfd/ChangeLog +index 9fac12538a..b5461494e8 100644 +--- a/bfd/ChangeLog ++++ b/bfd/ChangeLog +@@ -1422,12 +1422,6 @@ + accessing root.u.def of symbols. Also check root.u.def.section + is non-NULL. Reverse tests so as to make the logic positive. + +-2020-05-01 Alan Modra +- +- PR 25882 +- * elf32-tic6x.c (elf32_tic6x_merge_attributes): Don't transfer +- Tag_ABI_PIC or Tag_ABI_PID from dynamic objects to the output. +- + 2020-05-01 Alan Modra + + PR 25882 +diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c +index b8b916bfd3..91bb6a10b1 100644 +--- a/bfd/elf32-tic6x.c ++++ b/bfd/elf32-tic6x.c +@@ -3748,9 +3748,6 @@ elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info) + + case Tag_ABI_PIC: + case Tag_ABI_PID: +- /* Don't transfer these tags from dynamic objects. */ +- if ((ibfd->flags & DYNAMIC) != 0) +- continue; + if (out_attr[i].i > in_attr[i].i) + out_attr[i].i = in_attr[i].i; + break; +diff --git a/ld/ChangeLog b/ld/ChangeLog +index 4eec7d2977..b93452f70c 100644 +--- a/ld/ChangeLog ++++ b/ld/ChangeLog +@@ -1319,12 +1319,6 @@ + * testsuite/ld-aarch64/farcall-group.d: New test driver. + * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test. + +-2020-05-01 Alan Modra +- +- PR 25882 +- * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for +- shared libraries. +- + 2020-05-01 Alan Modra + + * po/BLD-POTFILES.in: Regenerate. +diff --git a/ld/ldlang.c b/ld/ldlang.c +index 9977195074..173d8ec349 100644 +--- a/ld/ldlang.c ++++ b/ld/ldlang.c +@@ -6972,12 +6972,11 @@ lang_check (void) + bfd_printable_name (input_bfd), input_bfd, + bfd_printable_name (link_info.output_bfd)); + } +- +- /* If the input bfd has no contents, it shouldn't set the +- private data of the output bfd. */ +- else if ((input_bfd->flags & DYNAMIC) != 0 +- || bfd_count_sections (input_bfd) != 0) ++ else if (bfd_count_sections (input_bfd)) + { ++ /* If the input bfd has no contents, it shouldn't set the ++ private data of the output bfd. */ ++ + bfd_error_handler_type pfn = NULL; + + /* If we aren't supposed to warn about mismatched input +-- +2.29.2 + diff --git a/cross/binutils-armv7/APKBUILD b/cross/binutils-armv7/APKBUILD index bf858cf6f..d15a23dbb 100644 --- a/cross/binutils-armv7/APKBUILD +++ b/cross/binutils-armv7/APKBUILD @@ -4,7 +4,7 @@ pkgname=binutils-armv7 pkgver=2.35.1 -pkgrel=0 +pkgrel=1 pkgdesc="Tools necessary to build programs for armv7 targets" url="https://www.gnu.org/software/binutils/" makedepends="gettext libtool autoconf automake bison texinfo" @@ -14,6 +14,7 @@ source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz binutils-ld-fix-static-linking.patch gold-mips.patch ld-bfd-mips.patch + 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch " builddir="$srcdir/binutils-$pkgver" @@ -62,4 +63,5 @@ package() { sha512sums="94ff72708403413b70b247f3af4099ebaa882b6659249869f1ed9941a0f1912e313f08357d470f9fd2359e7f5e5b0eb86285e5eaf883fa8187789d6b1bd304eb binutils-2.35.1.tar.xz ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch -314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch" +314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch +642c617db6c6e491f78f053d60f3aa369bad7bf8c1bc7ce267de6cf8fddf6c0d4cf63ce8c8f6e2f225dedbce7cb930d8e87e168fd8f72ca0837c77266ee2b5f8 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch"