* problem with big endian binutils..?
@ 2002-11-12 13:22 atul srivastava
2002-11-12 17:48 ` Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: atul srivastava @ 2002-11-12 13:22 UTC (permalink / raw)
To: linux-mips
Have anybody confirmed stability of binutils for big endian
mips?
while little endian gives me no problem
but i am simply unable to make a working big endian ramdisk.
specific problem is in identifying the e_type and e_machine fields
in elf header of executables.
expected value of e_type is 0x2(ET_EXEC) amd e_machine is
0x8(EM_MIPS)
but those are read as 0x200 and 0x800 respectivly ..this is
obviously the endianness problem.
I have tried big endian ramdisk from
ftp://ftp.ltc.com/pub/linux/mips/ramdisk/ramdisk
and also tried compiling one using uclibc package , both
failed because of same reason.
when i run file command on those executables after mounting the
ramdisk on my host i get o/p like
ELF 32-bit LSB executable, MIPS R3000_BE - invalid byte order,
version 1, statically linked, stripped
though i see lot of mails regarding "invalid byteorder" but I
didn't find specific suggestions.
if somebody has experienced similar problems , pls. give me
guidance.
Best Regards,
Atul
__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com. Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with big endian binutils..?
2002-11-12 13:22 problem with big endian binutils..? atul srivastava
@ 2002-11-12 17:48 ` Ralf Baechle
0 siblings, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2002-11-12 17:48 UTC (permalink / raw)
To: atul srivastava; +Cc: linux-mips
On Tue, Nov 12, 2002 at 01:22:57PM -0000, atul srivastava wrote:
> Have anybody confirmed stability of binutils for big endian
> mips?
> while little endian gives me no problem
> but i am simply unable to make a working big endian ramdisk.
>
> specific problem is in identifying the e_type and e_machine fields
> in elf header of executables.
> expected value of e_type is 0x2(ET_EXEC) amd e_machine is
> 0x8(EM_MIPS)
> but those are read as 0x200 and 0x800 respectivly ..this is
> obviously the endianness problem.
Possibly a problem in your reader. Are you using od to look at the
header? Od is dumping in the byteorder of the machine it's running on.
> I have tried big endian ramdisk from
> ftp://ftp.ltc.com/pub/linux/mips/ramdisk/ramdisk
> and also tried compiling one using uclibc package , both
> failed because of same reason.
>
> when i run file command on those executables after mounting the
> ramdisk on my host i get o/p like
>
> ELF 32-bit LSB executable, MIPS R3000_BE - invalid byte order,
> version 1, statically linked, stripped
The error message you're seeing simply means byte 5 of the ELF file is
zero that is unset that is not specifying any endianess.
> though i see lot of mails regarding "invalid byteorder" but I
> didn't find specific suggestions.
It's a tool bug but a fairly harmless one.
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
* problem with big endian binutils..?
@ 2002-11-12 13:25 atul srivastava
2002-11-12 16:23 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: atul srivastava @ 2002-11-12 13:25 UTC (permalink / raw)
To: linux-mips
Have anybody confirmed stability of binutils for big endian
mips?
while little endian gives me no problem
but i am simply unable to make a working big endian ramdisk.
specific problem is in identifying the e_type and e_machine fields
in elf header of executables.
expected value of e_type is 0x2(ET_EXEC) amd e_machine is
0x8(EM_MIPS)
but those are read as 0x200 and 0x800 respectivly ..this is
obviously the endianness problem.
I have tried big endian ramdisk from
ftp://ftp.ltc.com/pub/linux/mips/ramdisk/ramdisk
and also tried compiling one using uclibc package , both
failed because of same reason.
when i run file command on those executables after mounting the
ramdisk on my host i get o/p like
ELF 32-bit LSB executable, MIPS R3000_BE - invalid byte order,
version 1, statically linked, stripped
though i see lot of mails regarding "invalid byteorder" but I
didn't find specific suggestions.
if somebody has experienced similar problems , pls. give me
guidance.
Best Regards,
Atul
__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com. Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with big endian binutils..?
2002-11-12 13:25 atul srivastava
@ 2002-11-12 16:23 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2002-11-12 16:23 UTC (permalink / raw)
To: atul srivastava; +Cc: linux-mips
On Tue, Nov 12, 2002 at 01:25:12PM -0000, atul srivastava wrote:
> Have anybody confirmed stability of binutils for big endian
> mips?
> while little endian gives me no problem
> but i am simply unable to make a working big endian ramdisk.
>
> specific problem is in identifying the e_type and e_machine fields
> in elf header of executables.
> expected value of e_type is 0x2(ET_EXEC) amd e_machine is
> 0x8(EM_MIPS)
> but those are read as 0x200 and 0x800 respectivly ..this is
> obviously the endianness problem.
Binutils is just fine. This is a problem with whatever's reading them.
> I have tried big endian ramdisk from
> ftp://ftp.ltc.com/pub/linux/mips/ramdisk/ramdisk
> and also tried compiling one using uclibc package , both
> failed because of same reason.
>
> when i run file command on those executables after mounting the
> ramdisk on my host i get o/p like
>
> ELF 32-bit LSB executable, MIPS R3000_BE - invalid byte order,
> version 1, statically linked, stripped
>
> though i see lot of mails regarding "invalid byteorder" but I
> didn't find specific suggestions.
It's normal. The 'file' output is outdated.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-12 17:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-12 13:22 problem with big endian binutils..? atul srivastava
2002-11-12 17:48 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2002-11-12 13:25 atul srivastava
2002-11-12 16:23 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox