RISC-V: Allow merging 'H' extension
authorTsukasa OI <research_trasio@irq.a4lg.com>
Sat, 26 Nov 2022 02:52:48 +0000 (02:52 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 28 Nov 2022 02:35:43 +0000 (02:35 +0000)
commitc341f4676af4f9922ca61e1b093d103ed808ae6e
tree2f2a80564bc65aea984e6052a9f5c3a8e7ca577d
parent405e9d1992435e3032e5e289d274b2fb51704cc6
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.
bfd/elfnn-riscv.c