From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] package/uclibc: Enable compile in thumb mode configuration option
Date: Sat, 19 Dec 2015 10:13:39 +0100 [thread overview]
Message-ID: <20151219091339.GE19876@waldemar-brodkorb.de> (raw)
In-Reply-To: <5671DC55.2010508@mind.be>
Hi Arnout,
Arnout Vandecappelle wrote,
> On 16-12-15 08:10, Waldemar Brodkorb wrote:
> > Hi,
> > Thomas Petazzoni wrote,
> >> Paul,
> >>
> >>> + $(call KCONFIG_DISABLE_OPT,UCLIBC_HAS_CONTEXT_FUNCS,$(@D)/.config)
> >>
> >> What is the relation between this and Thumb ?
> >
> > The user context manipulation functions in uClibc are using
> > non-thumb instructions and result in a compile failure.
>
> Some packages need context functions, that's why they are enabled in our
> default uClibc config. Cfr. d01aaa7 (by you, Waldemar).
Yeah. But the context functions are deprecated and POSIX suggests
not to use them. Unfortunately they are only implemented for
arm/mips/x86/x86_64 in uClibc. Someone could port the implementation
for other architectures from GNU libc. But then still all noMMU
architectures would be missing. Furthermore the GNU libc
implementation does not work for THUMB only builds.
> So if you do this, you'll need to make some packages depend on !THUMB. While
> they actually did work before this commit.
They did work before for people trying to run thumb code on a ARM
core which allows both modes. (arm and thumb)
But without this patch people can not use it to do a thumb2-only
build, which is a requirement to support ARM noMMU processors like
Cortex-M3 and Cortex-M4.
> Can't uClibc be fixed to enable interworking for the context functions so they
> will work even if the rest of the library is compiled in thumb mode?
I think the intention of this patch is to support thumb2 only
builds. There is no interworking support for Cortex-M3/Cortex-M4.
> As I commented in v1 of this patch, as long as 0.9.33 is not killed, we can't
> do this. We could however add a condition on -ng.
Then I would suggest to add a condition on -ng.
I think there is some userbase for it, because I remember seeing the
third person trying to get something similar committed.
Best regards
Waldemar
next prev parent reply other threads:[~2015-12-19 9:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 22:56 [Buildroot] [PATCH 1/1] [1/1] package/uclibc: Enable compile in thumb mode when selected penman
2015-12-05 15:08 ` Arnout Vandecappelle
2015-12-08 19:34 ` Paul Enman
2015-12-14 1:28 ` [Buildroot] [PATCH v2] package/uclibc: Enable compile in thumb mode configuration option Paul Enman
2015-12-15 22:03 ` Thomas Petazzoni
2015-12-16 7:10 ` Waldemar Brodkorb
2015-12-16 21:49 ` Arnout Vandecappelle
2015-12-19 9:13 ` Waldemar Brodkorb [this message]
2015-12-31 19:44 ` Paul Enman
2015-12-16 22:08 ` Arnout Vandecappelle
2015-12-18 0:11 ` Paul Enman
2015-12-18 21:55 ` Arnout Vandecappelle
2015-12-19 9:35 ` Waldemar Brodkorb
2015-12-19 9:31 ` Waldemar Brodkorb
2015-12-23 16:16 ` Paul Enman
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=20151219091339.GE19876@waldemar-brodkorb.de \
--to=wbx@openadk.org \
--cc=buildroot@busybox.net \
/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