public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gcc] rhel-f41-base: Disable annobin for now.  Adjust sanitizer_linux.cc patch.
@ 2026-06-29 12:27 Marek Polacek
  0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2026-06-29 12:27 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/gcc
Branch : rhel-f41-base
Commit : 544398b502174383fd3bf8a44f8aecd9ed47806c
Author : Marek Polacek <polacek@redhat.com>
Date   : 2017-11-30T19:49:49+01:00
Stats  : +19/-15 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/gcc/c/544398b502174383fd3bf8a44f8aecd9ed47806c?branch=rhel-f41-base

Log:
Disable annobin for now.  Adjust sanitizer_linux.cc patch.

---
diff --git a/gcc.spec b/gcc.spec
index 3ab0d06..e31732e 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -11,6 +11,10 @@
 %global _performance_build 1
 # Hardening slows the compiler way too much.
 %undefine _hardened_build
+%if 0%{?fedora} > 27
+# Until annobin is fixed (#1519165).
+%undefine _annotated_build
+%endif
 %global multilib_64_archs sparc64 ppc64 ppc64p7 s390x x86_64
 %ifarch %{ix86} x86_64 ia64 ppc %{power64} alpha s390x %{arm} aarch64
 %global build_ada 1
@@ -237,6 +241,7 @@ Patch13: gcc7-pr81325.patch
 Patch14: gcc7-pr82112-1.patch
 Patch15: gcc7-pr82112-2.patch
 Patch16: gcc7-pr81929.patch
+Patch17: gcc7-aarch64-sanitizer-fix.patch
 
 Patch1000: nvptx-tools-no-ptxas.patch
 Patch1001: nvptx-tools-build.patch
@@ -259,7 +264,6 @@ Patch2014: gcc7-rh1512529-14.patch
 Patch2015: gcc7-rh1512529-15.patch
 Patch2016: gcc7-rh1512529-16.patch
 Patch2017: gcc7-rh1512529-17.patch
-Patch2018: gcc7-rh1512529-18.patch
 
 # On ARM EABI systems, we do want -gnueabi to be part of the
 # target triple.
@@ -850,6 +854,9 @@ package or when debugging this package.
 %patch14 -p0 -b .pr82112-1~
 %patch15 -p0 -b .pr82112-2~
 %patch16 -p0 -b .pr81929~
+%if 0%{?fedora} > 27
+%patch17 -p0 -b .aarch64-sanitizer-fix~
+%endif
 
 cd nvptx-tools-%{nvptx_tools_gitrev}
 %patch1000 -p1 -b .nvptx-tools-no-ptxas~
@@ -874,7 +881,6 @@ cd ..
 %patch2015 -p1
 %patch2016 -p1
 %patch2017 -p1
-%patch2018 -p1
 
 %if 0%{?_enable_debug_packages}
 mkdir dwz-wrapper

diff --git a/gcc7-aarch64-sanitizer-fix.patch b/gcc7-aarch64-sanitizer-fix.patch
new file mode 100644
index 0000000..c1d8cba
--- /dev/null
+++ b/gcc7-aarch64-sanitizer-fix.patch
@@ -0,0 +1,11 @@
+--- libsanitizer/sanitizer_common/sanitizer_linux.cc
++++ libsanitizer/sanitizer_common/sanitizer_linux.cc
+@@ -1262,7 +1262,7 @@ struct __sanitizer_esr_context {
+ 
+ static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) {
+   static const u32 kEsrMagic = 0x45535201;
+-  u8 *aux = ucontext->uc_mcontext.__reserved;
++  u8 *aux = ucontext->uc_mcontext.__glibc_reserved1;
+   while (true) {
+     _aarch64_ctx *ctx = (_aarch64_ctx *)aux;
+     if (ctx->size == 0) break;

diff --git a/gcc7-rh1512529-18.patch b/gcc7-rh1512529-18.patch
deleted file mode 100644
index 0aaf01f..0000000
--- a/gcc7-rh1512529-18.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/libsanitizer/sanitizer_common/sanitizer_linux.cc b/libsanitizer/sanitizer_common/sanitizer_linux.cc
-index 5b6f18602e7..b5e96a1a0e4 100644
---- a/libsanitizer/sanitizer_common/sanitizer_linux.cc
-+++ b/libsanitizer/sanitizer_common/sanitizer_linux.cc
-@@ -1262,7 +1262,7 @@ struct __sanitizer_esr_context {
- 
- static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) {
-   static const u32 kEsrMagic = 0x45535201;
--  u8 *aux = ucontext->uc_mcontext.__reserved;
-+  u8 *aux = ucontext->uc_mcontext.__glibc_reserved1;
-   while (true) {
-     _aarch64_ctx *ctx = (_aarch64_ctx *)aux;
-     if (ctx->size == 0) break;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-29 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 12:27 [rpms/gcc] rhel-f41-base: Disable annobin for now. Adjust sanitizer_linux.cc patch Marek Polacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox