[BOLT][AArch64] Missing support for DWARF v5 forms and opcodes (DW_FORM_ref_udata, DW_OP_regval_type)
I am processing an AArch64 shared library (.so) compiled with GCC, using DWARF-5 (32-bit DWARF) debug information. I am running llvm-bolt (version 23.0.0, built from the latest main branch as of last week) with the --update-debug-sections option.
BOLT-WARNING: [internal-dwarf-error]: unsupported DW_OP encoding BOLT-WARNING: [internal-dwarf-error]: unsupported attribute form DW_FORM_ref_udata in cloneAttribute.
The second warning appears to be related to a missing implementation in BOLT, specifically in: https://github.com/llvm/llvm-project/blob/main/bolt/lib/Core/DIEBuilder.cpp#L887
For the first warning, I instrumented the code by printing the decoded opcode: https://github.com/llvm/llvm-project/blob/main/bolt/lib/Core/DIEBuilder.cpp#L712
BOLT-WARNING: [internal-dwarf-error]: unsupported DW_OP (DW_OP_regval_type 0xa5) encoding
Questions:
- Are these issues already known/reported?
- Are these warnings generally accepted in BOLT and considered for DWARF-5 alignment?
- If so, is there an expected timeline for their implementation or adaptation for DWARF-5?
Thank you in advance for your time
Note: Falling back to DWARF-4 is not a viable option in my case.
@llvm/issue-subscribers-bolt
Author: Sebastian (not4juu)
BOLT-WARNING: [internal-dwarf-error]: unsupported DW_OP encoding BOLT-WARNING: [internal-dwarf-error]: unsupported attribute form DW_FORM_ref_udata in cloneAttribute.
The second warning appears to be related to a missing implementation in BOLT, specifically in: https://github.com/llvm/llvm-project/blob/main/bolt/lib/Core/DIEBuilder.cpp#L887
For the first warning, I instrumented the code by printing the decoded opcode: https://github.com/llvm/llvm-project/blob/main/bolt/lib/Core/DIEBuilder.cpp#L712
BOLT-WARNING: [internal-dwarf-error]: unsupported DW_OP (DW_OP_regval_type 0xa5) encoding
Questions:
- Are these issues already known/reported?
- Are these warnings generally accepted in BOLT and considered for DWARF-5 alignment?
- If so, is there an expected timeline for their implementation or adaptation for DWARF-5?
Thank you in advance for your time
Note: Falling back to DWARF-4 is not a viable option in my case.
Hey folks,
This issue was recently brought to my attention. Has anyone started working on it, or do we have plans to fill this gap?
Thanks!
(cc: @maksfb, @ayermolo)