diff options
Diffstat (limited to 'bfd/elfxx-riscv.c')
-rw-r--r-- | bfd/elfxx-riscv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index a81ebd4..f6a2509 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1802,12 +1802,12 @@ riscv_parse_subset (riscv_parse_subset_t *rps, } p = arch; - if (strncmp (p, "rv32", 4) == 0) + if (startswith (p, "rv32")) { *rps->xlen = 32; p += 4; } - else if (strncmp (p, "rv64", 4) == 0) + else if (startswith (p, "rv64")) { *rps->xlen = 64; p += 4; |