0018-ignore-zvl-and-zve-extension-for-now.patch 798 B

12345678910111213141516171819202122232425262728293031
  1. From 9851835f05178608811784dec135c598146d9d67 Mon Sep 17 00:00:00 2001
  2. From: "max.ma" <max.ma@starfivetech.com>
  3. Date: Mon, 18 Apr 2022 09:23:06 -0700
  4. Subject: [PATCH 18/18] ignore zvl and zve extension for now
  5. ---
  6. bfd/elfxx-riscv.c | 8 ++++++++
  7. 1 file changed, 8 insertions(+)
  8. diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
  9. index 24c045c46e..aa0a2ee537 100644
  10. --- a/bfd/elfxx-riscv.c
  11. +++ b/bfd/elfxx-riscv.c
  12. @@ -1714,6 +1714,14 @@ riscv_parse_prefixed_ext (riscv_parse_subset_t *rps,
  13. return NULL;
  14. }
  15. + // we ignore zvl extension now.
  16. + if (!strcasecmp ("zvl", subset) || !strcasecmp ("zve", subset))
  17. + {
  18. + while (*p != '\0' && *p != '_')
  19. + p++;
  20. + continue;
  21. + }
  22. +
  23. riscv_parse_add_subset (rps, subset,
  24. major_version,
  25. minor_version, false);
  26. --
  27. 2.25.1