Skip to contentSkip to conversation

Update readelf to know about the new ELF constants

DISCUSSION Ralf Baechle 4 participants 4 messages Nov 28, 2000 – Dec 3, 2000 2 messages not in the archive MIPS

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 1 line · H . J . Lu
     EM_MIPS_RS3_LE    10		MIPS RS3000 Little-endian

I don't know where you got this constant's name from, it's name is EM_MIPS_RS4_BE (MIPS R4000 big endian) in all literature and header files I've seen. RS3000 series from MIPS was a workstation series of the former Mips Computer Systems, Inc. not a processor.

The constant is probably no longer in use - if it ever has been. it's only use I've ever seen is in tools that read ELF but never in tools that write ELF or in existing ELF files.

Cc'ed to the Linux/MIPS mailing lists; maybe the oldtimers there can comment.

Ralf

#3 lore raw
Quoted 6 lines · Ralf Baechle
Quoted 1 line
     EM_MIPS_RS3_LE    10		MIPS RS3000 Little-endian

I don't know where you got this constant's name from, it's name is EM_MIPS_RS4_BE (MIPS R4000 big endian) in all literature and header files I've seen. RS3000 series from MIPS was a workstation series of the former Mips Computer Systems, Inc. not a processor.

This is the name in the current ABI specs. If it's changed then on request of somebody who registered it.

Signature · 3 lines
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
#4 lore raw
Quoted 9 lines · Ulrich Drepper
Quoted 6 lines
Quoted 1 line
     EM_MIPS_RS3_LE    10		MIPS RS3000 Little-endian

I don't know where you got this constant's name from, it's name is EM_MIPS_RS4_BE (MIPS R4000 big endian) in all literature and header files I've seen. RS3000 series from MIPS was a workstation series of the former Mips Computer Systems, Inc. not a processor.

This is the name in the current ABI specs. If it's changed then on request of somebody who registered it.

Well, I would only add the name should probably be EM_MIPS_R3_LE (and
ditto the comment). We might actually use it for mipsel-linux especially as the ABI explicitly states EM_MIPS is for big endian machines but I'm not sure it's worth bothering as the endianness is specified independently. I believe all software involved should handle it well -- I recall Linux, glibc, binutils, modutils all handle both tags fine. It's just BFD that does not generate EM_MIPS_R3_LE.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#5 lore raw
Quoted 5 lines · Maciej W. Rozycki

Well, I would only add the name should probably be EM_MIPS_R3_LE (and
ditto the comment). We might actually use it for mipsel-linux especially as the ABI explicitly states EM_MIPS is for big endian machines but I'm not sure it's worth bothering as the endianness is specified independently.

The entire ABI only covers big endianess, so you can't directly make conclusions for little endian boxes based. So whatever a little endian system ``ABI compliant'' system does it's only based on an effort to stick as closely as possible to the ABI.

Quoted 3 lines

I believe all software involved should handle it well -- I recall Linux, glibc, binutils, modutils all handle both tags fine. It's just BFD that does not generate EM_MIPS_R3_LE.

Ralf