[PATCH 03/12] riscv: Add GNU property definitions for RISC-V CFI
Jesse Huang
jesse.huang@sifive.com
Thu Jul 3 13:01:20 GMT 2025
Since the support for function signature label scheme is still lacking in
many parts of the toolchain, it would be difficult to test and I would
rather to keep it afterwards
On Thu, Jun 26, 2025 at 6:08 AM Deepak Gupta <debug@rivosinc.com> wrote:
> On Wed, Jun 18, 2025 at 01:42:49AM -0700, Jesse Huang wrote:
> >Add GNU properties used by RISC-V CFI extensions (zicfilp/zicfiss)
> >---
> > elf/elf.h | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> >diff --git a/elf/elf.h b/elf/elf.h
> >index 1e1a59c14d..575c14f022 100644
> >--- a/elf/elf.h
> >+++ b/elf/elf.h
> >@@ -1426,6 +1426,11 @@ typedef struct
> > SHSTK. */
> > #define GNU_PROPERTY_X86_FEATURE_1_SHSTK (1U << 1)
> >
> >+/* RISC-V specific GNU PROPERTY. */
> >+#define GNU_PROPERTY_RISCV_FEATURE_1_AND 0xc0000000
> >+#define GNU_PROPERTY_RISCV_FEATURE_1_CFI_LP_UNLABELED (1u << 0)
>
> Because we have `GNU_PROPERTY_RISCV_FEATURE_1_CFI_LP_FUNC_SIG` as well
> in the go. Can we include that as part of this patch as well?
>
> >+#define GNU_PROPERTY_RISCV_FEATURE_1_CFI_SS (1u << 1)
> >+
> > /* Move records. */
> > typedef struct
> > {
> >--
> >2.39.3
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250703/87f0616b/attachment.htm>
More information about the Libc-alpha
mailing list