* [ECOS] big-endian gcc compiler
@ 2001-08-01 0:38 A Roturier
2001-08-01 3:52 ` Thomas Faehnle
0 siblings, 1 reply; 2+ messages in thread
From: A Roturier @ 2001-08-01 0:38 UTC (permalink / raw)
To: ecos-discuss
hi,
i compile gcc cross compiler for arm platform under windows and find the
compiled library is in little-endian(default) mode.
$ arm-elf-objdump.exe -x libgcc.a | more
In archive libgcc.a:
__dummy.o: file format elf32-littlearm
rw-r--r-- 500/513 1332 Jul 4 11:18 2001 __dummy.o
architecture: arm, flags 0x00000011:
:
:
how do i compile the library in big-endian mode?
thanks for help.
kc
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] big-endian gcc compiler
2001-08-01 0:38 [ECOS] big-endian gcc compiler A Roturier
@ 2001-08-01 3:52 ` Thomas Faehnle
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Faehnle @ 2001-08-01 3:52 UTC (permalink / raw)
To: A Roturier; +Cc: ecos-discuss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1922 bytes --]
A Roturier wrote:
> i compile gcc cross compiler for arm platform under windows and find the
> compiled library is in little-endian(default) mode.
What you want is called "multilib mode"; search for MULTILIB_OPTIONS
in the gcc texinfo docs for a description.
Multilib mode is off by default in gcc 2.95.3, I had to adjust
the ARM-specific target makefile fragment:
*** gcc-2.95.3/gcc/config/arm/t-arm-elf.orig Wed Aug 1 12:44:44 2001
--- gcc-2.95.3/gcc/config/arm/t-arm-elf Wed Aug 1 12:45:07 2001
***************
*** 21,35 ****
echo '#endif' >> dp-bit.c
cat $(srcdir)/config/fp-bit.c >> dp-bit.c
! # MULTILIB_OPTIONS = mlittle-endian/mbig-endian
mhard-float/msoft-float mapcs-32/mapcs-26
fno-leading-underscore/fleading-underscore
! # MULTILIB_DIRNAMES = le be fpu soft 32bit 26bit elf under
! # MULTILIB_EXCEPTIONS =
! # MULTILIB_MATCHES =
! # EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
! # LIBGCC = stmp-multilib
! # INSTALL_LIBGCC = install-multilib
# If EXTRA_MULTILIB_PARTS is not defined above then define EXTRA_PARTS
here
! EXTRA_PARTS = crtbegin.o crtend.o
TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc
--- 21,35 ----
echo '#endif' >> dp-bit.c
cat $(srcdir)/config/fp-bit.c >> dp-bit.c
! MULTILIB_OPTIONS = mlittle-endian/mbig-endian mhard-float/msoft-float
mapcs-32/mapcs-26 fno-leading-underscore/fleading-underscore
! MULTILIB_DIRNAMES = le be fpu soft 32bit 26bit elf under
! MULTILIB_EXCEPTIONS =
! MULTILIB_MATCHES =
! EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
! LIBGCC = stmp-multilib
! INSTALL_LIBGCC = install-multilib
# If EXTRA_MULTILIB_PARTS is not defined above then define EXTRA_PARTS
here
! # EXTRA_PARTS = crtbegin.o crtend.o
TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc
Best regards,
Thomas
--
Thomas Fähnle thomas.faehnle@tst-ag.de
Digital Signal Processing +49 731 80018-28
Touchless Sensor Technology AG 89231 Neu-Ulm · Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-01 3:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-01 0:38 [ECOS] big-endian gcc compiler A Roturier
2001-08-01 3:52 ` Thomas Faehnle
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).