Skip to content

Commit c341f46

Browse files
committed
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.
1 parent 405e9d1 commit c341f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bfd/elfnn-riscv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,7 @@ riscv_merge_std_ext (bfd *ibfd,
34273427
struct riscv_subset_t **pin,
34283428
struct riscv_subset_t **pout)
34293429
{
3430-
const char *standard_exts = "mafdqlcbjtpvn";
3430+
const char *standard_exts = "mafdqlcbjtpvnh";
34313431
const char *p;
34323432
struct riscv_subset_t *in = *pin;
34333433
struct riscv_subset_t *out = *pout;

0 commit comments

Comments
 (0)