public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: Andreas Schwab <schwab@suse.de>
Cc: elfutils-devel@sourceware.org
Subject: Re: [PATCH] backends: add abi_cfi and register_info callbacks for RISC-V
Date: Wed, 20 Jun 2018 11:16:00 -0000	[thread overview]
Message-ID: <1529493408.12946.131.camel@klomp.org> (raw)
In-Reply-To: <mvmtvq0bk3v.fsf@suse.de>

Hi Andreas,

On Mon, 2018-06-18 at 09:59 +0200, Andreas Schwab wrote:
> On Jun 15 2018, Mark Wielaard <mark@klomp.org> wrote:
> 
> > How does the result of make check look now on a native riscv
> > system?
> 
> FAIL: run-native-test.sh
> 
> return_value_location is missing

Sadly DWARF doesn't describe how return values are passed back. So
you'll have to write that by hand for the abi. It normally isn't that
hard for scalar types, sometimes there is some trickery for floats or
small structs.

> FAIL: run-low_high_pc.sh
> 
> lowpc: 220, highpc: 220lx
> ../../elfutils/src/size.c: [c84] 'handle_elf' highpc <= lowpc
> 
> lowpc: 41c, highpc: 41clx
> ../../elfutils/src/strip.c: [1c00] 'update_section_size' highpc <=
> lowpc

That is odd. For which testfile is this? Is it for a native (self test)
file? If it is for an ET_REL object file it might be that we don't
handle all relocations correctly. If you could post the file somewhere,
that might be helpful to track down the issue.

> FAIL: run-backtrace-native.sh
> FAIL: run-backtrace-dwarf.sh
> FAIL: run-deleted.sh
> 
> set_initial_registers_tid is missing

If the target has ptrace support this probably wouldn't be too hard to
get going.

> FAIL: run-backtrace-native-core.sh
> 
> no corefile support

That would need a corenote backend implementation.

> SKIP: run-backtrace-data.sh
> 
> no unwinding support

That is expected. It really is an architecture specific (x86_64) test.

> > Could you provide a testcase for tests/run-allregs.sn and/or
> > tests/run-addrcfi.sh if possible so people can check things work on
> > other arches?
> > 
> > If this is enough to actually unwind could you look at providing an
> > tests/run-backtrace-core-riscv.sh testcase (the existing ones
> > should
> > explain how to generate the (static) executable and core file for
> > the
> > test, but if it is unclear please ask.
> 
> I will work on these.

Thanks. Without tests it is hard to know if an arch is really fully
functional and it risks bit-rotting.

I have added a ChangeLog entry for your patch and pushed it to master.

Cheers,

Mark

  reply	other threads:[~2018-06-20 11:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-13 10:28 Andreas Schwab
2018-06-14 23:28 ` Mark Wielaard
2018-06-18  8:01   ` Andreas Schwab
2018-06-20 11:16     ` Mark Wielaard [this message]
2018-06-20 12:38       ` Andreas Schwab
2018-06-20 12:59         ` Mark Wielaard
2018-06-20 13:55           ` Andreas Schwab
2018-06-20 20:49             ` Mark Wielaard
2018-07-11 13:40               ` Andreas Schwab
2018-07-24 14:13               ` Andreas Schwab
2018-07-26 16:03                 ` Mark Wielaard
2018-10-02 12:46                   ` [PATCH] Handle ADD/SUB relocations Andreas Schwab
2018-10-13 21:23                     ` Mark Wielaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1529493408.12946.131.camel@klomp.org \
    --to=mark@klomp.org \
    --cc=elfutils-devel@sourceware.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).