public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mjw@redhat.com>
To: elfutils-devel@lists.fedorahosted.org
Subject: Re: libebl: Add ebl_func_addr_mask plus ARM backend implementation. (Was: [PATCH] libebl: Add ebl_unwind_ret_mask.)
Date: Sun, 22 Jun 2014 13:49:19 +0200	[thread overview]
Message-ID: <1403437759.9562.3.camel@bordewijk.wildebeest.org> (raw)
In-Reply-To: 1403035773.4374.35.camel@bordewijk.wildebeest.org

[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]

On Tue, 2014-06-17 at 22:09 +0200, Mark Wielaard wrote:
>     libebl: Add ebl_func_addr_mask plus ARM backend implementation.
>     
>     The ARM EABI says that the zero bit of function symbol st_value indicates
>     whether the symbol points to a THUMB or ARM function. Also the return
>     value address in an unwind will contain the same extra bit to indicate
>     whether to return to a regular ARM or THUMB function. Add a new ebl
>     function to mask off such bits and turn a function value into a function
>     address so that we get the actual value that a function symbol or return
>     address points to. It isn't easily possible to reuse the existing
>     ebl_resolve_sym_value for this purpose, so we end up with another hook
>     that can be used from dwfl_module_getsym, handle_cfi and elflint.
>     
>     Signed-off-by: Mark Wielaard <mjw@redhat.com>

Pushed after testing against Fedora armv7hl, which doesn't use THUMB by
default and Debian armhf which does use THUMB by default.

Cheers,

Mark


             reply	other threads:[~2014-06-22 11:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-22 11:49 Mark Wielaard [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-06-17 20:09 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=1403437759.9562.3.camel@bordewijk.wildebeest.org \
    --to=mjw@redhat.com \
    --cc=elfutils-devel@lists.fedorahosted.org \
    /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).