* [binutils-gdb] RISC-V: Allow merging 'H' extension
@ 2022-11-28 2:37 Tsukasa OI
0 siblings, 0 replies; only message in thread
From: Tsukasa OI @ 2022-11-28 2:37 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c341f4676af4f9922ca61e1b093d103ed808ae6e
commit c341f4676af4f9922ca61e1b093d103ed808ae6e
Author: Tsukasa OI <research_trasio@irq.a4lg.com>
Date: Sat Nov 26 02:52:48 2022 +0000
RISC-V: Allow merging 'H' extension
Because riscv_merge_std_ext function did not merge the 'H' extension, linked
executables lacked 'H' extension when multiple objects are merged.
This issue is found while building OpenSBI with 'H' extension (resulting
ELF files did not contain "h1p0" in "Tag_RISCV_arch" even if *all* linked
object files contained it).
This commit adds 'h' to standard_exts variable to merge 'H' extension.
bfd/ChangeLog:
* elfnn-riscv.c (riscv_merge_std_ext): Add 'H' extension merging.
Diff:
---
bfd/elfnn-riscv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c
index a2d85dbe939..a83c8ad2695 100644
--- a/bfd/elfnn-riscv.c
+++ b/bfd/elfnn-riscv.c
@@ -3427,7 +3427,7 @@ riscv_merge_std_ext (bfd *ibfd,
struct riscv_subset_t **pin,
struct riscv_subset_t **pout)
{
- const char *standard_exts = "mafdqlcbjtpvn";
+ const char *standard_exts = "mafdqlcbjtpvnh";
const char *p;
struct riscv_subset_t *in = *pin;
struct riscv_subset_t *out = *pout;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-28 2:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-28 2:37 [binutils-gdb] RISC-V: Allow merging 'H' extension Tsukasa OI
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).