[PATCH] riscv: Partial implementation of flatten_aggregate

2024-03-20 Thread Mark Wielaard
dwfl_module_return_value_location would fail on riscv for functions which return a (small) struct. This patch implements the simplest cases of flatten_aggregate in backends/riscv_retval.c. It just handles structs containing one or two members of the same base type which fit completely or in pieces

[Bug backends/31142] riscv pass_by_flattened_arg not implemented

2024-03-20 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31142 --- Comment #5 from Mark Wielaard --- Proposed patch for the basic case(s): https://inbox.sourceware.org/elfutils-devel/20240320150312.169280-1-m...@klomp.org/ -- You are receiving this mail because: You are on the CC list for the bug.

Re: [PATCH] riscv: Partial implementation of flatten_aggregate

2024-03-20 Thread Aaron Merey
Hi Mark, On Wed, Mar 20, 2024 at 11:03 AM Mark Wielaard wrote: > > dwfl_module_return_value_location would fail on riscv for functions > which return a (small) struct. This patch implements the simplest > cases of flatten_aggregate in backends/riscv_retval.c. It just handles > structs containing

Re: [PATCH] riscv: Partial implementation of flatten_aggregate

2024-03-20 Thread Mark Wielaard
Hi Aaron, On Wed, Mar 20, 2024 at 02:14:18PM -0400, Aaron Merey wrote: > On Wed, Mar 20, 2024 at 11:03 AM Mark Wielaard wrote: > > > > dwfl_module_return_value_location would fail on riscv for functions > > which return a (small) struct. This patch implements the simplest > > cases of flatten_agg

[Bug backends/31142] riscv pass_by_flattened_arg not implemented

2024-03-20 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31142 Mark Wielaard changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

Re: [PATCH] riscv: Partial implementation of flatten_aggregate

2024-03-20 Thread Palmer Dabbelt
On Wed, 20 Mar 2024 08:03:12 PDT (-0700), m...@klomp.org wrote: dwfl_module_return_value_location would fail on riscv for functions which return a (small) struct. This patch implements the simplest cases of flatten_aggregate in backends/riscv_retval.c. It just handles structs containing one or tw

☺ Buildbot (Sourceware): elfutils - build successful (main)

2024-03-20 Thread builder
A restored build has been detected on builder elfutils-ubuntu-riscv while building elfutils. Full details are available at: https://builder.sourceware.org/buildbot/#/builders/274/builds/33 Build state: build successful Revision: 669b648111d3bc27cd4756879f5fe5a18515de77 Worker: starfive-1 Bui

Re: [PATCH] Getter and setter for Dwfl's offline_next_address

2024-03-20 Thread Mark Wielaard
Hi Martin, On Wed, Mar 06, 2024 at 04:22:49PM -0300, Martin Rodriguez Reboredo wrote: > Added new functions dwfl_get_offline_next_address and > dwfl_set_offline_next_address which will get plus set said field from > the Dwfl struct. This is a requirement for listing functions from their > addresse

Re: [PATCH] riscv: Partial implementation of flatten_aggregate

2024-03-20 Thread Mark Wielaard
Hi Palmer, On Wed, Mar 20, 2024 at 01:17:14PM -0700, Palmer Dabbelt wrote: > >+flatten_aggregate_arg (Dwarf_Die *typedie, > >+ Dwarf_Word size, > >+ Dwarf_Die *arg0, > >+ Dwarf_Die *arg1) > > { > >- /* ??? */ > >+ int tag0, tag1; > >+ Dwarf_

Re: [PATCH] riscv: Partial implementation of flatten_aggregate

2024-03-20 Thread Palmer Dabbelt
On Wed, 20 Mar 2024 16:15:30 PDT (-0700), m...@klomp.org wrote: Hi Palmer, On Wed, Mar 20, 2024 at 01:17:14PM -0700, Palmer Dabbelt wrote: >+flatten_aggregate_arg (Dwarf_Die *typedie, >+ Dwarf_Word size, >+ Dwarf_Die *arg0, >+ Dwarf_Die *arg1)