From: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [patch] Support bionic's jmp_buf.
Date: Mon, 21 May 2012 17:59:00 -0000 [thread overview]
Message-ID: <1337623164.22073.9.camel@hactar> (raw)
In-Reply-To: <4FBA2920.4070909@redhat.com>
Hello Pedro,
Thanks for the quick response.
On Mon, 2012-05-21 at 12:38 +0100, Pedro Alves wrote:
> On 05/21/2012 01:35 AM, Thiago Jung Bauermann wrote:
> > I'm using the ELF interpreter field to identify an Android binary (the
> > program loader is /system/bin/linker).
>
>
> Urgh. Isn't there a better way? This doesn't work with shared libraries,
> for starters.
There is. I thought of adding an Android flag to .note.ABI-tag and I
even have a patch ready which adds it to Android binaries. I gave up on
it because I thought it was overkill but I can certainly use that if
using the interpreter field is a worse solution.
Regarding shared libraries, does it matter? If the executable uses
bionic, then the shared libraries can't be using something else, or can
they?
> But I think question number one is:
>
> - Shouldn't there be an "Android" or "Bionic/Linux" OSABI instead
> of abusing "GNU/Linux" ?
I think it shouldn't, and I think it's not abuse. Android has the same
ABI as GNU/Linux, the differences are in implementation details outside
the scope of the ABI:
"Note that the AAPCS standard defines 'EABI' as a moniker used to
specify a _family_ of similar but distinct ABIs. Android follows the
little-endian ARM GNU/Linux ABI as documented in the following
document:
http://www.codesourcery.com/gnu_toolchains/arm/arm_gnu_linux_abi.pdf
With the exception that wchar_t is only one byte. This should not matter
in practice since wchar_t is simply *not* really supported by the
Android platform anyway. This ABI does *not* support hardware-assisted
floating point computations. Instead, all FP operations are performed
through software helper functions that come from the compiler's libgcc.a
static library."
It also doesn't support C++ exceptions.
[1] http://www.kandroid.org/ndk/docs/CPU-ARCH-ABIS.html
--
[]'s
Thiago Jung Bauermann
Linaro Toolchain Working Group
next prev parent reply other threads:[~2012-05-21 17:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 0:36 Thiago Jung Bauermann
2012-05-21 11:38 ` Pedro Alves
2012-05-21 17:59 ` Thiago Jung Bauermann [this message]
2012-06-24 21:46 ` Thiago Jung Bauermann
2012-06-25 13:32 ` Yao Qi
2012-06-25 17:55 ` Thiago Jung Bauermann
2012-06-25 20:49 ` Schnell, Fabian
2012-06-27 10:18 ` Pedro Alves
2012-07-04 21:08 ` Thiago Jung Bauermann
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=1337623164.22073.9.camel@hactar \
--to=thiago.bauermann@linaro.org \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
/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