https://sourceware.org/bugzilla/show_bug.cgi?id=31142

            Bug ID: 31142
           Summary: riscv pass_by_flattened_arg not implemented
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: backends
          Assignee: unassigned at sourceware dot org
          Reporter: mark at klomp dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

dwfl_module_return_value_location will fail for functions that return a struct
because that need pass_by_flattened_arg in backends/riscv_retval.c which is
currently:

static int
pass_by_flattened_arg (const Dwarf_Op **locp __attribute__ ((unused)),
                       Dwarf_Word size __attribute__ ((unused)),
                       Dwarf_Die *arg0 __attribute__ ((unused)),
                       Dwarf_Die *arg1 __attribute__ ((unused)))
{
  /* ??? */
  return -2;
}

This happens for example with the glibc div function which returns:

typedef struct
  {
    int quot;                   /* Quotient.  */
    int rem;                    /* Remainder.  */
  } div_t;

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to