how to specify big-endian build for SH3 toolchain?
Robert P. J. Day
rpjday@mindspring.com
Thu Dec 2 17:46:00 GMT 2004
On Thu, 2 Dec 2004, Dan Kegel wrote:
> Robert P. J. Day wrote:
> > but i don't think that's the problem, i'm digging through the glibc
> > build and i think i might be getting close.
>
> Good luck... but please do use the sh3eb-unknown-linux-gnu target
> name, it's important to follow that particular convention, I
> suspect.
i'm just about to start that build (it takes a while :-). but here's
what i've found so far. with a big-endian build for SH3, the
intermediate results generated in ".../build-glibc/csu" (that cause
the build to fail) are:
abi-note.o: ELF 32-bit LSB relocatable, Hitachi SH, version 1 <--
MathCoPro/FPU/MAU Required (SYSV), not stripped
check_fds.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
(SYSV), not stripped
dso_handle.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
MathCoPro/FPU/MAU Required (SYSV), not stripped
elf-init.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
MathCoPro/FPU/MAU Required (SYSV), not stripped
errno-loc.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
(SYSV), not stripped
errno.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
MathCoPro/FPU/MAU Required (SYSV), not stripped
gmon-start.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
(SYSV), not stripped
init-first.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
(SYSV), not stripped
init.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
MathCoPro/FPU/MAU Required (SYSV), not stripped
libc-start.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
(SYSV), not stripped
libc-tls.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
MathCoPro/FPU/MAU Required (SYSV), not stripped
stamp.o: ASCII text
start.o: ELF 32-bit LSB relocatable, Hitachi SH, version 1 <--
MathCoPro/FPU/MAU Required (SYSV), not stripped
sysdep.o: ELF 32-bit LSB relocatable, Hitachi SH, version 1 <--
MathCoPro/FPU/MAU Required (SYSV), not stripped
version.o: ELF 32-bit MSB relocatable, Hitachi SH, version 1
MathCoPro/FPU/MAU Required (SYSV), not stripped
where the offending little-endian object files are, specifically:
abi-note.o
start.o
sysdep.o
and what do the corresponding source files have in common that
distinguishes them from the rest? they're assembler files. so it's
the options used for assembler files that are missing the -m3 and -mb.
as long as it's a C source file, the compile is correct. more digging
around to follow.
do you think using "sh3eb-unknown-linux-gnu" will suddenly make them
appear?
rday
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list