mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: build musl for armv7m
Date: Tue, 14 Jun 2016 09:00:36 -0400	[thread overview]
Message-ID: <20160614130036.GD10893@brightrain.aerifal.cx> (raw)
In-Reply-To: <805971fb5f9b1ee12edab9b7f3e86114@codeaurora.org>

On Tue, Jun 14, 2016 at 01:49:40AM -0700, weimingz@codeaurora.org wrote:
> Hi,
> 
> I'm building MUSL with -mcpu=cortex-m3. There are a few .s files
> that cannot be assembled because: (1) use predicated instructions
> without IT instr (2) use sp inside reg list in ldmia/stmia.
> 
> Please help to review the attached patch.

Did you test anything? These patches do not result in working code;
they just make it assemble without errors. There's already a gas
option to automatically add IT instructions where needed for
thumb-only targets, but that's not the only thing needed to support
thumb-only/cortex-m. I'd be interested in knowing more about the setup
you're trying to target. Is it Linux or bare-metal? If Linux, are you
going to use the ARM/FDPIC toolchain & kernel mods? I'm about to leave
at the moment but I'll follow up with a more detailed review of your
patch later.

> Also, is there any easy way of disabling string/arm/memcpy_le.S ?
> For baremetal, unaligned access may be unavailable.

That file does not perform any unaligned access. It should work on any
EABI-supported version of the arm instruction set.

Rich


  reply	other threads:[~2016-06-14 13:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-14  8:49 weimingz
2016-06-14 13:00 ` Rich Felker [this message]
2016-06-14 16:12   ` Zhao, Weiming
2016-06-14 16:32     ` Szabolcs Nagy
2016-06-14 16:58       ` Zhao, Weiming
2016-06-14 17:40         ` Zhao, Weiming
2016-06-16 18:34           ` Zhao, Weiming
2016-06-20 19:58             ` Rich Felker
2016-06-22 19:08               ` Zhao, Weiming
2016-06-22 19:19                 ` Rich Felker
2016-06-22 20:37                   ` Zhao, Weiming
2016-06-22 23:26                     ` Rich Felker
2016-06-23  0:21                       ` Zhao, Weiming
2016-06-23  4:22                         ` Rich Felker
2016-06-23  6:04                           ` weimingz
2016-06-23  9:57                             ` Szabolcs Nagy
2016-06-23 14:22                               ` weimingz
2016-07-05 20:08                         ` Rich Felker
2016-06-20 17:17           ` Zhao, Weiming
2016-06-14 14:38 ` Rich Felker
2016-06-14 16:35   ` Zhao, Weiming

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=20160614130036.GD10893@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).