public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Bill Roberts <bill.roberts@arm.com>
To: git-commits@fedoraproject.org
Subject: [rpms/busybox] rawhide: spec: add -mbranch-protection=standard
Date: Fri, 07 Aug 2026 07:40:45 GMT	[thread overview]
Message-ID: <178608844531.1.5446890566226326783.rpms-busybox-a8a537b00dda@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/busybox
            Branch : rawhide
            Commit : a8a537b00ddaccb9615122eb1b15f8b334457993
            Author : Bill Roberts <bill.roberts@arm.com>
            Date   : 2026-08-06T14:56:12-05:00
            Stats  : +4/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/busybox/c/a8a537b00ddaccb9615122eb1b15f8b334457993?branch=rawhide

            Log:
            spec: add -mbranch-protection=standard

busybox doesn't use the default build flags, so for aarch64 builds add
in BTI and PAC support.

Note that it will get turned off becuase musl C doesn't support PAC and
BTI yet, but this prepares busybox for that support.

Signed-off-by: Bill Roberts <bill.roberts@arm.com>

---
diff --git a/busybox.spec b/busybox.spec
index 3938c06..d36bf7e 100644
--- a/busybox.spec
+++ b/busybox.spec
@@ -52,6 +52,10 @@
 %global hldflags %{_hardening_ldflags} -Wl,-z,relro,-z,now
 %endif
 
+%ifarch aarch64
+%global hcflags %{_hardening_cflags} -mbranch-protection=standard
+%endif
+
 Name:		busybox
 Version:	1.37.0
 Release:	8%{?dist}

                 reply	other threads:[~2026-08-07  7:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178608844531.1.5446890566226326783.rpms-busybox-a8a537b00dda@fedoraproject.org \
    --to=bill.roberts@arm.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox