|
Message-ID: <20160614130036.GD10893@brightrain.aerifal.cx> Date: Tue, 14 Jun 2016 09:00:36 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: build musl for armv7m On Tue, Jun 14, 2016 at 01:49:40AM -0700, weimingz@...eaurora.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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.