Re: [PATCH] Add support for ARCv2

2022-12-01 Thread Shahab Vahedi via Elfutils-devel
On 12/1/22 00:36, Mark Wielaard wrote: > Nice. I just synced elf.h. Thanks a lot Mark! I will send a new patch sans the elf.h and will add possible test(s) that can be related to it. -- Shahab

dwarf_nextcu can't handle abbrev offset correctly ?

2022-12-01 Thread Hengqi Chen via Elfutils-devel
Hi, I am using pahole (which relies on libelf) to process an elf file ([0]): LLVM_OBJCOPY="objcopy" pahole -J --btf_gen_floats --btf_base vmlinux adl_pci9111.ko This failed with: die__process: DW_TAG_compile_unit, DW_TAG_type_unit, DW_TAG_partial_unit or DW_TAG_skeleton_unit expected

Re: dwarf_nextcu can't handle abbrev offset correctly ?

2022-12-01 Thread Mark Wielaard
Hi Hengqi, On Thu, 2022-12-01 at 23:34 +0800, Hengqi Chen via Elfutils-devel wrote: > I am using pahole (which relies on libelf) to process an elf file > ([0]): > > LLVM_OBJCOPY="objcopy" pahole -J --btf_gen_floats --btf_base > vmlinux adl_pci9111.ko > > This failed with: > > die__proce

Re: [PATCH] libdwfl: Read no more than required to parse dynamic sections

2022-12-01 Thread Gavin Li
Awesome, thanks for looking over this. I only have one comment: there's an extra "xlatefrom.d_size = xlatefrom.d_size;" line that should be removed. dwfl_elf_phdr_memory_callback is called from dwfl_link_map_report but if any issues arise, those could be addressed in a separate patch. Best, Gavin

Re: dwarf_nextcu can't handle abbrev offset correctly ?

2022-12-01 Thread Hengqi Chen via Elfutils-devel
Hi Mark, On 2022/12/1 23:54, Mark Wielaard wrote: > Hi Hengqi, > > On Thu, 2022-12-01 at 23:34 +0800, Hengqi Chen via Elfutils-devel > wrote: >> I am using pahole (which relies on libelf) to process an elf file >> ([0]): >> >> LLVM_OBJCOPY="objcopy" pahole -J --btf_gen_floats --btf_base >> vm