Public bug reported:

In GCC 15 all arm64 binaries that have standard branch protection
(present in our default flags) started using GCS. However, the linker
will issue warnings if mixing libraries that expose GCS compatibility
with non-GCS ones.

This is the case for lib25519, as it contains asm files that needs to be
manually annotated to export the proper section.

It's a fairly annoying issue, since glibc *does* expose GCS info since
2.42-0ubuntu1, thus triggering the warning:

❯ readelf -n libc.so.6

Displaying notes found in: .note.gnu.property
  Owner                Data size        Description
  GNU                  0x00000010       NT_GNU_PROPERTY_TYPE_0
      Properties: AArch64 feature: BTI, PAC, GCS

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: lib25519 (Ubuntu)
     Importance: High
         Status: Triaged


** Tags: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2121033

Title:
  lib25519 doesn't expose GCS attribute on arm64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2121033/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to