public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* crt0.o from newlib has ARM32-only routines when building gcc for arm-eabi
@ 2012-06-18 21:07 David Fernandez
  2012-06-18 21:42 ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: David Fernandez @ 2012-06-18 21:07 UTC (permalink / raw)
  To: crossgcc

Hi there,

I've been building a arm-eabi toolchain recently, using binutils-2.22,
gcc-4.7.1 and newlib-1.20.0 (I think).

The problem is that when I build for cortex-m3 (-march=armv7-m
-mcpu=cortex-m3 -mthumb), I get the routine _CRTStartup assembled as
ARM32 (definitely not thumb or thumb-2). The file crt0.o seems generated
during gcc build.

Is that expected? As crt0.S in newlib has #ifdefs to choose the right
thumb-2, thumb or ARM specific assembler depending on the predefined macros.

The only thing I can think of is that it might be forced by the gcc
build system, perhaps because linux does not support thumb-only
platforms (?)...

It might be a very silly thing, but if anybody could tell what is the
problem, it would be great.

Cheers
David Fernandez

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-06-19 17:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-18 21:07 crt0.o from newlib has ARM32-only routines when building gcc for arm-eabi David Fernandez
2012-06-18 21:42 ` Khem Raj
2012-06-18 22:26   ` David Fernandez
2012-06-19  0:11     ` David Fernandez
     [not found]       ` <CAMKF1srrA=Zim-1TNYkn3-Sna212ozDCgasv+Fa8u6_c-sUQdw@mail.gmail.com>
2012-06-19  0:58         ` David Fernandez
     [not found]           ` <CAMKF1spcvQNyXRE1oaaK5UKLYofhFAjfYT8PcXOL8pTxeSNESg@mail.gmail.com>
     [not found]             ` <CAA6dH310hHvEDnTQh9NTmDFgq=2LJFKu-QzHZQHMUXTmpYLiyw@mail.gmail.com>
2012-06-19 12:19               ` David Fernandez
2012-06-19 13:15                 ` David Fernandez
     [not found]                   ` <CAMKF1srBG-tOGX=v+x=eoNbMpdFdCG3T5B_-qe640DO-v3YMCg@mail.gmail.com>
2012-06-19 17:06                     ` David Fernandez
2012-06-19 17:11                       ` Khem Raj
2012-06-19 17:27                         ` David Fernandez

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).