Accepting request 860508 from devel:gcc

- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
  violation with getauxval.  [bsc#1167939]

OBS-URL: https://build.opensuse.org/request/show/860508
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc7?expand=0&rev=32
This commit is contained in:
Dominique Leuenberger 2021-01-10 18:38:15 +00:00 committed by Git OBS Bridge
commit 15d6268e8d
47 changed files with 215 additions and 23 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-aarch64-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-arm-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-arm-none-gcc7-bootstrap
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-arm-none-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-avr-gcc7-bootstrap
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-avr-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-epiphany-gcc7-bootstrap
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-epiphany-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-hppa-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-i386-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-m68k-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-mips-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-nvptx-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-ppc64-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-ppc64le-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-rx-gcc7-bootstrap
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-rx-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-s390x-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-sparc-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-sparc64-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cross-x86_64-gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -4242,3 +4242,57 @@ index 9535d688ee5..643ba7e8153 100644
--
2.26.2
commit 1266778548e20de82983b6446f3cb685068cfb1e
Author: Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Date: Wed May 6 16:20:38 2020 +0100
[AArch64] Use __getauxval instead of getauxval in LSE detection code in libgcc
This version of the fix uses __getauxval instead of getauxval.
The whole thing is guarded simply on __gnu_linux__.
__getauxval was introduced in 2.16 but the aarch64 port was added in 2.17 so in practice I expect all aarch64 glibcs to support __getauxval.
Bootstrapped and tested on aarch64-none-linux-gnu.
Also tested on aarch64-none-elf.
2020-05-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/lse-init.c (init_have_lse_atomics): Use __getauxval
instead of getauxval.
(AT_HWCAP): Define.
(HWCAP_ATOMICS): Define.
Guard detection on __gnu_linux__.
diff --git a/libgcc/config/aarch64/lse-init.c b/libgcc/config/aarch64/lse-init.c
index 74acef25cce..00e9ab8cd1c 100644
--- a/libgcc/config/aarch64/lse-init.c
+++ b/libgcc/config/aarch64/lse-init.c
@@ -29,19 +29,20 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
_Bool __aarch64_have_lse_atomics
__attribute__((visibility("hidden"), nocommon));
-/* Disable initialization of __aarch64_have_lse_atomics during bootstrap. */
-#if !defined(inhibit_libc) && defined(HAVE_SYS_AUXV_H)
-# include <sys/auxv.h>
+/* Gate availability of __getauxval on glibc. All AArch64-supporting glibc
+ versions support it. */
+#ifdef __gnu_linux__
-/* Disable initialization if the system headers are too old. */
-# if defined(AT_HWCAP) && defined(HWCAP_ATOMICS)
+# define AT_HWCAP 16
+# define HWCAP_ATOMICS (1 << 8)
+
+unsigned long int __getauxval (unsigned long int);
static void __attribute__((constructor))
init_have_lse_atomics (void)
{
- unsigned long hwcap = getauxval (AT_HWCAP);
+ unsigned long hwcap = __getauxval (AT_HWCAP);
__aarch64_have_lse_atomics = (hwcap & HWCAP_ATOMICS) != 0;
}
-# endif /* HWCAP */
-#endif /* inhibit_libc */
+#endif /* __gnu_linux__ */

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package gcc7-testresults
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 09:29:07 UTC 2021 - Richard Biener <rguenther@suse.com>
- Amend gcc7-aarch64-moutline-atomics.patch for glibc namespace
violation with getauxval. [bsc#1167939]
-------------------------------------------------------------------
Thu Nov 26 17:17:44 UTC 2020 - Michael Matz <matz@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package gcc7
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed