[PATCH] Change DWARF version to 5
Chris Johns
chrisj at rtems.org
Mon Aug 22 22:08:47 UTC 2022
On 23/8/2022 6:31 am, Ryan Long wrote:
> 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;
Have you reviewed https://dwarfstd.org/Dwarf5Std.php ?
Chris
More information about the devel
mailing list