[PATCH 2/2] backends: Update list of LoongArch relocations

2024-02-22 Thread Xi Ruoyao
Signed-off-by: Xi Ruoyao --- backends/loongarch_reloc.def | 17 + 1 file changed, 17 insertions(+) diff --git a/backends/loongarch_reloc.def b/backends/loongarch_reloc.def index a39eefd9..cdc83211 100644 --- a/backends/loongarch_reloc.def +++ b/backends/loongarch_reloc.def @@ -12

[PATCH 1/2] libelf: Sync elf.h from glibc

2024-02-22 Thread Xi Ruoyao
Adds new LoongArch relocations. Signed-off-by: Xi Ruoyao --- libelf/elf.h | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/libelf/elf.h b/libelf/elf.h index 7b4a8fe4..f2206e5c 100644 --- a/libelf/elf.h +++ b/libelf/elf.h @@ -1,5 +1,5 @@ /* This

[PATCH 0/2] Update LoongArch relocations for psABI v2.30

2024-02-22 Thread Xi Ruoyao
LoongArch psABI v2.30 has introduced 17 new reloc types for TLS descriptor, TLS LE relaxation, and medium code model function call. Add them to elfutils. Tested on loongarch64-linux-gnu with Binutils-2.42 and GCC 14 (trunk). Xi Ruoyao (2): libelf: Sync elf.h from glibc backends: Update list

Re: [PATCH v2 3/4] libdw: Apply DWARF package file section offsets where appropriate

2024-02-22 Thread Omar Sandoval
On Thu, Feb 22, 2024 at 04:53:19PM -0800, Omar Sandoval wrote: > On Fri, Feb 16, 2024 at 04:00:47PM +0100, Mark Wielaard wrote: > > Hi Omar, > > > > On Wed, 2023-12-06 at 01:22 -0800, Omar Sandoval wrote: > > > The final piece of DWARF package file support is that offsets have to be > > > interpre

Re: [PATCH v2 3/4] libdw: Apply DWARF package file section offsets where appropriate

2024-02-22 Thread Omar Sandoval
On Fri, Feb 16, 2024 at 04:00:47PM +0100, Mark Wielaard wrote: > Hi Omar, > > On Wed, 2023-12-06 at 01:22 -0800, Omar Sandoval wrote: > > The final piece of DWARF package file support is that offsets have to be > > interpreted relative to the section offset from the package index. > > .debug_abbre

Re: [PATCH] libdw: Update dwarf_cu_dwp_section_info documentation

2024-02-22 Thread Mark Wielaard
Hi Omar, On Thu, Feb 22, 2024 at 09:54:29AM -0800, Omar Sandoval wrote: > On Fri, Feb 16, 2024 at 02:34:18PM +0100, Mark Wielaard wrote: > > Update the documentation of dwarf_cu_dwp_section_info to make clear > > that the function only returns an error if the DWARF package file data > > couldn't b

Re: [PATCH] libdw: Update dwarf_cu_dwp_section_info documentation

2024-02-22 Thread Omar Sandoval
On Fri, Feb 16, 2024 at 02:34:18PM +0100, Mark Wielaard wrote: > Update the documentation of dwarf_cu_dwp_section_info to make clear > that the function only returns an error if the DWARF package file data > couldn't be read or an unknown section constant is provided. Missing > DWP information for

Re: [PATCH v2] dwarf_getaranges: Build aranges list from CUs instead of .debug_aranges

2024-02-22 Thread Aaron Merey
Hi Frank, On Thu, Feb 22, 2024 at 10:35 AM Frank Ch. Eigler wrote: > > > > We could then also introduce a new public function, dwarf_getdieranges > > > (?) that does the new thing. But it doesn't have to be public on the > > > first try as long as dwarf_addrdie and dwfl_module_addrdie work. (We >

Re: [PATCH v2] dwarf_getaranges: Build aranges list from CUs instead of .debug_aranges

2024-02-22 Thread Frank Ch. Eigler
Hi - > > We could then also introduce a new public function, dwarf_getdieranges > > (?) that does the new thing. But it doesn't have to be public on the > > first try as long as dwarf_addrdie and dwfl_module_addrdie work. (We > > might want to change the interface of dwarf_getdieranges so it can b