Re: [PATCH] backends: add checks for _GLOBAL_OFFSET_TABLE_ on loongarch

2023-04-04 Thread Hengqi Chen via Elfutils-devel
Hi, Youling On Sat, Apr 1, 2023 at 11:19 AM Youling Tang wrote: > > Add handling of _GLOBAL_OFFSET_TABLE_. > > Before applying the patch: > $ ./src/elflint --gnu-ld ./src/elflint > section [35] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x68548 > does not match .got.plt section address 0x68238

Re: [PATCH] Add support for LoongArch

2022-12-12 Thread Hengqi Chen via Elfutils-devel
Hi, Mark: Any comments? Thanks. With this patch, pahole is now able to convert dwarf to BTF on LoongArch machine. cheers, -- Hengqi On Sat, Dec 3, 2022 at 9:47 PM Hengqi Chen wrote: > > This implements initial support for the LoongArch architecture. > > Signed-off-by: Hengqi Chen > --- > b

[PATCH] Add support for LoongArch

2022-12-03 Thread Hengqi Chen via Elfutils-devel
This implements initial support for the LoongArch architecture. Signed-off-by: Hengqi Chen --- backends/ChangeLog | 7 backends/Makefile.am | 7 +++- backends/loongarch_init.c| 50 ++ backends/loongarch_reloc.def | 81 +

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="objco

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