[PATCH] Change DWARF version to 5

Ryan Long ryan.long at oarcorp.com
Mon Aug 22 20:31:09 UTC 2022


This is a termporary fix while we wait for it to be fixed up stream. Covoar
will not run without this at the moment. We don't know if the error occurred
with any other Elf tools.

Updates #4707
---
 rtemstoolkit/elftoolchain/libdwarf/libdwarf_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtemstoolkit/elftoolchain/libdwarf/libdwarf_info.c b/rtemstoolkit/elftoolchain/libdwarf/libdwarf_info.c
index 7476593..3c8ff9f 100644
--- a/rtemstoolkit/elftoolchain/libdwarf/libdwarf_info.c
+++ b/rtemstoolkit/elftoolchain/libdwarf/libdwarf_info.c
@@ -225,7 +225,7 @@ _dwarf_info_load(Dwarf_Debug dbg, Dwarf_Bool load_all, Dwarf_Bool is_info,
 		else
 			STAILQ_INSERT_TAIL(&dbg->dbg_tu, cu, cu_next);
 
-		if (cu->cu_version < 2 || cu->cu_version > 4) {
+		if (cu->cu_version < 2 || cu->cu_version > 5) {
 			DWARF_SET_ERROR(dbg, error, DW_DLE_VERSION_STAMP_ERROR);
 			ret = DW_DLE_VERSION_STAMP_ERROR;
 			break;
-- 
2.30.2



More information about the devel mailing list