[PATCH] RISC-V : Add linker support for further Z extensions
Jessica Mills
jessica.mills@embecosm.com
Mon May 24 15:30:35 GMT 2021
>From 3fd307fcb519732503c0a5aaaf25764fe9a0157c Mon Sep 17 00:00:00 2001
From: Jessica Mills <jessica.mills@embecosm.com>
Date: Mon, 24 May 2021 08:41:08 +0000
Subject: [PATCH] RISC-V : Add linker support for further Z extensions
Add support to linker for the following Z features used in LLVM:
- Bit manipulation: Zbe, Zbf, Zbm, Zbp, Zbr, Zbs and Zbt.
- Half-precision floating-point: Zfh.
- Vector segment load/store: Zvlsseg.
- Vector AMO operations: Zvamo.
bfd/ChangeLog:
* elfxx-riscv.c (riscv_std_z_ext_strtab): Add zbe, zbf, zbm, zbp,
zbr, zbs, zbt, zfh, zvamo and zvlsseg.
---
bfd/ChangeLog | 5 +++++
bfd/elfxx-riscv.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index 7206ec8573b..d2a6a775b08 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -1077,7 +1077,8 @@ static struct riscv_implicit_subset riscv_implicit_subsets[] =
static const char * const riscv_std_z_ext_strtab[] =
{
- "zba", "zbb", "zbc", "zicsr", "zifencei", "zihintpause", NULL
+ "zba", "zbb", "zbc", "zbe", "zbf", "zbm", "zbp", "zbr", "zbs", "zbt", "zfh",
+ "zicsr", "zifencei", "zihintpause", "zvamo", "zvlsseg", NULL
};
static const char * const riscv_std_s_ext_strtab[] =
--
2.17.1
More information about the Binutils
mailing list